Received: (at 35751) by debbugs.gnu.org; 18 May 2019 17:19:55 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 18 13:19:55 2019 Received: from localhost ([127.0.0.1]:32896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hS2zz-0007hC-7g for submit <at> debbugs.gnu.org; Sat, 18 May 2019 13:19:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1hS2zv-0007gx-PW for 35751 <at> debbugs.gnu.org; Sat, 18 May 2019 13:19:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>) id 1hS2zq-0005Wo-Ag; Sat, 18 May 2019 13:19:46 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34646 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1hS2zp-0005C0-Eg; Sat, 18 May 2019 13:19:45 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> To: Danny Milosavljevic <dannym@HIDDEN> Subject: Re: bug#35751: "guix environment -s" doesn't set %current-system in gnu/packages References: <20190515173211.5b394c1c@HIDDEN> Date: Sat, 18 May 2019 19:19:40 +0200 In-Reply-To: <20190515173211.5b394c1c@HIDDEN> (Danny Milosavljevic's message of "Wed, 15 May 2019 17:32:11 +0200") Message-ID: <87blzzvfwz.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35751 Cc: 35751 <at> debbugs.gnu.org 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 Danny, Danny Milosavljevic <dannym@HIDDEN> skribis: > when doing "guix environment -s armhf-linux", apparently it doesn't set > %current-system to "armhf-linux" for packages in gnu/packages at toplevel > context. Correct. That=E2=80=99s the way it=E2=80=99s meant to work: the initial va= lue of =E2=80=98%current-system=E2=80=99 when files get loaded should not matter. > That would be convenient for development, f.e. instead of "guix build" I = often > use "guix environment" inside the git checkout of the package. In this c= ase > it's differing. Package definitions should refer to =E2=80=98%current-system=E2=80=99 only = from within the dynamic extent of a thunked field. For example, if a package refers to =E2=80=98%current-system=E2=80=99 from = =E2=80=98arguments=E2=80=99, or from a procedure called from =E2=80=98arguments=E2=80=99, everything is = fine: =E2=80=98%current-system=E2=80=99, at that point, will be bound to whatever= was selected with =E2=80=98-s=E2=80=99. Does that make sense? Thanks, Ludo=E2=80=99.
bug-guix@HIDDEN
:bug#35751
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 May 2019 15:32:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 15 11:32:28 2019 Received: from localhost ([127.0.0.1]:53202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hQvtL-00082X-VM for submit <at> debbugs.gnu.org; Wed, 15 May 2019 11:32:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dannym@HIDDEN>) id 1hQvtK-00082K-OR for submit <at> debbugs.gnu.org; Wed, 15 May 2019 11:32:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:37970) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <dannym@HIDDEN>) id 1hQvtF-0007jA-Ho for submit <at> debbugs.gnu.org; Wed, 15 May 2019 11:32:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <dannym@HIDDEN>) id 1hQvtE-0005vw-Ik for bug-guix@HIDDEN; Wed, 15 May 2019 11:32:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <dannym@HIDDEN>) id 1hQvtD-0007gk-Ox for bug-guix@HIDDEN; Wed, 15 May 2019 11:32:20 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:44888) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <dannym@HIDDEN>) id 1hQvtD-0007f1-IC for bug-guix@HIDDEN; Wed, 15 May 2019 11:32:19 -0400 Received: from localhost (212095005169.public.telering.at [212.95.5.169]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 7130033606B9 for <bug-guix@HIDDEN>; Wed, 15 May 2019 17:32:16 +0200 (CEST) Date: Wed, 15 May 2019 17:32:11 +0200 From: Danny Milosavljevic <dannym@HIDDEN> To: <bug-guix@HIDDEN> Subject: "guix environment -s" doesn't set %current-system in gnu/packages Message-ID: <20190515173211.5b394c1c@HIDDEN> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/KCoO1GrO=XWX9IBSeU6LyrH"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 85.13.145.193 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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 (---) --Sig_/KCoO1GrO=XWX9IBSeU6LyrH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, when doing "guix environment -s armhf-linux", apparently it doesn't set %current-system to "armhf-linux" for packages in gnu/packages at toplevel context. That would be convenient for development, f.e. instead of "guix build" I of= ten use "guix environment" inside the git checkout of the package. In this case it's differing. Should it? --Sig_/KCoO1GrO=XWX9IBSeU6LyrH Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlzcMPsACgkQ5xo1VCww uqVW1wf6ArzysKPZeVdNey+JzoJuxI393hhNHZAhkjC9iHpSSwfvsGWgRdinK/B5 1qi5u/CRtwrkyeC14NuQxMLmoTLIsyGxXtKP2Tn8R6OGbiUzDa2tFiwAUF5cwVRx gZMDiZK1x9LdKkuMuGBgu9EzTy5quKP9nHuDnCOjOOyOoZtG5AOJzbTYHo3YfqN4 tNOV1CyvRpU/rMCGILSm8ktzY0mrm3qrqdu7PzCBsqX9uHJjgXPs84zuIpz6sGeP DrlvyyYIrR1xXyM3NZ2gm1oY3sT8YU30r//fteDSBa947WLag/8jFVSFj2bCM612 8qxk/1zfpoKud6TpKg0suVa2aj0n6A== =oCeq -----END PGP SIGNATURE----- --Sig_/KCoO1GrO=XWX9IBSeU6LyrH--
Danny Milosavljevic <dannym@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#35751
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.