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 IGiQCnLI7WHuBAAAgWs5BA (envelope-from ) for ; Sun, 23 Jan 2022 22:28:18 +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 iMdNA3LI7WFWgAAAG6o9tA (envelope-from ) for ; Sun, 23 Jan 2022 22:28:18 +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 7D8D1165F3 for ; Sun, 23 Jan 2022 22:28:17 +0100 (CET) Received: from localhost ([::1]:45868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBkPI-0008GJ-Ld for larch@yhetil.org; Sun, 23 Jan 2022 16:28:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBkP4-0008EG-Gt for guix-patches@gnu.org; Sun, 23 Jan 2022 16:28:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48521) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBkP4-0006vM-6z for guix-patches@gnu.org; Sun, 23 Jan 2022 16:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBkP4-0000Lb-4o for guix-patches@gnu.org; Sun, 23 Jan 2022 16:28:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53257] [PATCH] gnu: foot: expose terminfo dirs via native-search-paths Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 23 Jan 2022 21:28: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: Florian , 53257@debbugs.gnu.org Received: via spool by 53257-submit@debbugs.gnu.org id=B53257.16429732271251 (code B ref 53257); Sun, 23 Jan 2022 21:28:02 +0000 Received: (at 53257) by debbugs.gnu.org; 23 Jan 2022 21:27:07 +0000 Received: from localhost ([127.0.0.1]:41420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBkOB-0000K7-2j for submit@debbugs.gnu.org; Sun, 23 Jan 2022 16:27:07 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:49780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBkO8-0000Jy-NI for 53257@debbugs.gnu.org; Sun, 23 Jan 2022 16:27:05 -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 mMT3260034UW6Th01MT3JW; Sun, 23 Jan 2022 22:27:03 +0100 Message-ID: From: Maxime Devos Date: Sun, 23 Jan 2022 22:26:58 +0100 In-Reply-To: <87czksalbd.fsf@tp-x230-guix.mail-host-address-is-not-set> References: <87czksalbd.fsf@tp-x230-guix.mail-host-address-is-not-set> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-R91NbeSe7f/GtQ0gJd6z" 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=1642973223; bh=4tAm64oX78Tqgkp2lD7PwG9WqZVrssMmS5KaJ9ADWIw=; h=Subject:From:To:Date:In-Reply-To:References; b=F3ZVbxskl1Gh0za3xivj7tTcy8PaUFBM1SCukPOhfXAyRKmeh0KnjVkcSnxbZQOuR d5GrIOGFeuinQ4Qtjx80A2bjEbWlJzL1q4lvi6wwkb8INHl6AX+X1DDR/wj10DOr2h cYt7yRijqxSk//vjRT5JDH4IXQGr52LQicquk1pbMqwhxQAAL+paGVuMyPYYuEWbMd 1Wvi3hXaPXT5YpCd/alFzGE27HD2ORrnbA5oBBZp0XWpg/c0JEdG+gV5GtvC5gVjwg +420X6awftwXi+gbRCFuPpR0bIZMlJJqFz0KihdfRraMYJgFXu8hiTPzTaEAi4calT /JRECy9UMpQeQ== 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=1642973297; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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: dkim-signature; bh=4tAm64oX78Tqgkp2lD7PwG9WqZVrssMmS5KaJ9ADWIw=; b=tyFz6VOS+cH7EQjXgLoh/1yTv3RoLlvwTXMIMu4vcDJQGravWVQk9XNqv9hyZbcjwCIEgc F6R6n7fg4WBVpM5JsCq5KFdvvBIDobm4B7jG0ZmdYN03PjL7R9Li+W92F5m73AEvm3AAji n+XM4qur86fSI9mz9pRuJX4p4XDwVftySh6YXxZ8bFup2QKb/9eVxFjagLddeF4SHdUblX XtJ/60Zsmjw3KGLPrdlRdvJN78R9pWVTxni997HYIk/aAKyiCgxrA7lA2PzwUonnumBakJ XdMw+fF1tGlXF1WIsa9YuxZBdoIMsftMLMRNollMngzNB9GpYkF5qm18EPXFCw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642973297; a=rsa-sha256; cv=none; b=YgLeeXz+rQyJLJQ7AXwtrRUtXrtz+pG5wdrX481aRoaqT6EG/Cm6eDhZbH7VCEbiUdPBei VkrdiDM1eE90iq+bTsxWY7dn2LI5FP3e3183sGF7Q8dqEM0rThPUyeBlFVPgdZkK9fKFCD H/eCbuIv9hwFlw+bNp1oBwGhVPPon/n6dh34MjuW3V5aed+t3wvFukLq6y5JxUb63ErKmA V2wYYpZVOjGY21geozsw+HfoamZJLF1kYW+2ynH3a8XtGSs2bqzGf1JMisbE484Ih7EjbY NM5as7tdGEKoRJkyrE6vbyOcM+x8+8W62A4rlspGjiaivViuqT5HZg3o3/H0vQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=F3ZVbxsk; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=F3ZVbxsk; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: 7D8D1165F3 X-Spam-Score: -4.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: XQk1Ni2E124J --=-R91NbeSe7f/GtQ0gJd6z Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Florian schreef op za 15-01-2022 om 18:46 [+0000]: > to me, the functionality of search-paths seemed exactly communicating > paths *beyond* a single profile.=C2=A0 Search paths can be used for that (though that's rather fragile), but I don't quite see what this has to do with foot, which can be patched or wrapped to set TERMINFO_DIR or TERMINFO_DIRS as appropriate. > It would make more sense to set > them with the package that installs the decisive files to me, at least > as a thumb-of-rule. Your examples don't really counter that, though, i > think ;) It would seem to me that adding: * LIBRARY_PATH, CROSS_LIBRARY_PATH, C_INCLUDE_PATH, etc. to every C library package * INFOPATH to every package with an info manual * MANPATH to every package with man pages * EMACSLOADPATH to every emacs package * GUILE_LOAD_PATH / GUILE_LOAD_COMPILED_PATH to every Guile library or package with Guile bindings * GUIX_PYTHONPATH to every Python package or package with Python bindings * PKG_CONFIG_PATH to every package with pkg-config files * GI_TYPELIB_PATH for ... I'm not sure exactly * similar things for R, Haskell, Minetest, OCaml, Tcl, Lua, Coq ... would be rather tedious and it easy to=C2=A0forget. How about keeping things simple and not creating much more work, by instead adding these search paths to consumers * GCC for LIBRARY_PATH etc. * info-reader and emacs for INFOPATH * man-db for MANPATH * emacs for EMACSLOADPATH * guile for GUILE_LOAD_PATH / GUILE_LOAD_COMPILED_PATH * etc. like we're doing currently? The number of packages in the list below is much smaller than the number of packages in the list above > In other words, what next? https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22138 would help, but doesn't address the cross-profile issue.=C2=A0 If 22138 is considered notabug, then > 2. modify 'nano', 'emacs', ... to add a "TERMINFO_DIRS" search path. >=20 > 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, ...). >=20 > 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 >=20 For addressing the cross-profile issue: > 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'). >=20 > The benefit of this above adding search paths, is that running > 'foot' > directly from the store could work (somewhat niche though). >=20 > It would need to be investigated whether this works for your use > case of > setting 'foot-direct' instead of 'foot-xterm'. >=20 There was some terminal emulator setting TERMINFO_DIR (!=3D TERMINFO_DIRS) I think, maybe that would be worth investigating as well. Greetings, Maxime. --=-R91NbeSe7f/GtQ0gJd6z 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+4iGRcl7gUCYe3IIhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iGlAP43px2VRT6E1iNfpyfys+MHA39g JQEHK7QrnkVcxAp5QQEAqZXEj+9W+lhROnqDxbfAXLEO5TKQ8SkVgtGSlDMAdAA= =tgop -----END PGP SIGNATURE----- --=-R91NbeSe7f/GtQ0gJd6z--