X-Loop: help-debbugs@HIDDEN Subject: bug#56076: guix shell -P behavior is surprising with persistent home Resent-From: Ethan Blanton <elb@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 18 Jun 2022 21:44:01 +0000 Resent-Message-ID: <handler.56076.B.165558862817905 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 56076 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 56076 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.165558862817905 (code B ref -1); Sat, 18 Jun 2022 21:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jun 2022 21:43:48 +0000 Received: from localhost ([127.0.0.1]:50303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2gEO-0004ej-4R for submit <at> debbugs.gnu.org; Sat, 18 Jun 2022 17:43:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:47926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <elb@HIDDEN>) id 1o2gCU-0004au-KH for submit <at> debbugs.gnu.org; Sat, 18 Jun 2022 17:41:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <elb@HIDDEN>) id 1o2gCU-0006Tk-8P for bug-guix@HIDDEN; Sat, 18 Jun 2022 17:41:50 -0400 Received: from cathode.kb8ojh.net ([162.243.72.198]:58032) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <elb@HIDDEN>) id 1o2gCS-0007gA-HO for bug-guix@HIDDEN; Sat, 18 Jun 2022 17:41:49 -0400 Received: from anode.kb8ojh.net (cpe-74-77-94-120.buffalo.res.rr.com [74.77.94.120]) by cathode.kb8ojh.net (Postfix) with ESMTPSA id 113024046B for <bug-guix@HIDDEN>; Sat, 18 Jun 2022 21:41:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kb8ojh.net; s=cathode; t=1655588507; bh=r8XyKdGFfkV3HUdLP6WjR2FtJeD22FcyA3TOt44hM2o=; h=Date:From:To:Subject:From; b=NBV02ZXM8/VLIh8V90bUDE7u0CvG4Z9stu1e5VlLuj70vHDeyn+1b6zE7YB1rO5jf qWhLaqf4ybQlmsNTj99AUUD8RB7DbMwa2Ncyalr87FL4aFVaQVhfgd35NVS0SfCOhF 816MzbL4rLCFUtAFkEAbX+3AuNv7rp9wm7Pl0Uwk= Received: by anode.kb8ojh.net (Postfix, from userid 1000) id 918C1418F4; Sat, 18 Jun 2022 17:41:46 -0400 (EDT) Date: Sat, 18 Jun 2022 17:41:46 -0400 From: Ethan Blanton <elb@HIDDEN> Message-ID: <Yq5GmheRwHRPgJgD@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GnuPG-Fingerprint: 2A9A 7752 8B91 6586 6289 FD3D 6CA9 2AC6 A1A8 AD0E Received-SPF: pass client-ip=162.243.72.198; envelope-from=elb@HIDDEN; helo=cathode.kb8ojh.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sat, 18 Jun 2022 17:43:46 -0400 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 (--) I am using guix shell to create an isolated container, but using a persistent home directory to preserve configuration and state for the program in the container. Specifically, I am using (lightly simplified; note that the user is elb and the manifest contains ONLY syncthing): CONTAINER_HOME=/path/to/persistent/home MANIFEST=/path/to/manifest.scm guix shell --container --network --no-cwd -P \ --share=$CONTAINER_HOME=/home/elb -- \ /bin/sh -c 'SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs" syncthing' Because syncthing requires a certificate store, the easiest way to configure that seemed to be through the profile /etc dir, which meant using -P. The above command works, and works correctly, but only the first time the profile is started. On subsequent starts, guix complains that: guix shell: error: cannot link profile: '/home/elb/.guix-profile' already exists within container This is easily worked around by removing .guix-profile from the --share-bound home directory before invoking guix shell. It is not clear to me that this is a bug, but it was surprising. It was also surprising that there was not an obvious way to simply declare a persistent home directory for a container, although now that I understand the `guix shell` command better, I find this less surprising than I did when I was first exploring. Ethan
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ethan Blanton <elb@HIDDEN> Subject: bug#56076: Acknowledgement (guix shell -P behavior is surprising with persistent home) Message-ID: <handler.56076.B.165558862817905.ack <at> debbugs.gnu.org> References: <Yq5GmheRwHRPgJgD@HIDDEN> X-Gnu-PR-Message: ack 56076 X-Gnu-PR-Package: guix Reply-To: 56076 <at> debbugs.gnu.org Date: Sat, 18 Jun 2022 21:44:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 56076 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 56076: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D56076 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#56076: guix shell -P behavior is surprising with persistent home Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Fri, 24 Jun 2022 21:11:01 +0000 Resent-Message-ID: <handler.56076.B56076.1656105042883 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56076 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ethan Blanton <elb@HIDDEN> Cc: 56076 <at> debbugs.gnu.org Received: via spool by 56076-submit <at> debbugs.gnu.org id=B56076.1656105042883 (code B ref 56076); Fri, 24 Jun 2022 21:11:01 +0000 Received: (at 56076) by debbugs.gnu.org; 24 Jun 2022 21:10:42 +0000 Received: from localhost ([127.0.0.1]:43670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o4qZU-0000Dw-Vp for submit <at> debbugs.gnu.org; Fri, 24 Jun 2022 17:10:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1o4qZR-0000Dj-Qi for 56076 <at> debbugs.gnu.org; Fri, 24 Jun 2022 17:10:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1o4qZM-0001fG-9x; Fri, 24 Jun 2022 17:10:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=YSTIBsNyt0UbCSKZZ3/5Y/F2JjLDPfT4jIC/BbuSUL8=; b=qRCXFDoIQpOW4VAYd0+M MWlZMTSjGmY8ZLEvloWWK9pi0K1OnLvIJsibJXsTJIIV+UQg9MG3/DlZORXeNQdbCiU5cRA1ZPGe9 2FsD15i3+IEuyo/A9Rm8mSLl2XJsl8Wt/aQ0KEE5NSFuSLRJ/jGpMqlnpdY3OHsl/LG9xcbOXb0Dx tpNi5leKsmVMoeLS1WwTeiAT0b6crz+AjpwP/oQKEsPGu624jClXBcwRRHf+kxbXfKJlofQqmTsBH 3l5m1Q4FMry+dk3X8aGlMmmmel9GSJwKZLfWMMlBMzN7BYSxfsgWFYgT2lFVQvM99KdzznhJVNWIY R4P4GqNo2oq/sg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53502 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1o4qZL-0008Ci-Cw; Fri, 24 Jun 2022 17:10:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> References: <Yq5GmheRwHRPgJgD@HIDDEN> Date: Fri, 24 Jun 2022 23:10:21 +0200 In-Reply-To: <Yq5GmheRwHRPgJgD@HIDDEN> (Ethan Blanton's message of "Sat, 18 Jun 2022 17:41:46 -0400") Message-ID: <87letlu5s2.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 Ethan, Ethan Blanton <elb@HIDDEN> skribis: > I am using guix shell to create an isolated container, but using a > persistent home directory to preserve configuration and state for the > program in the container. Specifically, I am using (lightly > simplified; note that the user is elb and the manifest contains ONLY > syncthing): > > CONTAINER_HOME=3D/path/to/persistent/home > MANIFEST=3D/path/to/manifest.scm > > guix shell --container --network --no-cwd -P \ > --share=3D$CONTAINER_HOME=3D/home/elb -- \ > /bin/sh -c 'SSL_CERT_DIR=3D"$HOME/.guix-profile/etc/ssl/certs"= syncthing' > > Because syncthing requires a certificate store, the easiest way to > configure that seemed to be through the profile /etc dir, which meant > using -P. The above command works, and works correctly, but only the > first time the profile is started. I guess it=E2=80=99s confusing because =E2=80=98-P=E2=80=99 and =E2=80=98--= share=E2=80=99 kind of step on each other=E2=80=99s toes: they both want to control /home/elb. > On subsequent starts, guix complains that: > > guix shell: error: cannot link profile: '/home/elb/.guix-profile' already= exists within container > > This is easily worked around by removing .guix-profile from the > --share-bound home directory before invoking guix shell. > > It is not clear to me that this is a bug, but it was surprising. It > was also surprising that there was not an obvious way to simply > declare a persistent home directory for a container, although now that > I understand the `guix shell` command better, I find this less > surprising than I did when I was first exploring. Yeah, I=E2=80=99m not sure how to better handle that; the two options are conflicting. That said, for this particular use case, you could do: guix shell syncthing nss-certs openssl -- syncthing Adding =E2=80=98openssl=E2=80=99 to the mix is a trick to ensure that SSL_C= ERT_DIR is defined, thanks to the search path mechanism: https://guix.gnu.org/manual/devel/en/html_node/Search-Paths.html Thoughts? Ludo=E2=80=99.
X-Loop: help-debbugs@HIDDEN Subject: bug#56076: guix shell -P behavior is surprising with persistent home Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Fri, 24 Jun 2022 21:19:01 +0000 Resent-Message-ID: <handler.56076.B56076.16561055111686 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56076 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Ethan Blanton <elb@HIDDEN> Cc: 56076 <at> debbugs.gnu.org Received: via spool by 56076-submit <at> debbugs.gnu.org id=B56076.16561055111686 (code B ref 56076); Fri, 24 Jun 2022 21:19:01 +0000 Received: (at 56076) by debbugs.gnu.org; 24 Jun 2022 21:18:31 +0000 Received: from localhost ([127.0.0.1]:43692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o4qhD-0000R8-KN for submit <at> debbugs.gnu.org; Fri, 24 Jun 2022 17:18:31 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:38012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maximedevos@HIDDEN>) id 1o4qhB-0000Qy-5l for 56076 <at> debbugs.gnu.org; Fri, 24 Jun 2022 17:18:29 -0400 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 n9JS2700E4UW6Th019JSSc; Fri, 24 Jun 2022 23:18:27 +0200 Message-ID: <6c1c24fc001fe020895f9e85299c7049c1692a62.camel@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Fri, 24 Jun 2022 23:18:16 +0200 In-Reply-To: <87letlu5s2.fsf@HIDDEN> References: <Yq5GmheRwHRPgJgD@HIDDEN> <87letlu5s2.fsf@HIDDEN> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-PvT2crWgSDRIqy3ISy7j" 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=1656105507; bh=sqKdOO81o8w3A6CjeWsg0VZgsu7J9BASmO1EWR07sQ0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=PPZciba4QgssMzWMla5aFS8OJgBcYSBFWKD+xnk3i0GasSzLpc6VWKy72sB0f6Hv+ 9APffL8OjIi8WlHYmKqJIHjUvQbG3imTuwCOqb20Hy3l0ZXEEnuTwxvR6q08zFFZHP jP+/LXuhw3t8GM3/uUR6gKU9b+3SjIbZmjV7teyJV0c8vXSzWqeOd/hguXl6bivMw3 HIRUHrStIojsAsZVRw8sPsFKZr7zQYbvO9Lsbf0YJf2TdLo2N6JCL2Da/7cnoHHFsF eoJzY1bcGzthQsq03nBmTnzPJWDTDdxtPv2748QgKbWGmbNLKfpS8gGc4SOpoGomzu c6a7Za6DDy0qw== X-Spam-Score: -0.0 (/) 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.0 (-) --=-PvT2crWgSDRIqy3ISy7j Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op vr 24-06-2022 om 23:10 [+0200]: > That said, for this particular use case, you could do: >=20 > =C2=A0 guix shell syncthing nss-certs openssl -- syncthing >=20 > Adding =E2=80=98openssl=E2=80=99 to the mix is a trick to ensure that SSL= _CERT_DIR is > defined, thanks to the search path mechanism: >=20 > =C2=A0 https://guix.gnu.org/manual/devel/en/html_node/Search-Paths.html >=20 > Thoughts? Having to add openssl looks like a bug, so I'd go for something like <https://issues.guix.gnu.org/55297> instead, which resolves that. Greetings, Maxime. --=-PvT2crWgSDRIqy3ISy7j 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+4iGRcl7gUCYrYqGBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7rzgAP9nv0qmqToh8y+uHFpugmVm1F9b ObB0+ryGHrb077iNcgEA0Wrdokg7ezmRpEII3y/mNsajvsfEbnTshBjf/J0vXw8= =rMF+ -----END PGP SIGNATURE----- --=-PvT2crWgSDRIqy3ISy7j--
X-Loop: help-debbugs@HIDDEN Subject: bug#56076: guix shell -P behavior is surprising with persistent home Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Mon, 27 Jun 2022 07:56:01 +0000 Resent-Message-ID: <handler.56076.B56076.165631653319793 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56076 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos <maximedevos@HIDDEN> Cc: Ethan Blanton <elb@HIDDEN>, 56076 <at> debbugs.gnu.org Received: via spool by 56076-submit <at> debbugs.gnu.org id=B56076.165631653319793 (code B ref 56076); Mon, 27 Jun 2022 07:56:01 +0000 Received: (at 56076) by debbugs.gnu.org; 27 Jun 2022 07:55:33 +0000 Received: from localhost ([127.0.0.1]:49706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o5jan-00059B-Fz for submit <at> debbugs.gnu.org; Mon, 27 Jun 2022 03:55:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1o5jam-00058w-FZ for 56076 <at> debbugs.gnu.org; Mon, 27 Jun 2022 03:55:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:32912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1o5jaf-0002eQ-Pg; Mon, 27 Jun 2022 03:55:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=flkpAYAAJ83OWM86VwLb9J4x3mv/sbr/OGxLvmkFTmM=; b=bxi6nz1IZumPW6MRMD3Q lQ4/8nFVdkH1q4NOy5YeZJ1bD1+d/B9/47Qjn4ua9BxL8K2b0TNpv0/F0WfDPs47vPG5sDENFqU9J bT57PJJwiGywOldOWXwvuxB4Ph8NvvUptZXzoACvkPPa/aQ9nslcGzIhXuJuvPYWs/zQ7q0GSvUp/ /c9RfHlfs2Sy6bUMODsqWyOYxQqS9E8SXNh2v/oWiw0FFkM+JVLZLkP4XgxeDrPDa84eIpCrHYaZi bPkx6lYtE3vP6VgcA8axJdrBbgzj6Dde0KgEIeXRu9W2+rejNnTu7kC+Re4sJqW+mmVXgLnSY0f7Q NDCne2j8aVQiug==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=36272 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1o5jaW-0001h0-IH; Mon, 27 Jun 2022 03:55:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> References: <Yq5GmheRwHRPgJgD@HIDDEN> <87letlu5s2.fsf@HIDDEN> <6c1c24fc001fe020895f9e85299c7049c1692a62.camel@HIDDEN> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Nonidi 9 Messidor an 230 de la =?UTF-8?Q?R=C3=A9volution,?= jour de l'Absinthe 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: Mon, 27 Jun 2022 09:55:14 +0200 In-Reply-To: <6c1c24fc001fe020895f9e85299c7049c1692a62.camel@HIDDEN> (Maxime Devos's message of "Fri, 24 Jun 2022 23:18:16 +0200") Message-ID: <878rpilevx.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 Devos <maximedevos@HIDDEN> skribis: > Ludovic Court=C3=A8s schreef op vr 24-06-2022 om 23:10 [+0200]: >> That said, for this particular use case, you could do: >>=20 >> =C2=A0 guix shell syncthing nss-certs openssl -- syncthing >>=20 >> Adding =E2=80=98openssl=E2=80=99 to the mix is a trick to ensure that SS= L_CERT_DIR is >> defined, thanks to the search path mechanism: >>=20 >> =C2=A0 https://guix.gnu.org/manual/devel/en/html_node/Search-Paths.html >>=20 >> Thoughts? > > Having to add openssl looks like a bug, It is, but it=E2=80=99s a reasonable solution for the problem at hand. > so I'd go for something like <https://issues.guix.gnu.org/55297> > instead, which resolves that. That=E2=80=99s a bit of a hack to work around this venerable bug: https://issues.guix.gnu.org/22138 :-) Ludo=E2=80=99.
X-Loop: help-debbugs@HIDDEN Subject: bug#56076: guix shell -P behavior is surprising with persistent home Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Mon, 27 Jun 2022 08:38:02 +0000 Resent-Message-ID: <handler.56076.B56076.165631907916682 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56076 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> Cc: Ethan Blanton <elb@HIDDEN>, 56076 <at> debbugs.gnu.org Received: via spool by 56076-submit <at> debbugs.gnu.org id=B56076.165631907916682 (code B ref 56076); Mon, 27 Jun 2022 08:38:02 +0000 Received: (at 56076) by debbugs.gnu.org; 27 Jun 2022 08:37:59 +0000 Received: from localhost ([127.0.0.1]:49808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o5kFc-0004Kl-As for submit <at> debbugs.gnu.org; Mon, 27 Jun 2022 04:37:59 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:40570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maximedevos@HIDDEN>) id 1o5kFO-0004KN-O0 for 56076 <at> debbugs.gnu.org; Mon, 27 Jun 2022 04:37:43 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by xavier.telenet-ops.be with bizsmtp id o8dR2700B4UW6Th018dRuv; Mon, 27 Jun 2022 10:37:26 +0200 Message-ID: <16baeb96695dcceefca352ff9660ca6d2b87754b.camel@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Mon, 27 Jun 2022 10:37:21 +0200 In-Reply-To: <878rpilevx.fsf@HIDDEN> References: <Yq5GmheRwHRPgJgD@HIDDEN> <87letlu5s2.fsf@HIDDEN> <6c1c24fc001fe020895f9e85299c7049c1692a62.camel@HIDDEN> <878rpilevx.fsf@HIDDEN> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-TtDvIWMb6MBxJZ+QHdVj" 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=1656319046; bh=YKy9NhjLIj3/p7PxB8wATR8guKpo1mPQ8+R8V/4EkFY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=QlD2A4Nd4ZoOjhVAqWIAHhGs+90HnqxLlRe8xcB7iYtudLnVtIb9BWyasLcl4gKOW zZcUItrznuIySX68qtGptYyVEG/hbAL5fWYU4Q8tF1Pkk1UaIkjGYAb4mNJVdXoOMT RxCew5SPle2NsXfacBZ32QIw/oTurTnjcwEEaZ2uBxI/iuT5vIf2FMzp0JjjM/9JtG /oRCw9t5E/SEJHuGeR2PTQPuITgmVYZVVvmCGMd7g3D7BZJNMEVzoyIFd7Qwdn7Cg0 XT4snJ3F4c9KIYSteQX6DYtBUUlmc7yAToFnbu5KSjkbgV1tU5+GtCz9UqBK7aKXPk hk7vcgxwqb2zg== X-Spam-Score: 0.0 (/) 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.0 (-) --=-TtDvIWMb6MBxJZ+QHdVj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Having to add openssl looks like a bug, >=20 > It is, but it=E2=80=99s a reasonable solution for the problem at hand. I don't think it is. The point of a package manager or distribution is to automatically install dependencies where required -- in case of Guix, dependencies can be considered in a more general sense to include search paths and not only store items. Having to search #guix or the ML for work-arounds defeats the point. My patch <https://issues.guix.gnu.org/55297> could be considered a work-around, but at least it's automatic for the users, users don't need to remember random Guix bug facts. Ludovic Court=C3=A8s schreef op ma 27-06-2022 om 09:55 [+0200]: > That=E2=80=99s a bit of a hack to work around this venerable bug: >=20 > =C2=A0 https://issues.guix.gnu.org/22138 >=20 > :-) Maybe yes, but there's no progress there, so work-arounds are needed, and I consider my <https://issues.guix.gnu.org/55297> to be less of a hack than =E2=80=98add random packages=E2=80=99 (at least 55297 is automati= c for the user, the user doesn't have to remember random packages). And even if we do 55297 now, it's still possible to do 22138 later if deemed proper. And the patch there is fragile (e.g., if you have gcc:lib in the references, you automatically get $LIBRARY_PATH TOO, if you have a cross-gcc:lib, you'd get a $CROSS_LIBRARY_PATH (untested), it's also not really lexical (+) -- wrap-program boundaries aren't respected. It could also easily go wrong in case of static linking (because then references disappear). So I consider 22138 not be be a bug/working patch but a source of more bugs and 55297 to be a proper fix (*). (*) Except for $GUIX_LOCPATH, but that could be made magical in the same sense of $PATH. (+) E.g., suppose that pkg-config and a cross-pkg-config are somewhere in the references for whatever reason, but only a single one is in the (propagated) native-inputs. They both ahave a $PKG_CONFIG_PATH search path. However, they are different search paths (one is native-inputs, other is inputs), so we would get in trouble when "guix shell -D package" is extended with a --target option or such to make a cross- compilation environment. Greetings, Maxime. --=-TtDvIWMb6MBxJZ+QHdVj 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+4iGRcl7gUCYrlsQRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7utVAQCI4Xq4AndhygDjTTKsE+IlRd82 UAxVY7xWhGRnym3MUAD/b+Q2VCRC0jy4zB0BT6OFbLw5/ji0G01mZ+h9mLWeywk= =sKEu -----END PGP SIGNATURE----- --=-TtDvIWMb6MBxJZ+QHdVj--
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.