From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8LSXO8JtuWJBNAAAbAwnHQ (envelope-from ) for ; Mon, 27 Jun 2022 10:43:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OE1TO8JtuWJPegEAauVa8A (envelope-from ) for ; Mon, 27 Jun 2022 10:43:46 +0200 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 664DD3CF7B for ; Mon, 27 Jun 2022 10:43:45 +0200 (CEST) Received: from localhost ([::1]:56448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5kLP-0000qc-TO for larch@yhetil.org; Mon, 27 Jun 2022 04:43:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5kFy-0003hp-Qk for bug-guix@gnu.org; Mon, 27 Jun 2022 04:38:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5kFu-0002cd-Af for bug-guix@gnu.org; Mon, 27 Jun 2022 04:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5kFu-0004LH-4j for bug-guix@gnu.org; Mon, 27 Jun 2022 04:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56076: guix shell -P behavior is surprising with persistent home Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 27 Jun 2022 08:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56076 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Ethan Blanton , 56076@debbugs.gnu.org Received: via spool by 56076-submit@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 ) id 1o5kFc-0004Kl-As for submit@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 ) id 1o5kFO-0004KN-O0 for 56076@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@telenet.be> From: Maxime Devos Date: Mon, 27 Jun 2022 10:37:21 +0200 In-Reply-To: <878rpilevx.fsf@gnu.org> References: <87letlu5s2.fsf@gnu.org> <6c1c24fc001fe020895f9e85299c7049c1692a62.camel@telenet.be> <878rpilevx.fsf@gnu.org> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656319425; 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: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=YKy9NhjLIj3/p7PxB8wATR8guKpo1mPQ8+R8V/4EkFY=; b=kRCoGKi3+r+0/smie+heGZFm580somU2d1dBGBholOOZrvGyRrEQ56T35drbNC8PuVK0HV Ek+npjEGI2TY94GxhQ6RAmMmT3T6hBTGzEqlZWZ7Rsof2wegqXzu3MGprQC5NBN00u10xB fppvSbyUfuPb43GL7pWXOX++syTCvtbJdSYNjemEa348mVx6DDufUaK2FgbEl6r4wNO967 NAZ36kMBRbmkdQdKUG91OkA23Uw1GIO4dfRJurPCkWYavsBOg91M4ej2ijjHq0BIdZmg9S PAA9+6OiAnatSNYcjji/bPxaYmbp6mbfk5IBAl5DRgPf57NuJpZllHaOrS5EXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656319425; a=rsa-sha256; cv=none; b=D4XyzbYnWKlGJtA7+VI5fZdaIG3koBlDhZd8UPTQpZCPUg9r3J5HdeXOSx2zsb7HLTabry u9w4fZwcOxHA+QcUB6VGWiSxKvBIIUHXQhwHapNGGuqLSVMCNbwtKtXwZoaXkgJn6utLqW iiX9jdQXp0x3WqNQLzPUlqUjPTexaZ+gQXuxn4lLkyOVs2bs+DYPbTWbkhjLnZ90V5Uf4i eeeED9k3JEcwnqUgt0PfxX+Qq65z161w3ppeLfzhmWhoK4nsC38t0tWlPdeFnPk0KD1wmy /PVK4SMr4Upak//VqKd+t9QcNuXDGoD9oh283KYS5IMABGEpxurqMUxyK+xPzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=QlD2A4Nd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.55 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=QlD2A4Nd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 664DD3CF7B X-Spam-Score: 2.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: GQTdo6RYOYUA --=-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 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 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--