From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jelle Licht Subject: bug#29892: dvtm does not properly export terminfo Date: Thu, 4 Jan 2018 16:20:04 +0100 Message-ID: References: <87mv1xzec7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11c0310cd7904d0561f4ddcc" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eX7KN-0005Xt-OB for bug-guix@gnu.org; Thu, 04 Jan 2018 10:21:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eX7KI-0007su-FB for bug-guix@gnu.org; Thu, 04 Jan 2018 10:21:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:55377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eX7KI-0007sT-9o for bug-guix@gnu.org; Thu, 04 Jan 2018 10:21:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eX7KI-0001hy-0p for bug-guix@gnu.org; Thu, 04 Jan 2018 10:21:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87mv1xzec7.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 29892@debbugs.gnu.org --001a11c0310cd7904d0561f4ddcc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, 2018-01-01 18:19 GMT+01:00 Ludovic Court=C3=A8s : > Hi! > > Jelle Licht 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=3D"/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. > > =E2=80=98TERMINFO_DIRS=E2=80=99 is a search path of ncurses. However, be= cause search > paths of dependencies are not honored, it doesn=E2=80=99t 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 =E2=80=98TERMINFO_DIRS=E2=80=99 as a search pa= th 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=E2=80=99. > - Jelle --001a11c0310cd7904d0561f4ddcc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

2018-01-01 18:19 GMT+01:00 Ludovic Court=C3=A8s <ludo@gnu.org= >:
Hi!

Jelle Licht <jlicht@fsfe.org> = skribis:

> As far as I can see, the current version of dvtm does not work properl= y
> 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=3D"/home/jelle/.guix-profile/share/ter= minfo"`.
>
> Would a proper fix be to simply add a native-search-path declaration t= o the
> dvtm package? If so, I can prepare a patch this weekend.

=E2=80=98TERMINFO_DIRS=E2=80=99 is a search path of ncurses.=C2=A0 H= owever, because search
paths of dependencies are not honored, it doesn=E2=80=99t get set:

=C2=A0 https://bugs.gnu.org/22138

This is what we should fix.
Fixing this properly seems= like it would take effort indeed.
=C2=A0

It would feel wrong to add =E2=80=98TERMINFO_DIRS=E2=80=99 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?

Per= haps 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 i= mplement?

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

Thanks,
Ludo=E2=80=99.

- Jelle
--001a11c0310cd7904d0561f4ddcc--