unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29892: dvtm does not properly export terminfo
@ 2017-12-29 14:05 Jelle Licht
  2018-01-01 17:19 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Jelle Licht @ 2017-12-29 14:05 UTC (permalink / raw)
  To: 29892

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

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

[-- Attachment #2: Type: text/html, Size: 691 bytes --]

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

* bug#29892: dvtm does not properly export terminfo
  2017-12-29 14:05 bug#29892: dvtm does not properly export terminfo Jelle Licht
@ 2018-01-01 17:19 ` Ludovic Courtès
  2018-01-04 15:20   ` Jelle Licht
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2018-01-01 17:19 UTC (permalink / raw)
  To: Jelle Licht; +Cc: 29892

Hi!

Jelle Licht <jlicht@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’.

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

* bug#29892: dvtm does not properly export terminfo
  2018-01-01 17:19 ` Ludovic Courtès
@ 2018-01-04 15:20   ` Jelle Licht
  2018-01-05 17:24     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Jelle Licht @ 2018-01-04 15:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 29892

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

Hello,

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

> Hi!
>
> Jelle Licht <jlicht@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

[-- Attachment #2: Type: text/html, Size: 2386 bytes --]

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

* bug#29892: dvtm does not properly export terminfo
  2018-01-04 15:20   ` Jelle Licht
@ 2018-01-05 17:24     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-01-05 17:24 UTC (permalink / raw)
  To: Jelle Licht; +Cc: 29892

Hi,

Jelle Licht <jlicht@fsfe.org> skribis:

> 2018-01-01 18:19 GMT+01:00 Ludovic Courtès <ludo@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’.

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

end of thread, other threads:[~2018-01-05 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-29 14:05 bug#29892: dvtm does not properly export terminfo Jelle Licht
2018-01-01 17:19 ` Ludovic Courtès
2018-01-04 15:20   ` Jelle Licht
2018-01-05 17:24     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).