GNU bug report logs - #29892
dvtm does not properly export terminfo

Previous Next

Package: guix;

Reported by: Jelle Licht <jlicht <at> fsfe.org>

Date: Fri, 29 Dec 2017 14:06:01 UTC

Severity: normal

To reply to this bug, email your comments to 29892 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#29892; Package guix. (Fri, 29 Dec 2017 14:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jelle Licht <jlicht <at> fsfe.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 29 Dec 2017 14:06:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jelle Licht <jlicht <at> fsfe.org>
To: bug-guix <at> gnu.org
Subject: dvtm does not properly export terminfo
Date: Fri, 29 Dec 2017 15:05:25 +0100
[Message part 1 (text/plain, inline)]
As far as I can see, the current version of dvtm does not work properly
with programs such as htop etc.

To reproduce:
```
$ guix package -i dvtm
$ dvtm
$ htop
```
It only worked properly once I added something like:
`export TERMINFO_DIRS="/home/jelle/.guix-profile/share/terminfo"`.

Would a proper fix be to simply add a native-search-path declaration to the
dvtm package? If so, I can prepare a patch this weekend.

Thanks,
Jelle
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#29892; Package guix. (Mon, 01 Jan 2018 17:20:02 GMT) Full text and rfc822 format available.

Message #8 received at 29892 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Jelle Licht <jlicht <at> fsfe.org>
Cc: 29892 <at> debbugs.gnu.org
Subject: Re: bug#29892: dvtm does not properly export terminfo
Date: Mon, 01 Jan 2018 18:19:36 +0100
Hi!

Jelle Licht <jlicht <at> fsfe.org> skribis:

> As far as I can see, the current version of dvtm does not work properly
> with programs such as htop etc.
>
> To reproduce:
> ```
> $ guix package -i dvtm
> $ dvtm
> $ htop
> ```
> It only worked properly once I added something like:
> `export TERMINFO_DIRS="/home/jelle/.guix-profile/share/terminfo"`.
>
> Would a proper fix be to simply add a native-search-path declaration to the
> dvtm package? If so, I can prepare a patch this weekend.

‘TERMINFO_DIRS’ is a search path of ncurses.  However, because search
paths of dependencies are not honored, it doesn’t get set:

  https://bugs.gnu.org/22138

This is what we should fix.

It would feel wrong to add ‘TERMINFO_DIRS’ as a search path of dvtm and
everything that depends on ncurses.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#29892; Package guix. (Thu, 04 Jan 2018 15:21:01 GMT) Full text and rfc822 format available.

Message #11 received at 29892 <at> debbugs.gnu.org (full text, mbox):

From: Jelle Licht <jlicht <at> fsfe.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 29892 <at> debbugs.gnu.org
Subject: Re: bug#29892: dvtm does not properly export terminfo
Date: Thu, 4 Jan 2018 16:20:04 +0100
[Message part 1 (text/plain, inline)]
Hello,

2018-01-01 18:19 GMT+01:00 Ludovic Courtès <ludo <at> gnu.org>:

> Hi!
>
> Jelle Licht <jlicht <at> fsfe.org> skribis:
>
> > As far as I can see, the current version of dvtm does not work properly
> > with programs such as htop etc.
> >
> > To reproduce:
> > ```
> > $ guix package -i dvtm
> > $ dvtm
> > $ htop
> > ```
> > It only worked properly once I added something like:
> > `export TERMINFO_DIRS="/home/jelle/.guix-profile/share/terminfo"`.
> >
> > Would a proper fix be to simply add a native-search-path declaration to
> the
> > dvtm package? If so, I can prepare a patch this weekend.
>
> ‘TERMINFO_DIRS’ is a search path of ncurses.  However, because search
> paths of dependencies are not honored, it doesn’t get set:
>
>   https://bugs.gnu.org/22138
>
> This is what we should fix.
>
Fixing this properly seems like it would take effort indeed.


>
> It would feel wrong to add ‘TERMINFO_DIRS’ as a search path of dvtm and
> everything that depends on ncurses.
>

Am I correct in assuming that as a temporary (personal) workaround, I can
just
install ncurses in my profile as well?

Perhaps guix can warn if you install a package which has a dependency
with a search path like ncurses? Or would this be too much of a hassle
to implement?

It would not solve the issue, but at least prevent people from
not understanding why their packages are not working. WDYT?

>
> Thanks,
> Ludo’.
>

- Jelle
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#29892; Package guix. (Fri, 05 Jan 2018 17:25:02 GMT) Full text and rfc822 format available.

Message #14 received at 29892 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Jelle Licht <jlicht <at> fsfe.org>
Cc: 29892 <at> debbugs.gnu.org
Subject: Re: bug#29892: dvtm does not properly export terminfo
Date: Fri, 05 Jan 2018 18:24:23 +0100
Hi,

Jelle Licht <jlicht <at> fsfe.org> skribis:

> 2018-01-01 18:19 GMT+01:00 Ludovic Courtès <ludo <at> gnu.org>:

[...]

>> ‘TERMINFO_DIRS’ is a search path of ncurses.  However, because search
>> paths of dependencies are not honored, it doesn’t get set:
>>
>>   https://bugs.gnu.org/22138
>>
>> This is what we should fix.

[...]

> Am I correct in assuming that as a temporary (personal) workaround, I can
> just
> install ncurses in my profile as well?

Yes.

> Perhaps guix can warn if you install a package which has a dependency
> with a search path like ncurses? Or would this be too much of a hassle
> to implement?
>
> It would not solve the issue, but at least prevent people from
> not understanding why their packages are not working. WDYT?

Good question, not sure it would be significantly easier than fixing the
core issue.  Dunno!

Ludo’.




This bug report was last modified 7 years and 158 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.