From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 08 07:46:58 2022 Received: (at 53257) by debbugs.gnu.org; 8 Feb 2022 12:46:58 +0000 Received: from localhost ([127.0.0.1]:45774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHPta-0002Fi-DY for submit@debbugs.gnu.org; Tue, 08 Feb 2022 07:46:58 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:32882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHPtY-0002FZ-1O for 53257@debbugs.gnu.org; Tue, 08 Feb 2022 07:46:57 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id scmt2600l4UW6Th01cmuTx; Tue, 08 Feb 2022 13:46:54 +0100 Message-ID: <9da3ea19616015d650aa709f45d39d9d3e99b8e1.camel@telenet.be> Subject: Re: bug#53257: [PATCH] gnu: foot: expose terminfo dirs via native-search-paths From: Maxime Devos To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Date: Tue, 08 Feb 2022 13:46:47 +0100 In-Reply-To: <87v8y3bic8.fsf_-_@gnu.org> References: <811cc55626870dbf37af3418e8effe191948541a.1642168254.git.florhizome@posteo.net> <070637a9bb8fc9a51bd39b0a2666ede537bdc949.camel@telenet.be> <87sftqlykz.fsf@tp-x230-guix.mail-host-address-is-not-set> <9b79749f1902ca64bc0a544a697b4109920592f5.camel@telenet.be> <87v8y3bic8.fsf_-_@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-vliZrMrwYjX1lQqylVh4" 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=1644324414; bh=wDJFKco0kf5DV6GTWuVsBY3H7ZhIb1VeEJ7Qbass4EM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=mJHd4CldmbPHoQpTZku818hl0xWQSBNi9/k+Hs3fqTjlOXMsXnUsjzMSO2mB9THJz iEQosyzkBeus7MeCI6ODJIYqPWtEbO2hNYpPPZJjL04h//bjYDsWhDQV6IzD6Sruvw S5OHe381BjU/fIwJEZbHUELrdmQFBTcir+uvJUQWrl/XIDlT2PfwF7znY/UIqoQOQR rOOrTmvJbURTTEQ7QKGnHsuRNAf1g+NRa5Ihgk7Ia6omBaa408GCjS3sftEaJHzdqf z8c5CuA94E4HUot/vQmqYN0HXEiB7iCNSkZ88ABSa2PJ95buHM3e6Uxf7yAH6+ugnv 73T4ec9MltnVQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53257 Cc: Florian , 53257@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-vliZrMrwYjX1lQqylVh4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op vr 28-01-2022 om 23:34 [+0100]: > Hi, >=20 > Maxime Devos skribis: >=20 > > This patch is about 'foot', so I tried running foot+nano, but that fail= ed because > > I don't use wayland.=C2=A0 Anyway, there are a few options here: >=20 > An option we=E2=80=99ve used before, in fact to work around > , is to define certain variables > globally; on Guix System, you=E2=80=99ll see this in /etc/profile: >=20 > --8<---------------cut here---------------start------------->8--- > # Allow Hunspell-based applications (IceCat, LibreOffice, etc.) to > # find dictionaries. > export DICPATH=3D\ > "$HOME/.guix-profile/share/hunspell\ > :/run/current-system/profile/share/hunspell" >=20 > # Allow GStreamer-based applications to find plugins. > export GST_PLUGIN_PATH=3D\ > "$HOME/.guix-profile/lib/gstreamer-1.0" > --8<---------------cut here---------------end--------------->8--- >=20 > We should probably do the same for =E2=80=98TERMINFO_DIRS=E2=80=99. > > WDYT? IIUC, that only works if 'foot' is installed in in the system profile, and not if it is installed in the user profile.=C2=A0 Unlike, say, 'gnome-terminal', 'foot' doesn't seem like something that would be in the system profile. The variable would need to be added to $GUIX_PROFILE/etc/profile instead. ... (me notices .guix-profile in the example above) ... Ok, this could work with things in the user profile, but it's a rather ad-hoc solution and won't work with "guix shell", so I would prefer adding it to 'etc/profile'. One option is to modify 'build-etc/profile' to always add 'TERMINFO_DIRS' (and maybe DICPATH, GUIX_LOCPATH and SSL_CERT_DIR/FILE?) to the list of search paths. > (Of course that that doesn=E2=80=99t help on foreign distros, but maybe > =E2=80=98TERMINFO_DIRS=E2=80=99 is already set there?) I'm currently on Debian+Guix. $TERMINFO_DIRS is not set here. Even if it was, I doubt you'd find the files for 'foot' in there unless 'foot' is installed with the foreign distro's installer -- AFAICT, 'foot' is not present in ncurses' terminfos. If I do "grep -RF foot /usr/share/terminfo/", I don't find any results. I do find results for 'kitty' though, which makes it odd that some previous tests I did with 'kitty' failed ... Greetings, Maxime --=-vliZrMrwYjX1lQqylVh4 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+4iGRcl7gUCYgJmNxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7l5BAP0YHQOCyhORue5UAqrhKUZb9f39 m5O0XFa2jR9cCegahQEAnDLBh+Rt/UGsWahDHg01hQ8DmAGvoqY+bFu8u7fmegc= =kmN8 -----END PGP SIGNATURE----- --=-vliZrMrwYjX1lQqylVh4--