From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: quirky behaviour of =?utf-8?Q?=E2=80=9Cguix_environment?= =?utf-8?Q?=E2=80=9D?= Date: Sat, 24 Feb 2018 23:30:36 +0100 Message-ID: <87d10uowab.fsf@gmail.com> References: <874lm9qi2m.fsf@mdc-berlin.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epiL5-000871-S4 for guix-devel@gnu.org; Sat, 24 Feb 2018 17:30:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epiL2-0006qq-KE for guix-devel@gnu.org; Sat, 24 Feb 2018 17:30:43 -0500 Received: from mail-pl0-x236.google.com ([2607:f8b0:400e:c01::236]:40994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epiL2-0006pw-E4 for guix-devel@gnu.org; Sat, 24 Feb 2018 17:30:40 -0500 Received: by mail-pl0-x236.google.com with SMTP id k8so7031956pli.8 for ; Sat, 24 Feb 2018 14:30:40 -0800 (PST) In-Reply-To: <874lm9qi2m.fsf@mdc-berlin.de> (Ricardo Wurmus's message of "Thu, 22 Feb 2018 14:17:53 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ricardo Wurmus writes: > 1.) the environment includes glibc and its executables. Is this ever > desired? When loading an environment from a file or from a package > (i.e. when =E2=80=9C--ad-hoc=E2=80=9D is NOT provided) =E2=80=9Cguix = environment=E2=80=9D uses > =E2=80=9Cpackage-environment-inputs=E2=80=9D, which runs =E2=80=9Cpac= kage->bag=E2=80=9D and then > =E2=80=9Cbag-transitive-inputs=E2=80=9D. The resulting list of packa= ges is then > used as the inputs for a profile derivation. That seems a bit > excessive. > > Would it not be sufficient to use only the direct inputs of the > package as the inputs to the profile derivation? That way =E2=80=9Cg= uix > environment foo=E2=80=9D would behave just like =E2=80=9Cguix environ= ment --ad-hoc > input-a-of-foo input-b-of-foo input-c-of-foo=E2=80=9D. > > Is there a reason why it creates a whole bag and dumps its contents > into the inputs of the profile derivation? My interpretation of the intended behavior of "guix environment foo" is that is that only the inputs of (the bag of) foo should show up in the environment, not the transitive closure of inputs. I am surprised to hear that that is not the case, but perhaps I am missing something. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlqR54wACgkQ3UCaFdgi Rp1D9hAA1XH/aElCcOPpR8G54AFvBMTm4ympLUQqKaVl37thv8ztxXpGb1rDGwXf lmjbj7loq5B5g9EHAb/5wOcwXy/dYmn3xyQnf48LxkkZ6TZQbpe1AoFMmD71P7ol tBol7LMJjNR/Z3p9NcFbNl3B0NgMhUfcaKXgIygPecM537QI6fbuK+1sW56CjIrA JYC48cpMJcFJ/7r4quRkIXGpsQrJbZxYAT4azUJ2bcXnBLgqKl7QDY/zNvzCQRG3 ZQK2nhRbN72CBffDl8OejkmIvLlG5X5mQvH2D2EVe9E5T0vmpPcqw/FUrVkKqlLb aPLRKBQ5gQeGRRV+JwxAwglj2B3/qMwcOkzpckXDxgpfAcxtHXqJNlk78nt1dfqY 0lmtxkSo+Z3s53P5ROghFHuQmuv9BZ82Au0r+QM21vhOGh8AwxHCp3ffR/vw8j0C 0RNULn61H6EAU6RbcN9JIm4H81LVkIWYdU4sYZ+X4ADOTIwYQLS1vQXnm/P7aOtb 5ggm8SHJirUAVXpk3zcSGz3wvuGgapoOaaKF2Hfxxo4/8HfAvob1jX8fDa02Be8s 3aZTpzAa7Z38gIqJ6BQHU5uZqw4J38uqG2tnsATVRscg2upAczH6RI58wDcl7970 9+J1mcRHuy5Gs4O1j59gS/1dV8N/22tbZM99hpop6iuQwqeeqxw= =4MX5 -----END PGP SIGNATURE----- --=-=-=--