From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OPnjOiB2BWL8cQAAgWs5BA (envelope-from ) for ; Thu, 10 Feb 2022 21:31:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oOyyMyB2BWIVcgAAG6o9tA (envelope-from ) for ; Thu, 10 Feb 2022 21:31:28 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B266C2F2B9 for ; Thu, 10 Feb 2022 21:31:26 +0100 (CET) Received: from localhost ([::1]:44948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIG69-00052o-Tc for larch@yhetil.org; Thu, 10 Feb 2022 15:31:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIG5m-00052c-F7 for guix-patches@gnu.org; Thu, 10 Feb 2022 15:31:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIG5m-0004p1-5s for guix-patches@gnu.org; Thu, 10 Feb 2022 15:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIG5m-0002rp-3o for guix-patches@gnu.org; Thu, 10 Feb 2022 15:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via native-search-paths Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Feb 2022 20:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53257 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: Florian , 53257@debbugs.gnu.org Received: via spool by 53257-submit@debbugs.gnu.org id=B53257.164452504810998 (code B ref 53257); Thu, 10 Feb 2022 20:31:02 +0000 Received: (at 53257) by debbugs.gnu.org; 10 Feb 2022 20:30:48 +0000 Received: from localhost ([127.0.0.1]:57272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIG5Y-0002rK-5M for submit@debbugs.gnu.org; Thu, 10 Feb 2022 15:30:48 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:38412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIG5X-0002r5-DC for 53257@debbugs.gnu.org; Thu, 10 Feb 2022 15:30:47 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E3E2F761; Thu, 10 Feb 2022 21:30:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rEDU3Xmcminy; Thu, 10 Feb 2022 21:30:40 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 58A6F39F; Thu, 10 Feb 2022 21:30:40 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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> <9da3ea19616015d650aa709f45d39d9d3e99b8e1.camel@telenet.be> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?UTF-8?Q?Pluvi=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 10 Feb 2022 21:30:39 +0100 In-Reply-To: <9da3ea19616015d650aa709f45d39d9d3e99b8e1.camel@telenet.be> (Maxime Devos's message of "Tue, 08 Feb 2022 13:46:47 +0100") Message-ID: <87czju5us0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: E3E2F761 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644525086; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=VDWCPv6xfriTM5oWOtrum0xeih9ZQ2u9SzCDgvgeK4Q=; b=e/LMBOMyisiTgKsVDPiGSZrktMPW6x6YHoyTwMhp7xCUMJK4oUukn07wgFPUfTdD8FNM83 aWnJ+M1V7W4h1YyyZdnKyPMpyE+Qtau4getvEUJX2yBFq22EkKdYTN6nrBdZJBXyj6Je5e XZ50LSF0oO03/A0KYtSnW2cPp9t8D4JhRxqzhojnvQieBs8E8Grs3PzTCL3UshYR3iu+h2 7rAa243vM0BkAVphDxHQ6JtEEhV+YfWFJQOJP1UlajlTaFHnYg4IIZvkLv2sq8a4eI1CzM 0IUymK/Hnb96ZViy8Wyb+1WlN3y33as4K675KnP9dtLKVHbib7LeqZBcqdrDwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644525086; a=rsa-sha256; cv=none; b=MXd71sUPW8PlXb1Fj0rkBRG/o3G31PRfOfw4/wKbxhbuyxASxU9mKmeFybdVO9UagpmexG ilLRsQXEYVLjUNhhbM6eT3KJsydbH7aSZlU89Z+fyvu1xAusOxycFzR1pKqziAEfhBQ2qI k6wR+wZbpXUSd9ZMfQ00Oy+Zl/aOSVSgQ2q8+iPTAy+u6aur+7cdXObJszu4qsg8L/o3XB Awyetmf+64FLs6fFsvxz/ZOCrp8wuE8LZTtAcTohMr+5NIDegYR9/JiSUNhhFiiumd77cW 43nvz180bnG4ckIQFgih4FfWZeqC4nEBbcwLzDWng8XRyfjPt5jpAKeefeO9zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B266C2F2B9 X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9PrU/CQ4ni4J Hi Maxime, Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op vr 28-01-2022 om 23:34 [+0100]: [...] >> 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. [...] > 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'. Yeah; like I wrote, it=E2=80=99s a workaround, but it solves the most common issues. > 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. That=E2=80=99s not appealing to me; the way I see it, that=E2=80=99s going = a bit too far in the direction of dismissing per-package search paths in favor of hard-coded lists 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. Oh wait, I just realized that =E2=80=98foot=E2=80=99 comes with its own ter= minfo files. In that case, the solution would be to wrap it so that it systematically adds itself to TERMINFO_DIRS. That=E2=80=99s the go-to solution in such situations. WDYT? Ludo=E2=80=99.