GNU bug report logs - #53257
[PATCH] gnu: foot: expose terminfo dirs via native-search-paths

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: florhizome <florhizome@HIDDEN>; Keywords: patch; dated Fri, 14 Jan 2022 16:07:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 17:45:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 12:45:39 2022
Received: from localhost ([127.0.0.1]:41663 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8n7S-00010a-Ay
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 12:45:39 -0500
Received: from mout01.posteo.de ([185.67.36.65]:34013)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <florhizome@HIDDEN>) id 1n8ksc-0004q7-72
 for 53257 <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:22:13 -0500
Received: from submission (posteo.de [89.146.220.130]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 093B4240026
 for <53257 <at> debbugs.gnu.org>; Sat, 15 Jan 2022 16:22:03 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1642260124; bh=uy3k0bchADvIsES9BWouTdyqQc+9Zjump+vBkvq3SQ8=;
 h=From:To:Subject:Date:From;
 b=gnnwIVOZi/oY9S/327FxfB+tWr106CaoJezv4Zgh+Of9cmeFdutZOi0jtnNig0d3U
 e8RWWJh3d5nqLZV6Ge8lPLtEE6SWP24TLeyLPwTRgoijYcgomRLaxrA2xBIMYhdkPd
 PI/SzkF/AE86MgatFgV3i9Lh1q681s7P7AIORdbrAF45dEtwLDKDi5Keo2iEL1MNWW
 vMJdi+AEceVFBgkStq5agVvkM9iakYsVxBJ8QscSF4k8c0w+Wxqd8Buan98mxwFF6o
 qB27T1h5k5XO5T/b/6ZOn1Mni4ySwddz5JXFl1h3WmSXpYGqodWWJ8ExEJb9fq1nr0
 xOA7Zh3k6z2ew==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4JbhjQ4gxsz9rxb;
 Sat, 15 Jan 2022 16:22:02 +0100 (CET)
From: Florian <florhizome@HIDDEN>
To: Maxime Devos <maximedevos@HIDDEN>, 53257 <at> debbugs.gnu.org
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
In-Reply-To: <148b10e3686b511178ce6fc019d3c0e42868cc45.camel@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
 <87sftqlykz.fsf@HIDDEN>
 <148b10e3686b511178ce6fc019d3c0e42868cc45.camel@HIDDEN>
Date: Sat, 15 Jan 2022 15:19:51 +0000
Message-ID: <87o84dm3fs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53257
X-Mailman-Approved-At: Sat, 15 Jan 2022 12:45:36 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hey Maxime,

the comment about native-search-paths vs search-paths was just for
better understanding.I thought they work like native inputs vs inputs,
but it seems like it's quite the opposite.

If my understanding holds, setting TERMINFO_DIRS with
native-search-paths could help all terminals that have a non-generic
terminfo (not each would). But i couldn't tell you which ones those are.
As I see major problems f.e. with QT applications, that seem related to
not setting search paths, a proposal of mine for the future would be to imp=
rove/ actually introduce good documentation to the search-patch
variables (and their relationship to profiles and propagated inputs) but
maybe simplify setting a search-path correspanding to a more distinct
group of programs. I could imagine this as something like a search-path
"type", working out like this:
(package
...
(native-search-paths
(list
(search-path-specification
(type terminal-emulator))
...)
)

at first this would just be the same as the code added to foot, but it
could be refined (people might be able to  see overlaps, and integrate
some filtering or other optimization for a specific group. Also you could m=
aybe eventually say "install a
package but without these search-paths"). For groups like qt plugins,
it could maybe be included in the qt-wrap functionalities to look for
the paths where plugins are installed and add the corresponding search path=
s automatically.

Have you tried to add a search path to emacs or nano?
I kinda doubt this would do much; neither nano or emacs ship a terminfo
for kitty, or for foot. What I think could work is wrapping nano and
emacs and every terminal application that has problems to add a path
derived from generically set env vars to point to the places where
terminfo files might be installed a la
TERMINFO_DIRS=3D$TERMINFO_DIRS:$XDG_DATA_DIRS/
this could actually be helpful on foreign distros, but i don't know if
 apps don't already trythis by themselves.

So, to get more specific on what to do: Of your suggestions I would say
why not do 3 for foot immediately like my patch suggests, it fixes the
most immediate problems in a comprehensible and by that easily revertible w=
ay. I don't
think 2 helps much, maybe still misunderstanding things.
For 1) I don't know if I could do this, and I'm not really
motivated. It also doesn't really clash with 3. There also might be
usecases like  programs
that need info about installed terminfos without being run from the
respective terminal emulator, where having the env var in the shell
could come handy, esp for usecases like guix on a foreign distro. but
i'm not sure if these exist here.=20=20=20
I also remember reading, when researching the problem with kitty sudo
emacs, possibilites for preserving chosen environment variables when switch=
ing
between different contexts, which should help.

oh, and i just set foot-direct recently, when i was investigating
this. the problems have stuck with me.

Maxime Devos <maximedevos@HIDDEN> writes:

> Florian schreef op vr 14-01-2022 om 22:52 [+0000]:
>> [...]
>
> I think the basic idea here is that the following should work:
>
> $ guix shell --pure some-terminal-emulator -- some-terminal-emulator
> # e.g., kitty
> # from inside the terminal: (e.g. nano)
> $ ~/.config/guix/current/bin/guix shell some-terminal-app -- some-termina=
l-app
> # Variation: run under sudo
>
> This works for kitty+nano, as you note, because kitty sets TERMINFO.
> It also works for kitty+'emacs -nw'.  However, in some combinations thing=
s won't work:
>
> An example you noted is kitty+sudo+'emacs -nw'.  This doesn't work for me=
 either.
> This seems to be caused by 'sudo' clearing too much.  As I understand it,=
 this is
> only an illustrative counter-example, and not something that setting
> 'native-search-paths' could fix?
>
> This patch is about 'foot', so I tried running foot+nano, but that failed=
 because
> I don't use wayland.  Anyway, there seem to be a few options here:
>
>  1. patch the source code of 'foot' to set "TERMINFO_DIRS" or "TERMINFO"
>     appropriately (I'm not sure about the exact difference) (or use wrap-=
program
>     in 'foot').
>
>     The benefit of this above adding search paths, is that running 'foot'
>     directly from the store could work (somewhat niche though).
>
>     It would need to be investigated whether this works for your use case=
 of
>     setting 'foot-direct' instead of 'foot-xterm'.
>
>  2. modify 'nano', 'emacs', ... to add a "TERMINFO_DIRS" search path.
>
>     A benefit of this approach above adding it to terminal emulators,
>     is that this how search paths are supposed to be used AFAIK
>     (adding an INFOPATH, LIBRARY_PATH, CROSS_LIBRARY_PATH, CPATH, ...
>     search path to every C library that has 'info' documentation is
>     rather cumbersome, instead INFOPATH =E2=80=98belongs=E2=80=99 to info=
 readers,
>     LIBRARY_PATH etc. to compilers, ...).
>
>     A downside is that setting it here can be =E2=80=98too late=E2=80=99.
>     E.g., in the "guix shell terminal" then "guix shell editor"
>     example, the editor and terminal application are in separate profiles
>     so guix doesn't set TERMINFO_DIRS
>
>  3. Like (2), but add it to the terminal apps instead.
>
> My order of preference: (1) > (3) > (2).
> Here, (3) would be a lot easier than (1) but almost as good,
> so maybe we could do (3) first and leave (1) for later?
>
> AFAICT It's not only 'foot' that is affected, should we do (3) for all te=
rminal
> emulators that don't do (1) like kitty?
>
> Greetings,
> Maxime




Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 15:46:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 10:46:51 2022
Received: from localhost ([127.0.0.1]:41544 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8lGV-0005UO-1t
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:46:51 -0500
Received: from xavier.telenet-ops.be ([195.130.132.52]:53516)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1n8lGS-0005UE-RU
 for 53257 <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:46:50 -0500
Received: from [172.20.10.5] ([188.188.185.222])
 by xavier.telenet-ops.be with bizsmtp
 id j3ml2600H4oKcDo013mmUb; Sat, 15 Jan 2022 16:46:46 +0100
Message-ID: <f6e522e4a12cb3c512bd0ca8dafdc415cffc89fd.camel@HIDDEN>
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
From: Maxime Devos <maximedevos@HIDDEN>
To: Florian <florhizome@HIDDEN>, 53257 <at> debbugs.gnu.org
Date: Sat, 15 Jan 2022 16:46:45 +0100
In-Reply-To: <87o84dm3fs.fsf@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
 <87sftqlykz.fsf@HIDDEN>
 <148b10e3686b511178ce6fc019d3c0e42868cc45.camel@HIDDEN>
 <87o84dm3fs.fsf@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-xP4OtEedlv6kWygCXE0W"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1642261606; bh=sqaL0kbiGjaHAsxzEePDn8g1tLkRZRD5bNEd+yG9ruE=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=NUm8YyfLmnt38y3AkxqB6kKKN5j6UyunqyWVUIZi6KPh/SjYByUJUEv81yIu7FMt3
 CFldgSem89ziqMxZ9qvMlgaJLjmA05iotBy/O07UbZ5qPG3RmK0n1vPTdtQJrJMLHS
 giGFhhrsF8+L1o7xsB6nKWljy6GHEI53PjzxF2MrJduTNGlKYwkSqfWFV0w7y1AGNY
 GA5i2E69G02Dt3HBk2e3BIBHEp1n1bcQWzCSb6OGUtpQd0XGF+gpSB5ooGEb9ZVgZO
 68kP7bqto9ZXvUe5th+tQesXQtdE78294cbnDCWHQqR127qfDo/wg5lCp2cd+cs0GM
 IB0cKBrXZxEbg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53257
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-xP4OtEedlv6kWygCXE0W
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Florian schreef op za 15-01-2022 om 15:19 [+0000]:
> [...]
> As I see major problems f.e. with QT applications, that seem related to
> not setting search paths, a proposal of mine for the future would be to i=
mprove/
> actually introduce good documentation to the search-patch
> variables (and their relationship to profiles and propagated inputs)

About documentation, you might be interested in
<https://issues.guix.gnu.org/22138#8>.

>  but
> maybe simplify setting a search-path correspanding to a more distinct
> group of programs. I could imagine this as something like a search-path
> "type", working out like this:
> (package
> ...
> (native-search-paths
> (list
> (search-path-specification
> (type terminal-emulator))
> ...)
> )
> at first this would just be the same as the code added to foot, but it
> could be refined (people might be able to  see overlaps, and integrate
> some filtering or other optimization for a specific group. Also you could=
 maybe eventually say "install a
> package but without these search-paths"). For groups like qt plugins,
> it could maybe be included in the qt-wrap functionalities to look for
> the paths where plugins are installed and add the corresponding search pa=
ths automatically.

Not sure what you mean here, when building a package it is unknown
what plug-ins will be used in advance.  The point of search paths is
having some kind of extensibility, setting the search path environment
variables in qt-wrap would undo that.

Greetings,
Maxime.

--=-xP4OtEedlv6kWygCXE0W
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeLsZRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lC7AP0fJiWus99UjrcOwKKPEQg/Gf0L
mII2f//0HQFq446DSAEAkrLcb6olLy5OZzyikkkzmkkyzzNdUy2CjSPmc3GlbQc=
=HH7O
-----END PGP SIGNATURE-----

--=-xP4OtEedlv6kWygCXE0W--





Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 15:46:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 10:46:39 2022
Received: from localhost ([127.0.0.1]:41540 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8lGI-0005TT-P1
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:46:39 -0500
Received: from baptiste.telenet-ops.be ([195.130.132.51]:45434)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1n8lGF-0005TJ-8c
 for 53257 <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:46:38 -0500
Received: from [172.20.10.5] ([188.188.185.222])
 by baptiste.telenet-ops.be with bizsmtp
 id j3mY2600L4oKcDo013mZWk; Sat, 15 Jan 2022 16:46:33 +0100
Message-ID: <9e0df655bf546badc95300032d4c4b815a68ba68.camel@HIDDEN>
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
From: Maxime Devos <maximedevos@HIDDEN>
To: Florian <florhizome@HIDDEN>, 53257 <at> debbugs.gnu.org
Date: Sat, 15 Jan 2022 16:46:32 +0100
In-Reply-To: <87o84dm3fs.fsf@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
 <87sftqlykz.fsf@HIDDEN>
 <148b10e3686b511178ce6fc019d3c0e42868cc45.camel@HIDDEN>
 <87o84dm3fs.fsf@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-FFI8IdEDqEac4RbxmHH/"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1642261593; bh=DqqlKJiINj0JUfo8npvpR0sbWSMW8gbprWLG+Po7yEU=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=BIpTE5q+82RRCasQM/DtzRVSItnqqpk7y5FGmQwCsgn09kmseO3pvYboVKlu/bZGZ
 C8tClIdXlDyY3IzNhRxw86b4Z2PSAPdVJYfRIz/79mSBPt14hLp0rlbPKHL72Mb7cu
 Jkxi9UVKiziMWfqxLWOb1jhWSX1s9EFc5vt6wsvcusJqup9B069WWOTG0jWI9Kh3Na
 h74YrhrC/6l94aA14ZuAQ/ev49TqD5EB1wb2AJofrGdGd8Jvh3V2GREaR23bHa65uC
 5ZP+iomtNC8M6IV2pBi96bDxT2jm+mPmSx50AcDuBWGb01Gqwd++CA6+SlE+xE6qwh
 qH2MKuccGplQQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53257
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-FFI8IdEDqEac4RbxmHH/
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Florian schreef op za 15-01-2022 om 15:19 [+0000]:
> [...]
> As I see major problems f.e. with QT applications, that seem related to
> not setting search paths, a proposal of mine for the future would be to i=
mprove/
> actually introduce good documentation to the search-patch
> variables (and their relationship to profiles and propagated inputs)

About documentation, you might be interested in
<https://issues.guix.gnu.org/22138#8>.

>  but
> maybe simplify setting a search-path correspanding to a more distinct
> group of programs. I could imagine this as something like a search-path
> "type", working out like this:
> (package
> ...
> (native-search-paths
> (list
> (search-path-specification
> (type terminal-emulator))
> ...)
> )
> at first this would just be the same as the code added to foot, but it
> could be refined (people might be able to  see overlaps, and integrate
> some filtering or other optimization for a specific group. Also you could=
 maybe eventually say "install a
> package but without these search-paths"). For groups like qt plugins,
> it could maybe be included in the qt-wrap functionalities to look for
> the paths where plugins are installed and add the corresponding search pa=
ths automatically.

Not sure what you mean here, when building a package it is unknown
what plug-ins will be used in advance.  The point of search paths is
having some kind of extensibility, setting the search path environment
variables in qt-wrap would undo that.

Greetings,
Maxime.

--=-FFI8IdEDqEac4RbxmHH/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeLsWBccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7sPNAQCXecDLOAz3d4MV/7BC0/wv2gwM
KqR+IKjN3yGsX01+2AD/WKhKRhjQSr9lkG4KzjZU8MUMDtOnWtGyDn1D/sG9+AU=
=I8BS
-----END PGP SIGNATURE-----

--=-FFI8IdEDqEac4RbxmHH/--





Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 15:38:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 10:38:29 2022
Received: from localhost ([127.0.0.1]:41535 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8l8O-0005Ga-UV
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:38:29 -0500
Received: from michel.telenet-ops.be ([195.130.137.88]:59430)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1n8l8K-0005GM-Au
 for 53257 <at> debbugs.gnu.org; Sat, 15 Jan 2022 10:38:26 -0500
Received: from [172.20.10.5] ([188.188.185.222])
 by michel.telenet-ops.be with bizsmtp
 id j3eM260094oKcDo063eNqF; Sat, 15 Jan 2022 16:38:22 +0100
Message-ID: <1e090a31fe948da151e1d246a0c16002f4a44f34.camel@HIDDEN>
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
From: Maxime Devos <maximedevos@HIDDEN>
To: Florian <florhizome@HIDDEN>, 53257 <at> debbugs.gnu.org
Date: Sat, 15 Jan 2022 16:38:17 +0100
In-Reply-To: <87o84dm3fs.fsf@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
 <87sftqlykz.fsf@HIDDEN>
 <148b10e3686b511178ce6fc019d3c0e42868cc45.camel@HIDDEN>
 <87o84dm3fs.fsf@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-n5U8QvBEAuLP81CHOK2s"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1642261102; bh=qoiNYPUlRFUwP3gm823E9C0bxA2DFSJJ4DQGNq1waVs=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=M/aCGxtK37tfLBbbEOCUJif0aeBH1RY72B0v9gpOCSxF5BbsTT0+vcQT8EQo36Q8Y
 T5xupVC7JzRDGG9peg4jdQWZbmalKqD3x3cmvuSTGO7FAZi3En3gQOz5hF8aVXgD7h
 x2kZK5soVqp9358OmT66PUXSMpLloZfFx3/iGIy7qylKEQdjuRJCNcrlx6Xyj4jQIf
 6RuZiDpbspMlkaAXPnLzk3xksxRBUyKYl/ZIrdxZjBsuwLOt6a9MRMLRmSfljEQYS0
 uPr7fHyB41kjO0GjZsnNmVBmWdVTKtDKLN189lIp/QiR/+JsX4S5gkkcspEqIfaUPM
 7lTm2he4gqr3Q==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53257
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-n5U8QvBEAuLP81CHOK2s
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Florian schreef op za 15-01-2022 om 15:19 [+0000]:
> Have you tried to add a search path to emacs or nano?

I don't, but I presume it would work -- at least 'ncurses' has a
TERMINFO_DIRS native-search-path, 'info-reader' and 'emacs' have an
INFOPATH ...
=20
> I kinda doubt this would do much; neither nano or emacs ship a terminfo
> for kitty, or for foot. What I think could work is wrapping nano and
> emacs and every terminal application that has problems to add a path
> derived from generically set env vars to point to the places where

It doesn't matter that nano and emacs don't ship terminfo files --
if a package in the profile (or build environment) has some search
path, then the search path is set with corresponding directories from
_every_ package (*), irrespective of whether they have that search
path.

So as long as 'nano/emacs/vi/...' and 'kitty/foot/gnome-terminal-
emulator/...' are in the _same_ profile, the environment variable
of the search path is set.

They aren't always in the same profile though,=20

(*) with some restrictions w.r.t. cross-compilation, native-search-
path/search-path, native-inputs/inputs ...

Greetings,
Maxime.

--=-n5U8QvBEAuLP81CHOK2s
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeLqaRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uMOAQD0WSZg4/8x9oFepLmdvfF1es//
2QEwShEUMl1sI0502QEAyhLvZaZdrY5MbFTM1J7LjZu1y+RxcQEukPYkDxksNwg=
=CaV1
-----END PGP SIGNATURE-----

--=-n5U8QvBEAuLP81CHOK2s--





Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 14:24:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 09:24:37 2022
Received: from localhost ([127.0.0.1]:39574 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8jyv-0002m0-1P
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 09:24:37 -0500
Received: from andre.telenet-ops.be ([195.130.132.53]:33636)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1n8jys-0002lq-6U
 for 53257 <at> debbugs.gnu.org; Sat, 15 Jan 2022 09:24:35 -0500
Received: from [172.20.10.5] ([188.188.185.222])
 by andre.telenet-ops.be with bizsmtp
 id j2QX260084oKcDo012QXcZ; Sat, 15 Jan 2022 15:24:32 +0100
Message-ID: <9b79749f1902ca64bc0a544a697b4109920592f5.camel@HIDDEN>
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
From: Maxime Devos <maximedevos@HIDDEN>
To: Florian <florhizome@HIDDEN>, 53257 <at> debbugs.gnu.org
Date: Sat, 15 Jan 2022 15:24:26 +0100
In-Reply-To: <87sftqlykz.fsf@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
 <87sftqlykz.fsf@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-IOERiflEZGcVWcziBuLi"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1642256672; bh=E89B5jaBP4UgHSDGc4x3Ofi5yzqoQIeH65o9k3rssaY=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=IwbN7UnKuaKvKw1N0df1AbPXkdXYjZfcn9G8UMdVkH2ergsNSrrSxqnWiYlpUK78Q
 TOzbrS+liwVvpnWMbMivms1Eulkv+PvTl2T5IhYI+iXKtOKNGwI8+W/mK/O04RrgY2
 WyLgXzO3KmcFX3Kj4qSO5KYwLWwqLp9tVLM/dEbjelBk9RYe+2EFN7R+PkhMgvv0bj
 NqJqpvMyN6vgawzeqyE3WroUv+H8UYaHWDjfSjXWzI/IEchp06lHVRzglVs8LQmR/O
 PHZL+x6PRmBipS7cruAnuEMD33aUkScvPTz9f5lLkMbdC1yHgWk7MkvMbCqzkWAyGI
 204ikVoryvLQQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53257
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-IOERiflEZGcVWcziBuLi
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Florian schreef op vr 14-01-2022 om 22:52 [+0000]:
> [...]

I think the basic idea here is that the following should work:

$ guix shell --pure some-terminal-emulator -- some-terminal-emulator
# e.g., kitty
# from inside the terminal: (e.g. nano)
$ ~/.config/guix/current/bin/guix shell some-terminal-app -- some-terminal-=
app
# Variation: run under sudo

This works for kitty+nano, as you note, because kitty sets TERMINFO.
It also works for kitty+'emacs -nw'.  However, in some combinations things =
won't work:

An example you noted is kitty+sudo+'emacs -nw'.  This doesn't work for me e=
ither.
This seems to be caused by 'sudo' clearing too much.  As I understand it, t=
his is
only an illustrative counter-example, and not something that setting
'native-search-paths' could fix?

This patch is about 'foot', so I tried running foot+nano, but that failed b=
ecause
I don't use wayland.  Anyway, there are a few options here:

 1. patch the source code of 'foot' to set "TERMINFO_DIRS" or "TERMINFO"
    appropriately (I'm not sure about the exact difference) (or use wrap-pr=
ogram
    in 'foot').

    The benefit of this above adding search paths, is that running 'foot'
    directly from the store could work (somewhat niche though).

    It would need to be investigated whether this works for your use case o=
f
    setting 'foot-direct' instead of 'foot-xterm'.

 2. modify 'nano', 'emacs', ... to add a "TERMINFO_DIRS" search path.

    A benefit of this approach above adding it to terminal emulators,
    is that this how search paths are supposed to be used AFAIK
    (adding an INFOPATH, LIBRARY_PATH, CROSS_LIBRARY_PATH, CPATH, ...
    search path to every C library that has 'info' documentation is
    rather cumbersome, instead INFOPATH =E2=80=98belongs=E2=80=99 to info r=
eaders,
    LIBRARY_PATH etc. to compilers, ...).

    A downside is that setting it here can be =E2=80=98too late=E2=80=99.
    E.g., in the "guix shell terminal" then "guix shell editor"
    example, the editor and terminal application are in separate profiles
    so guix doesn't set TERMINFO_DIRS

 3. Like (2), but add it to the terminal apps instead.

My order of preference: (1) > (3) > (2).
Here, (3) would be a lot easier than (1) but almost as good,
so maybe we could do (3) first and leave (1) for later?

AFAICT It's not only 'foot' that is affected, should we do (3) for all term=
inal
emulators that don't do (1) like kitty?

Greetings,
Maxime


--=-IOERiflEZGcVWcziBuLi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeLZGhccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7rf7AP9rWn8cu9kuB/9HRSly/yuJBGvz
dvxHhoASBz+XC8dRHwD/a/a2M90tI688afFkL2cUxqBCPlPqUDhkqNmVJ/mJewM=
=gZZJ
-----END PGP SIGNATURE-----

--=-IOERiflEZGcVWcziBuLi--





Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 12:30:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 07:30:39 2022
Received: from localhost ([127.0.0.1]:39315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8iCc-00087I-Mx
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 07:30:39 -0500
Received: from laurent.telenet-ops.be ([195.130.137.89]:58922)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1n8iCa-00083S-PB
 for 53257 <at> debbugs.gnu.org; Sat, 15 Jan 2022 07:30:38 -0500
Received: from [172.20.10.5] ([188.188.185.222])
 by laurent.telenet-ops.be with bizsmtp
 id j0WZ2600M4oKcDo010Wa1N; Sat, 15 Jan 2022 13:30:34 +0100
Message-ID: <148b10e3686b511178ce6fc019d3c0e42868cc45.camel@HIDDEN>
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
From: Maxime Devos <maximedevos@HIDDEN>
To: Florian <florhizome@HIDDEN>, 53257 <at> debbugs.gnu.org
Date: Sat, 15 Jan 2022 13:30:29 +0100
In-Reply-To: <87sftqlykz.fsf@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
 <87sftqlykz.fsf@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-ZH/pNa/jmMO59enDITbm"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1642249834; bh=4XTld6CveIKCapAFTQ8ZKFjzb853DW62/NxZUYdnFN8=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=Z0vPRAzJlx3KeVWhTCEZZ3MrYmgx1jwW4OnsvpcudO4uIcm2CR+A7oMRMjK5aU3KE
 XNzK2NX0GXgBDUoSUNZELK5Ri2jeteox+Ca4/kMU/AoLVWgaUkNeGrrVFiqUlZUB4B
 BCInD7hVQWYLizrp5YgY0Tx+bMvxI5eSy+WPkMrcofKYSXse+/kaMdTvUXoy6Gik8L
 aiBBmpVjTjccKVirc6K4otzJgYVkspenuBBU54UE2dyKUJDv0+33UYyCGgL6QPE82M
 KpNhDgQu3aQoTfn7kyE6DFR6CsGsaQqtWkwxW3XV6ZqyFGv1O4j9w2b6kW3+Uo6h06
 b//D9k2dH5vug==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53257
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-ZH/pNa/jmMO59enDITbm
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Florian schreef op vr 14-01-2022 om 22:52 [+0000]:
> [...]

I think the basic idea here is that the following should work:

$ guix shell --pure some-terminal-emulator -- some-terminal-emulator
# e.g., kitty
# from inside the terminal: (e.g. nano)
$ ~/.config/guix/current/bin/guix shell some-terminal-app -- some-terminal-=
app
# Variation: run under sudo

This works for kitty+nano, as you note, because kitty sets TERMINFO.
It also works for kitty+'emacs -nw'.  However, in some combinations things =
won't work:

An example you noted is kitty+sudo+'emacs -nw'.  This doesn't work for me e=
ither.
This seems to be caused by 'sudo' clearing too much.  As I understand it, t=
his is
only an illustrative counter-example, and not something that setting
'native-search-paths' could fix?

This patch is about 'foot', so I tried running foot+nano, but that failed b=
ecause
I don't use wayland.  Anyway, there seem to be a few options here:

 1. patch the source code of 'foot' to set "TERMINFO_DIRS" or "TERMINFO"
    appropriately (I'm not sure about the exact difference) (or use wrap-pr=
ogram
    in 'foot').

    The benefit of this above adding search paths, is that running 'foot'
    directly from the store could work (somewhat niche though).

    It would need to be investigated whether this works for your use case o=
f
    setting 'foot-direct' instead of 'foot-xterm'.

 2. modify 'nano', 'emacs', ... to add a "TERMINFO_DIRS" search path.

    A benefit of this approach above adding it to terminal emulators,
    is that this how search paths are supposed to be used AFAIK
    (adding an INFOPATH, LIBRARY_PATH, CROSS_LIBRARY_PATH, CPATH, ...
    search path to every C library that has 'info' documentation is
    rather cumbersome, instead INFOPATH =E2=80=98belongs=E2=80=99 to info r=
eaders,
    LIBRARY_PATH etc. to compilers, ...).

    A downside is that setting it here can be =E2=80=98too late=E2=80=99.
    E.g., in the "guix shell terminal" then "guix shell editor"
    example, the editor and terminal application are in separate profiles
    so guix doesn't set TERMINFO_DIRS

 3. Like (2), but add it to the terminal apps instead.

My order of preference: (1) > (3) > (2).
Here, (3) would be a lot easier than (1) but almost as good,
so maybe we could do (3) first and leave (1) for later?

AFAICT It's not only 'foot' that is affected, should we do (3) for all term=
inal
emulators that don't do (1) like kitty?

Greetings,
Maxime

--=-ZH/pNa/jmMO59enDITbm
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeK+ZRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hA1AP9Fyx3ZIEl+LAkrZfXOuKIrEKcF
q6MG1j2MND4DbAgIgwD9FIxhmK9jNNmJUXXTilhAsd/akYd7CmlNioRHf0Xq1gs=
=1YfM
-----END PGP SIGNATURE-----

--=-ZH/pNa/jmMO59enDITbm--





Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 11:48:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 06:48:28 2022
Received: from localhost ([127.0.0.1]:39288 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8hXn-0006Jd-Ro
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 06:48:27 -0500
Received: from laurent.telenet-ops.be ([195.130.137.89]:36298)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1n8hXl-0006JS-NX
 for 53257 <at> debbugs.gnu.org; Sat, 15 Jan 2022 06:48:26 -0500
Received: from [172.20.10.5] ([188.188.185.222])
 by laurent.telenet-ops.be with bizsmtp
 id izoP2600C4oKcDo01zoP1t; Sat, 15 Jan 2022 12:48:24 +0100
Message-ID: <561e6b02ad2e38d27252c5265ce5063c7866dfdf.camel@HIDDEN>
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
From: Maxime Devos <maximedevos@HIDDEN>
To: Florian <florhizome@HIDDEN>, 53257 <at> debbugs.gnu.org
Date: Sat, 15 Jan 2022 12:48:23 +0100
In-Reply-To: <87sftqlykz.fsf@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
 <87sftqlykz.fsf@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-pslFE9nBobLTM+nN1Ryi"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1642247304; bh=wIoD2mzcbVxmklwCm0DzRUiGxzx7Jd2u3ga/SMHr0wY=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=fKIQrDivrvJp+F8MPQMXSNYeK2WtJZ+iziUihj1wrRDER82DWgihDUAoMdvongRvT
 QmR8EgGY6BdiPIGdYxm0onCNonllevkkmd/7fXIwrz42Pv8caYGoL7zCTsopKPT9qV
 EgnUcEPuziqykkz28Yidv3WYQHUeT0WbBBK0rAUGt2Zb0yWYdP/ufah90peDfZcrON
 ieJTQomHEydvPM72KnjOLkqKAvJghvSWmT1j+Um8hLiHsoZx+cG7cfR9TfmU9DsrAD
 yJiNlO29nOCO+le9mKTBhhQTf99XV2kBxAFyn8wAqQeER4aUvcGggEhXIh5Hcnq/SS
 xf3qICyvF1k/g==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53257
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-pslFE9nBobLTM+nN1Ryi
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Florian schreef op vr 14-01-2022 om 22:52 [+0000]:
> By my understanding, if emacs installs a terminfo file, yes, we could
> set it's search-path field similar to alacritty.

What I suggested, is that emacs would have a search-path because it can
be used _inside_ a terminal as a terminal application,and hence might
be a =E2=80=98consumer=E2=80=99 of TERMINFO_DIR.

That said, from your examples it seems a good idea to (also?) include
TERMINFO_DIR in the producer -- I'll send a separate mail for that.

--=-pslFE9nBobLTM+nN1Ryi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeK0hxccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7muMAP0Vi5Vv0JX/GUnQcwnpMXmvb7cz
D8GitQ1bMp8K+a/kQgD7Bg+8QteH+TwHABpgJyFyKa7A+V1LfyxPk+2eAA8mQA0=
=hvxx
-----END PGP SIGNATURE-----

--=-pslFE9nBobLTM+nN1Ryi--





Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 11:45:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 15 06:45:25 2022
Received: from localhost ([127.0.0.1]:39279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8hUr-0006AM-3j
	for submit <at> debbugs.gnu.org; Sat, 15 Jan 2022 06:45:25 -0500
Received: from michel.telenet-ops.be ([195.130.137.88]:57540)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1n8hUo-0006A8-KC
 for 53257 <at> debbugs.gnu.org; Sat, 15 Jan 2022 06:45:23 -0500
Received: from [172.20.10.5] ([188.188.185.222])
 by michel.telenet-ops.be with bizsmtp
 id izlL260024oKcDo06zlLzB; Sat, 15 Jan 2022 12:45:21 +0100
Message-ID: <c183052fdcd8e67742566a53734de9886a67efc8.camel@HIDDEN>
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
From: Maxime Devos <maximedevos@HIDDEN>
To: Florian <florhizome@HIDDEN>, 53257 <at> debbugs.gnu.org
Date: Sat, 15 Jan 2022 12:45:15 +0100
In-Reply-To: <87sftqlykz.fsf@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
 <87sftqlykz.fsf@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-b3NwDnPKAP3RSESljyC1"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1642247121; bh=YrSLO2S2dH/GjSSFTXMOuZJ4Gmpl1YtbY/sF381QOMo=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=dvntMU5JpOWccTODw4fB7pMUjlUKDY8u5ERTmW/09cZ4JnC4RCH7zTw5TiKcv23xz
 tXBZ2DQG1qpsrSWtk8/LaTfAAR8gj3tdXlUdh4PEbJcVaE+fdAq6pxRVwoszKLSb2i
 g9NPLwYVfuNN3tyUi56wrWlIiEXTbDaAwJHsJHTZmyzjaMsX4/VjhWlhJbgfxfY4Bj
 mr/Cj8NW5QykTS2jTex9BZyG4DIRBsRyWwYUu4cAvdmb7NtPo8IaBqpUykextc6kx+
 RU0q5EFdSHRNc6FL+OSE7E0YZYbWxofGOqo7dAdUaARD/dtjXUF79TzK25SPwS9QjW
 BA/EDHMiICOkg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53257
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-b3NwDnPKAP3RSESljyC1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Florian schreef op vr 14-01-2022 om 22:52 [+0000]:
> Now what i don't understand is when I would set search-paths, but not
> native-search-paths --- as i said, in this example search-paths would
> make more sense to me, if I understood the two fields right.=20

I don't see what this has to do with your example, since you aren't
cross-compiling.  There's only a difference between 'search-paths' and
'native-search-paths' when cross-compiling:

When a cross-compiler 'cross-gcc' and a native compiler 'gcc' are in
the native-inputs of some package, a C library 'x' is in the
native-inputs and a C library 'y' is in the (non-native) inputs, then:

 * The native-search-path LIBRARY_PATH of 'gcc' is set to:

       /gnu/store/[...]-x/include

   (the cross-compiled 'y' library is ignored!)

 * The (non-native) search-path CROSS_LIBRARY_PATH of 'cross-gcc' is
   set to:

      /gnu/store/[...]-y/include


   (the native (not cross-compiled) 'x' library is ignored!)

Packages that don't cross-compile anything usually only have
native-search-paths and AFAIK this works.

Greetings,
Maxime.

--=-b3NwDnPKAP3RSESljyC1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeKzyxccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lW8AP9nAcdhqOrgYWstgHzfBxYWY7yb
3pAEUtCO9NQpSWnqNQD/TJ3AFU/mc4yj4MDv4LhI5q+lzjDglVIk5GPdy9OKmAw=
=mv49
-----END PGP SIGNATURE-----

--=-b3NwDnPKAP3RSESljyC1--





Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 15 Jan 2022 00:48:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 19:48:28 2022
Received: from localhost ([127.0.0.1]:38590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8XF5-0005RE-Gd
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 19:48:28 -0500
Received: from mout01.posteo.de ([185.67.36.65]:52127)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <florhizome@HIDDEN>) id 1n8VT4-0002Fb-Bn
 for 53257 <at> debbugs.gnu.org; Fri, 14 Jan 2022 17:54:50 -0500
Received: from submission (posteo.de [89.146.220.130]) 
 by mout01.posteo.de (Postfix) with ESMTPS id C4E96240026
 for <53257 <at> debbugs.gnu.org>; Fri, 14 Jan 2022 23:54:39 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1642200879; bh=pZsX/sX18E8eNS8vQCbSyjPEs00HqZF9XjDEPlZp+VI=;
 h=From:To:Subject:Date:From;
 b=rhVYvjNpxgcbP3tu19mX3FKeaOrzwobZXc/+wztUFoBnbKYFnkOiJF5nZOqVCFkZD
 MoYygjxQRVwaYlAJxGRNqLJDYC0eaV9u6TMLnNRGSB5qFgDg5NDGq4+arBwtjcZ5Bp
 HVNPF1Junurbw/9lyQGqOMJ/pFHUj9NPUho7iy1aCR32ArQ5Skf4CAlFETevOzl64V
 jX7mTtVCuk4kWeD50e/81awkl6XVKrqGEhGoBB6p5rfkq/xas8UlfQOT037pXGUzmJ
 w3zQdFJlOsDadnfrwnULh+GoTb4pArt1zq5T27+2rO+6GLA62gSze5lyOWDQoFol0O
 DTfYXMODnD9WA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4JbGp70MKLz6tn9
 for <53257 <at> debbugs.gnu.org>; Fri, 14 Jan 2022 23:54:38 +0100 (CET)
From: Florian <florhizome@HIDDEN>
To: 53257 <at> debbugs.gnu.org
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
In-Reply-To: <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
 <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
Date: Fri, 14 Jan 2022 22:52:28 +0000
Message-ID: <87sftqlykz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53257
X-Mailman-Approved-At: Fri, 14 Jan 2022 19:48:26 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Maxime,
I understand this kinda differently so far:
We want to expose the path where foot installs it's terminfo via
TERMINFO_DIRS, so that
every program running in that Terminal can look it up. foot without the
patch emits the following env vars inside it's process:

~ $ env | grep TERM
COLORTERM=3Dtruecolor
TERM=3Dfoot-direct

(i configured it to use foot-direct, and not foot-xterm, which is the
other terminfo it installs, bc that should give me more colors in emacs)
now what happens is that neither foot nor programs running from it seem
to know what foot-direct is.
As I tried to describe, foot renders problematic stuff, whenever the
text it displays reaches it's borders, simply a long line does it, but
also looking up manpages (i would get a

WARNING: terminal is not fully functional
Press RETRUN to continue

when typing "git send-email --help" f.e.

Comparing to kitty: Running in kitty:

COLORTERM=3Dtruecolor
TERMINFO=3D/gnu/store/zhmzdniycjykb6igrx4avs9vsn4ngk5q-kitty-0.20.3/lib/kit=
ty/terminfo
TERM=3Dxterm-kitty

So, kitty exposes the exact path to it's terminfo files within it's
process. so, we are fine, most of the time. But when i try to edit a
file with elevated right's, emacs complains:

~ $ sudo emacs -nw .config/guix/home.scm=20
Passwort:=20
emacs: Terminal type xterm-kitty is not defined.
If that is not the actual type of terminal you have,
use the Bourne shell command 'TERM=3D...; export TERM' (C-shell:
'setenv TERM ...') to specify the correct type.  It may be necessary
to do 'unset TERMINFO' (C-shell: 'unsetenv TERMINFO') as well.

an interesting example with guix shell and nano:

~ $ guix shell nano -- nano ./.config/guix/home.scm
Folgende Ableitung wird erstellt:
   /gnu/store/azcaj49div66k43afiiiq6njsjk8s5iv-profile.drv

Zertifikatsb=C3=BCndel der Zertifikatsautorit=C3=A4ten wird erstellt =E2=80=
=A6
Liste der Emacs-Unterverzeichnisse wird erzeugt =E2=80=A6
Schriftartenverzeichnis wird erstellt =E2=80=A6
Verzeichnis von Info-Handb=C3=BCchern wird erstellt =E2=80=A6
Profil mit 1 Paket wird erstellt =E2=80=A6
~ $ guix shell nano --pure -- nano ./.config/guix/home.scm
Error opening terminal: xterm-kitty.

(so, the first one worked, the second not.)
kitty works as long as i "preserve context" i would say, without
understanding in depth what happens.

So, to me it seems setting search-paths should make sense whenever you
want to expose a path in the store directory of a certain package, but
you cannot be sure to which package (otherwise, a wrapper would make
sense, and that's where your definiton of producer and consumer applies
better i think as it would be a much directer and clearer definition. ). In=
 gnu guix we would want to take advantage of that rather more
then less i think, but it's poorly documented.
By my understanding, if emacs installs a terminfo file, yes, we could
set it's search-path field similar to alacritty. But it most definitely
makes sense for any terminal emulator that defines an own TERMINFO
variable and ships a terminfo file with that (and so a TERMINFO_DIR that
we want to expose to the environment).=20

Now what i don't understand is when I would set search-paths, but not
native-search-paths --- as i said, in this example search-paths would
make more sense to me, if I understood the two fields right.=20

Greetings,
Florian.

Maxime Devos <maximedevos@HIDDEN> writes:

> florhizome schreef op vr 14-01-2022 om 14:02 [+0000]:
>> Hi all,
>> I noticed foot did not behave normally whenever content would overflow i=
t's current dimensions.
>> when I installed alacritty in the same profile, this was fixed. Turned o=
ut, alacritty's
>> declaration has a native-search-path field entry that fixed foot! Why no=
t just search-paths,
>> I can't tell. This might apply to further terminal emulators (kitty had =
problems starting emacs
>> in some contexts for me but I would need to test that more), but for now=
, just foot!=20
>>=20
>
> Canonically, search path are set in =E2=80=98consumers=E2=80=99, not =E2=
=80=98producers=E2=80=99
> (though setting it in =E2=80=98producers=E2=80=99 sometimes works).  Here,
> =E2=80=98consumer=E2=80=99 =3D ncurses, maybe screen (why doesn't screen =
have a native-
> search-paths?  An oversight?), and =E2=80=98producer=E2=80=99 =3D some te=
rminal emulator.
>
> What application were you running in foot that leaded to an overrun?
> Maybe we should add TERMINFO_DIRS to the native-search-paths of the
> application.  Basically all applications using ncurses need it, I
> think?
>
> The following seems relevant:
> <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22138>
> though personally that doesn't seem a bug to me.
>
> Were you running emacs in the terminal?  If so, maybe TERMINFO_DIRS
> need to be added to 'emacs'?
>
> Greetings,
> Maxime.




Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at 53257 <at> debbugs.gnu.org:


Received: (at 53257) by debbugs.gnu.org; 14 Jan 2022 19:03:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 14:03:03 2022
Received: from localhost ([127.0.0.1]:38155 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8Rqo-0001xI-OD
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 14:03:03 -0500
Received: from laurent.telenet-ops.be ([195.130.137.89]:60446)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1n8Rql-0001wn-JS
 for 53257 <at> debbugs.gnu.org; Fri, 14 Jan 2022 14:03:00 -0500
Received: from [172.20.10.5] ([188.188.180.33])
 by laurent.telenet-ops.be with bizsmtp
 id ij2w2600Q0je1N401j2x5e; Fri, 14 Jan 2022 20:02:57 +0100
Message-ID: <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@HIDDEN>
Subject: Re: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via
 native-search-paths
From: Maxime Devos <maximedevos@HIDDEN>
To: florhizome <florhizome@HIDDEN>, 53257 <at> debbugs.gnu.org
Date: Fri, 14 Jan 2022 19:02:52 +0000
In-Reply-To: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-+9chgN8dQ3dfM3L9Rfsi"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1642186977; bh=OCVftGruTCxPv0aSsGgSBgjfOBaF3F+K28xrzbbLw9k=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=eIcJDCxLBFgkPj/rgPWDCMJ1MkMgdrSLFOdO0m4loyoDWIB+//prNj8nEHOCeQ32G
 NscQKt9vE1TWVR+SsBsdfoMtz3zdii+M9TCRU2Qyiwpv7hpcPJIP580ix4zS0Bp/tZ
 +6jFninGzJcpU1loKW4weJr7CAeDW3Lnb7amqYCMNArZL0iSBa/BfcEO6HKn5xZR6c
 mTb8vug7xC7ywRFIhRPTW/GzEepu2L45ukiFt+aac9gp63c0ri4pLQ5xyIMx+w8NJI
 GXexBh9+/vP39E5wng2pYforcmABXuXfU18d+ZeV+jcQSanocyIcoPkec12uttXfJo
 kw2tmzSLc1BxQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53257
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-+9chgN8dQ3dfM3L9Rfsi
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

florhizome schreef op vr 14-01-2022 om 14:02 [+0000]:
> Hi all,
> I noticed foot did not behave normally whenever content would overflow it=
's current dimensions.
> when I installed alacritty in the same profile, this was fixed. Turned ou=
t, alacritty's
> declaration has a native-search-path field entry that fixed foot! Why not=
 just search-paths,
> I can't tell. This might apply to further terminal emulators (kitty had p=
roblems starting emacs
> in some contexts for me but I would need to test that more), but for now,=
 just foot!=20
>=20

Canonically, search path are set in =E2=80=98consumers=E2=80=99, not =E2=80=
=98producers=E2=80=99
(though setting it in =E2=80=98producers=E2=80=99 sometimes works).  Here,
=E2=80=98consumer=E2=80=99 =3D ncurses, maybe screen (why doesn't screen ha=
ve a native-
search-paths?  An oversight?), and =E2=80=98producer=E2=80=99 =3D some term=
inal emulator.

What application were you running in foot that leaded to an overrun?
Maybe we should add TERMINFO_DIRS to the native-search-paths of the
application.  Basically all applications using ncurses need it, I
think?

The following seems relevant:
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22138>
though personally that doesn't seem a bug to me.

Were you running emacs in the terminal?  If so, maybe TERMINFO_DIRS
need to be added to 'emacs'?

Greetings,
Maxime.


--=-+9chgN8dQ3dfM3L9Rfsi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeHI3BccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ju5AP4qneUKB6FE3vhkawqDnGE0Vpqk
yWrgG8lX5bWeDTTihQD/YGyNzgGLdRald1PtkzkTmCeH/OR3tjC/IvII1U0EXAQ=
=vud5
-----END PGP SIGNATURE-----

--=-+9chgN8dQ3dfM3L9Rfsi--





Information forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Jan 2022 16:06:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 11:06:56 2022
Received: from localhost ([127.0.0.1]:37899 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8P6L-00056y-LY
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 11:06:56 -0500
Received: from lists.gnu.org ([209.51.188.17]:41920)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <florhizome@HIDDEN>) id 1n8NDA-0007KY-RJ
 for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 09:05:50 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47174)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <florhizome@HIDDEN>)
 id 1n8NCm-0002VG-96
 for guix-patches@HIDDEN; Fri, 14 Jan 2022 09:05:28 -0500
Received: from mout02.posteo.de ([185.67.36.66]:47001)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <florhizome@HIDDEN>)
 id 1n8NCk-0002Cz-2t
 for guix-patches@HIDDEN; Fri, 14 Jan 2022 09:05:23 -0500
Received: from submission (posteo.de [89.146.220.130]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 01327240101
 for <guix-patches@HIDDEN>; Fri, 14 Jan 2022 15:05:18 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1642169119; bh=wXlovOjJByS64NzXEz7uXWvyn9dyYhehZu3JVF67zVU=;
 h=From:To:Subject:Date:From;
 b=F3YNYwOZppWSVRLnRMDsZ96mdD//Mc51u7B/P7qJV/2D8vvPPzEyKr7FC90YKVHGp
 0swgZFV8TYEUp/d95kcBcKYDW4ZXT3tMo6Oazy57Hg/QXMwx61NP6+lL3GD5V7t/gH
 rmGGPyoxXsyyrkEem1JOvzSoBw5pRpwH0hZIj0AQ44glp1Hy0mO4VXDXGfrW0wIEme
 D5VMgdCbb8ySkQfzPHfMzHm+ZaD36B9IUDLwfOw2k0LB44jCZvZb0FYPzZjwklrXMw
 AFUYtzfzz8pAZQ9yF4UuJ9TuzpCYp60rGQa9+F65YqOenbcwSRfrp4f9HZNqFFvfTE
 dApGSaPsbnrxQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Jb33L2y3Vz9rxP
 for <guix-patches@HIDDEN>; Fri, 14 Jan 2022 15:05:18 +0100 (CET)
From: florhizome <florhizome@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: foot: expose terminfo dirs via native-search-paths
Date: Fri, 14 Jan 2022 14:02:54 +0000
Message-Id: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=185.67.36.66; envelope-from=florhizome@HIDDEN;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 14 Jan 2022 11:06:52 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi all,
I noticed foot did not behave normally whenever content would overflow it's current dimensions. when I installed alacritty in the same profile, this was fixed. Turned out, alacritty's declaration has a native-search-path field entry that fixed foot! Why not just search-paths, I can't tell. This might apply to further terminal emulators (kitty had problems starting emacs in some contexts for me but I would need to test that more), but for now, just foot! 

* gnu/packages/terminals.scm (foot) [native-search-paths]: Add
search-path-specification for terminfo dirs
---
 gnu/packages/terminals.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index a4fe97776d..1eb54dac80 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -849,6 +849,10 @@ (define-public foot
            pkg-config scdoc wayland-protocols))
     (inputs
      (list fcft libxkbcommon wayland))
+    (native-search-paths 
+     (list (search-path-specification
+            (variable "TERMINFO_DIRS")
+            (files '("share/terminfo")))))
     (synopsis "Wayland-native terminal emulator")
     (description
      "@command{foot} is a terminal emulator for systems using the Wayland
-- 
2.34.0





Acknowledgement sent to florhizome <florhizome@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#53257; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 15 Jan 2022 17:45:01 UTC

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