From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: quirky behaviour of =?utf-8?Q?=E2=80=9Cguix_environment?= =?utf-8?Q?=E2=80=9D?= Date: Tue, 6 Mar 2018 20:16:25 +0100 Message-ID: <87bmg1m2uu.fsf@mdc-berlin.de> References: <874lm9qi2m.fsf@mdc-berlin.de> <87d10uowab.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etI4x-0004T4-1E for guix-devel@gnu.org; Tue, 06 Mar 2018 14:16:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etI4w-0006K1-2j for guix-devel@gnu.org; Tue, 06 Mar 2018 14:16:51 -0500 In-Reply-To: <87d10uowab.fsf@gmail.com> 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: Chris Marusich Cc: guix-devel@gnu.org, David Thompson Chris Marusich writes: > 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 packag= e >> (i.e. when =E2=80=9C--ad-hoc=E2=80=9D is NOT provided) =E2=80=9Cgu= ix environment=E2=80=9D uses >> =E2=80=9Cpackage-environment-inputs=E2=80=9D, which runs =E2=80=9C= package->bag=E2=80=9D and then >> =E2=80=9Cbag-transitive-inputs=E2=80=9D. The resulting list of pa= ckages 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=9C= guix >> environment foo=E2=80=9D would behave just like =E2=80=9Cguix envi= ronment --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 content= s >> 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. Yeah, this was also quite a surprise to me. David, would it be wrong for us to change the behaviour such that only direct inputs end up in the environment? Aside from this issue, I find it worrying that the graft for glibc does not end up in the environment. This is a serious problem for those who use =E2=80=9Cguix environment=E2=80=9D on RHEL 6. Ludo, do you know if this is a more general bug or if it is due to the design of =E2=80=9Cguix environment=E2=80=9D? -- Ricardo