Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs
@ 2019-09-16  5:49 voidlinux-github
  2019-10-05 13:49 ` voidlinux-github
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: voidlinux-github @ 2019-09-16  5:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1719 bytes --]

New issue by am11 on void-packages repository

https://github.com/void-linux/void-packages/issues/14488

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  

`Void 4.9.184-linuxkit x86_64-musl GenuineIntel uptodate rF`

* package:  

`bash-5.0.009_1`
`nano-4.4_1`

### Expected behavior

With `base-minimal` (voidlinux-musl docker e.g.), when we install bash or nano, these packages should install ncurses-base package for the software to function.

### Actual behavior

After some googling and figuring out, it appears that the `ncurses-base` (and more granually, what Alpine Linux ports calls `ncurses-terminfo-base`) package is the one which is missing.

### Steps to reproduce the behavior

nano:

```sh
docker run -it voidlinux/voidlinux-musl

# inside the container
xbps-install -S
xbps-install -y nano

nano
# terminates with:
Error opening terminal: xterm.

# to fix the error
xbps-install ncurses-base

nano # it works!
```

bash:

```sh
docker run -it voidlinux/voidlinux-musl

# entered the container
xbps-install -S
xbps-install -y bash

bash
# entered bash

# type something and press ENTER
ls
# type something again and press ENTER
cd
# now press UP and UP, it looks like:
cdls
#instead of
ls

# similarly, back arrow key to navigate cursor does not move the caret.
# also, BACKSPACE renders spaces instead of erasing the character at caret.
# etc.

# to fix these issues
xbps-install ncurses-base

# exit and reenter bash to get the keybindings behave correctly
```



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
@ 2019-10-05 13:49 ` voidlinux-github
  2019-10-05 13:56 ` voidlinux-github
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: voidlinux-github @ 2019-10-05 13:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 281 bytes --]

New comment by zdtcd on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-538651473

Comment:
I don't think bash should depend on ncurses, since bash can be used for non-interactive session, which is the main use case of docker image.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
  2019-10-05 13:49 ` voidlinux-github
@ 2019-10-05 13:56 ` voidlinux-github
  2021-01-30  3:03 ` ericonr
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: voidlinux-github @ 2019-10-05 13:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

New comment by xtraeme on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-538651984

Comment:
Well, I agree. A build option possibly maybe

El sáb., 5 oct. 2019 15:49, Danh Doan <notifications@github.com> escribió:

> I don't think bash should depend on ncurses, since bash can be used for
> non-interactive session, which is the main use case of docker image.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/void-linux/void-packages/issues/14488?email_source=notifications&email_token=AAGR7KM6J2GHPSAPFUI4IHDQNCLNTA5CNFSM4IW57OY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEANSWUI#issuecomment-538651473>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAGR7KIBGNLZUZLFGFBT6J3QNCLNTANCNFSM4IW57OYQ>
> .
>


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
  2019-10-05 13:49 ` voidlinux-github
  2019-10-05 13:56 ` voidlinux-github
@ 2021-01-30  3:03 ` ericonr
  2021-01-30  4:49 ` sgn
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-01-30  3:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770145459

Comment:
I'm not sure this can be solved at all. A minimal container doesn't want to have ncurses-base
/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (2 preceding siblings ...)
  2021-01-30  3:03 ` ericonr
@ 2021-01-30  4:49 ` sgn
  2021-01-30 14:44 ` ericonr
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: sgn @ 2021-01-30  4:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770157034

Comment:
On 2021-01-29 19:03:35-0800, Érico Nogueira Rolim <notifications@github.com> wrote:
> I'm not sure this can be solved at all. A minimal container doesn't want to have ncurses-base

My opinion is this is not a bug, working as intended.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (3 preceding siblings ...)
  2021-01-30  4:49 ` sgn
@ 2021-01-30 14:44 ` ericonr
  2021-01-30 14:44 ` [ISSUE] [CLOSED] " ericonr
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-01-30 14:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770222512

Comment:
This has also been expressed on IRC.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ISSUE] [CLOSED] ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (4 preceding siblings ...)
  2021-01-30 14:44 ` ericonr
@ 2021-01-30 14:44 ` ericonr
  2021-01-30 15:55 ` am11
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ericonr @ 2021-01-30 14:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1732 bytes --]

Closed issue by am11 on void-packages repository

https://github.com/void-linux/void-packages/issues/14488

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  

`Void 4.9.184-linuxkit x86_64-musl GenuineIntel uptodate rF`

* package:  

`bash-5.0.009_1`
`nano-4.4_1`

### Expected behavior

With `base-minimal` (voidlinux-musl docker e.g.), when we install bash or nano, these packages should install ncurses-base package for the software to function.

### Actual behavior

After some googling and figuring out, it appears that the `ncurses-base` (and more granually, what Alpine Linux ports calls `ncurses-terminfo-base`) package is the one which is missing.

### Steps to reproduce the behavior

nano:

```sh
docker run -it voidlinux/voidlinux-musl dash

# inside the container
xbps-install -S
xbps-install -y nano

nano
# terminates with:
Error opening terminal: xterm.

# to fix the error
xbps-install ncurses-base

nano # it works!
```

bash:

```sh
docker run -it voidlinux/voidlinux-musl dash

# entered the container
xbps-install -S
xbps-install -y bash

bash
# entered bash

# type something and press ENTER
ls
# type something again and press ENTER
cd
# now press UP and UP, it looks like:
cdls
#instead of
ls

# similarly, back arrow key to navigate cursor does not move the caret.
# also, BACKSPACE renders spaces instead of erasing the character at caret.
# etc.

# to fix these issues
xbps-install ncurses-base

# exit and reenter bash to get the keybindings behave correctly
```



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (5 preceding siblings ...)
  2021-01-30 14:44 ` [ISSUE] [CLOSED] " ericonr
@ 2021-01-30 15:55 ` am11
  2021-01-30 16:00 ` Duncaen
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: am11 @ 2021-01-30 15:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

New comment by am11 on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770232793

Comment:
Well, I am not following IRC, neither have I asked to modify minimal container. I thought this is just a case of `nano` package missing `checkdepends="ncurses-base"` line to avoid "Error opening terminal: xterm." as described in the top post.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (6 preceding siblings ...)
  2021-01-30 15:55 ` am11
@ 2021-01-30 16:00 ` Duncaen
  2021-01-30 16:03 ` Duncaen
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Duncaen @ 2021-01-30 16:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 468 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770233386

Comment:
But where would this end, would we add `ncurses-base` to everything that depends on ncurses i.e. util-linux because of cfdisk?

The point is that `ncurses-base` is part of the `base-system` to avoid that, `base-minmal` doesn't have it to avoid blowing up the size for containers that are not going to be used interactively.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (7 preceding siblings ...)
  2021-01-30 16:00 ` Duncaen
@ 2021-01-30 16:03 ` Duncaen
  2021-01-30 16:03 ` Duncaen
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Duncaen @ 2021-01-30 16:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770233386

Comment:
But where would this end, would we add `ncurses-base` to everything that depends on ncurses i.e. util-linux because of cfdisk (which would effectively pull `ncurses` base into `base-minimal`)?

The point is that `ncurses-base` is part of the `base-system` to avoid that, `base-minmal` doesn't have it to avoid blowing up the size for containers that are not going to be used interactively.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (8 preceding siblings ...)
  2021-01-30 16:03 ` Duncaen
@ 2021-01-30 16:03 ` Duncaen
  2021-01-30 16:39 ` am11
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Duncaen @ 2021-01-30 16:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770233386

Comment:
But where would this end, would we add `ncurses-base` to everything that depends on ncurses i.e. util-linux because of cfdisk (which would effectively pull `ncurses-base` into `base-minimal`)?

The point is that `ncurses-base` is part of the `base-system` to avoid that, `base-minmal` doesn't have it to avoid blowing up the size for containers that are not going to be used interactively.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (9 preceding siblings ...)
  2021-01-30 16:03 ` Duncaen
@ 2021-01-30 16:39 ` am11
  2021-01-30 16:45 ` Duncaen
  2021-01-30 16:46 ` Duncaen
  12 siblings, 0 replies; 14+ messages in thread
From: am11 @ 2021-01-30 16:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 596 bytes --]

New comment by am11 on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770241203

Comment:
Conversely, if the rationale behind existing packages with explicit dependency on `ncurses-base` (i.e. [`newsboat`](https://github.com/void-linux/void-packages/blob/2635aeec82926d6228fef8e8622cf2d583a1b400/srcpkgs/newsboat/template#L12) and [`pick`](https://github.com/void-linux/void-packages/blob/df7ebc36a9ffb208a0d60da58a98a2c4936b1735/srcpkgs/pick/template#L9)) is that they do not function without this dependency, then I think `nano` also qualifies.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (10 preceding siblings ...)
  2021-01-30 16:39 ` am11
@ 2021-01-30 16:45 ` Duncaen
  2021-01-30 16:46 ` Duncaen
  12 siblings, 0 replies; 14+ messages in thread
From: Duncaen @ 2021-01-30 16:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770242023

Comment:
You are right, the dependency should be removed from those packages. They don't depend on `ncurses-base` they depend on a definition for the used terminal which can not be expressed as dependency.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: ncurses-base as dependency to nano and bash/ncurses-libs
  2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
                   ` (11 preceding siblings ...)
  2021-01-30 16:45 ` Duncaen
@ 2021-01-30 16:46 ` Duncaen
  12 siblings, 0 replies; 14+ messages in thread
From: Duncaen @ 2021-01-30 16:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/issues/14488#issuecomment-770242023

Comment:
You are right, the dependency should be removed from those packages. They don't depend on `ncurses-base` they depend on a terminfo definition for the used terminal which can not be expressed as dependency.


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-01-30 16:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-16  5:49 [ISSUE] ncurses-base as dependency to nano and bash/ncurses-libs voidlinux-github
2019-10-05 13:49 ` voidlinux-github
2019-10-05 13:56 ` voidlinux-github
2021-01-30  3:03 ` ericonr
2021-01-30  4:49 ` sgn
2021-01-30 14:44 ` ericonr
2021-01-30 14:44 ` [ISSUE] [CLOSED] " ericonr
2021-01-30 15:55 ` am11
2021-01-30 16:00 ` Duncaen
2021-01-30 16:03 ` Duncaen
2021-01-30 16:03 ` Duncaen
2021-01-30 16:39 ` am11
2021-01-30 16:45 ` Duncaen
2021-01-30 16:46 ` Duncaen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).