X-Loop: help-debbugs@HIDDEN Subject: bug#35751: "guix environment -s" doesn't set %current-system in gnu/packages Resent-From: Danny Milosavljevic <dannym@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Wed, 15 May 2019 15:33:02 +0000 Resent-Message-ID: <handler.35751.B.155793434830913 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 35751 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 35751 <at> debbugs.gnu.org X-Debbugs-Original-To: <bug-guix@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.155793434830913 (code B ref -1); Wed, 15 May 2019 15:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 May 2019 15:32:28 +0000 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> 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-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--
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: Danny Milosavljevic <dannym@HIDDEN> Subject: bug#35751: Acknowledgement ("guix environment -s" doesn't set %current-system in gnu/packages) Message-ID: <handler.35751.B.155793434830913.ack <at> debbugs.gnu.org> References: <20190515173211.5b394c1c@HIDDEN> X-Gnu-PR-Message: ack 35751 X-Gnu-PR-Package: guix Reply-To: 35751 <at> debbugs.gnu.org Date: Wed, 15 May 2019 15:33:02 +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 35751 <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 35751: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35751 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#35751: "guix environment -s" doesn't set %current-system in gnu/packages 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: Sat, 18 May 2019 17:20:01 +0000 Resent-Message-ID: <handler.35751.B35751.155819999529590 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 35751 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Danny Milosavljevic <dannym@HIDDEN> Cc: 35751 <at> debbugs.gnu.org Received: via spool by 35751-submit <at> debbugs.gnu.org id=B35751.155819999529590 (code B ref 35751); Sat, 18 May 2019 17:20:01 +0000 Received: (at 35751) by debbugs.gnu.org; 18 May 2019 17:19:55 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN> 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-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.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.