From unknown Wed Jun 18 23:18:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65225 <65225@debbugs.gnu.org> To: bug#65225 <65225@debbugs.gnu.org> Subject: Status: =?UTF-8?Q?=E2=80=98guix?= shell =?UTF-8?Q?--system=3DALIEN=E2=80=99?= builds for both systems Reply-To: bug#65225 <65225@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:18:18 +0000 retitle 65225 =E2=80=98guix shell --system=3DALIEN=E2=80=99 builds for both= systems reassign 65225 guix submitter 65225 Tobias Geerinckx-Rice severity 65225 important thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 07:11:14 2023 Received: (at submit) by debbugs.gnu.org; 11 Aug 2023 11:11:14 +0000 Received: from localhost ([127.0.0.1]:45044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUQ2z-00013R-25 for submit@debbugs.gnu.org; Fri, 11 Aug 2023 07:11:14 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUQ2t-000137-CM for submit@debbugs.gnu.org; Fri, 11 Aug 2023 07:11:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUQ2n-0002Oj-P6 for bug-guix@gnu.org; Fri, 11 Aug 2023 07:11:01 -0400 Received: from tobias.gr ([80.241.217.52]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUQ2l-0008QM-8P for bug-guix@gnu.org; Fri, 11 Aug 2023 07:11:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=YEFbTfDSZYvCy 3vqCsZ3CXU6VoglYo1A8kbNtNKcMV0=; h=subject:to:from:date; d=tobias.gr; b=S46aXxn6r8LHZgKQzwkWMFpPXrDXIHye/ZZNrEkZohndDHEguqb9xi/ME7ZD7VrWAGXP /112KYOJlZOdbzt1LS3H0F6SeCpI+XWVClgxflU4/HQGyxnWU3wZR/IoegdeUzZSrnPIgT X8ISsiKFOt2omV/O83Fzax6PFpuQnvWAmOxGb2+HNblrTAVzONux1i5pD/ZIn97Ar8/W4o VfbPkNSHvrS7/IM3KuhDWEM4zWpIHb9ljmm3oCHYlHIx7L+zlakdfwhzPw8OuAaBpGqLyt I6ipgZiDkitYq95mE0HxxoBODHSxOqRmpc9iynAiQ424EGsBSE9x2DojvJy7jCRA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id fd4d4ae6 for ; Fri, 11 Aug 2023 11:10:51 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 11 Aug 2023 13:10:50 +0200 From: Tobias Geerinckx-Rice To: bug-guix@gnu.org Subject: =?UTF-8?Q?=E2=80=98guix_shell_--system=3DALIEN=E2=80=99_builds_f?= =?UTF-8?Q?or_both_systems?= Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=80.241.217.52; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) Hi, ekaitz noticed this when building a mes-derived package that fails on x86_64. Here's a reproducer that uses upstream Guix: $ guix shell --system=riscv64-linux drawterm --no-grafts --rebuild-cache --dry-run | grep drv$ /gnu/store/4c02fgswkbldys93w4vgj0gwax2ly4bh-profile.drv $ guix build --dry-run /gnu/store/4c02fgswkbldys93w4vgj0gwax2ly4bh-profile.drv | grep drawterm /gnu/store/mkxyhjq117wdalc0gbz4468blqxih1kn-drawterm-20210628-1.c97fe46 /gnu/store/h8dk35aw2n8rj1hki6dkdrknfly26vq8-drawterm-20210628-1.c97fe46 /gnu/store/fl4iimlcdnlkarjm8m6z3392wss6b8yr-drawterm-20210628-1.c97fe46.drv → /gnu/store/mkxyhjq117wdalc0gbz4468blqxih1kn-drawterm-20210628-1.c97fe46 is riscv64-linux. /gnu/store/9a1pji59hzacrmpb65nk3pp3m01niqf3-drawterm-20210628-1.c97fe46.drv → /gnu/store/h8dk35aw2n8rj1hki6dkdrknfly26vq8-drawterm-20210628-1.c97fe46 is x86_64-linux. Eventually the ‘correct’ riscv64 drawterm ends up in the shell, but Guix should never have built the x86_64 version. Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 07:43:13 2023 Received: (at 65225) by debbugs.gnu.org; 11 Aug 2023 11:43:13 +0000 Received: from localhost ([127.0.0.1]:45094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUQXw-0004TC-UG for submit@debbugs.gnu.org; Fri, 11 Aug 2023 07:43:13 -0400 Received: from tobias.gr ([80.241.217.52]:55686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUQXu-0004Sz-PH for 65225@debbugs.gnu.org; Fri, 11 Aug 2023 07:43:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=NdCgx7MTnQ0Ya 848hSkWj3PTAl2vRCRGEGtnoKPx1Ws=; h=subject:to:from:date; d=tobias.gr; b=MdlnUL/O4YrFTi+nbF26231vEUsnYIra2QTua0Whx/UASDPeocO5AFVkB36G3gw6hs67 e4LBmAC48bO72mlxZKafXffi5B071VxR8bXiFcuSnNItSYdJHkMRXNkzfGXPObN9HFdaD+ /HbBWvHhmOUBFc1gbsFkF83Zd/wtzBkH0awh0jFF7lZSPqK20qv7VtLaSryaz6Gsw8KMWr Ry3108KsUFMttO0Jd/vVJ6Uc1jziUkkVDrJjLMe1dis+mXIRCvcYlUHu+j2oVhLVNnU+3n QtkFQafTRVDi6O4v2uLPE52XHYAiveYTjR3Gl4qr3lpzYqfbJ34lPPRMTab99oRQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id 8971f91c for <65225@debbugs.gnu.org>; Fri, 11 Aug 2023 11:43:05 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 11 Aug 2023 13:43:05 +0200 From: Tobias Geerinckx-Rice To: 65225@debbugs.gnu.org Subject: =?UTF-8?Q?Re=3A_=E2=80=98guix_shell_--system=3DALIEN=E2=80=99_bu?= =?UTF-8?Q?ilds_for_both_systems?= Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65225 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Oh, OK. Parts of scripts/shell.scm (and perhaps environment.scm) assume that $ guix build --system={x86_64,riscv64}-linux foo is equivalent to $ guix build --system=riscv64-linux foo It's not. This includes and causes things like commit 9c513303156b418567b9d2cde9f8df66190051ac. There's a lot of fast & loose assoc-reffing going on here that makes me nervous. Anyway, I'll get me to a PC and then fix the code that's injecting a spurious extra ‘(system . (%current-system))’ that's causing these double builds. Simple™. Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 11:59:09 2023 Received: (at 65225) by debbugs.gnu.org; 11 Aug 2023 15:59:09 +0000 Received: from localhost ([127.0.0.1]:47826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUUXd-0003TL-Ds for submit@debbugs.gnu.org; Fri, 11 Aug 2023 11:59:09 -0400 Received: from tobias.gr ([80.241.217.52]:36746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUUXY-0003T8-A6 for 65225@debbugs.gnu.org; Fri, 11 Aug 2023 11:59:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=GgF5lZkmaBa/W vs6M/aLJAI2RV9aPDbv6XerqXP7ViE=; h=references:in-reply-to:subject:to: from:date; d=tobias.gr; b=PfUT3Cm//V8pyfc9CD35mQRAPKpQVqXHujWnOen5CCPK KymW8EHedjyAZW5hBpXkyg46fAbzfqtQrImUi2sBg6wNMpiP+4udTbvqHqOPPxZwZY5Y0+ LoVLEjHDOKsHCk2exUd1crTYbbOCHHdVB9b4zMC3b27sDjcoZdVqbXOxMG3qihMvQOWFt6 3ewKPbXenfwJs4Fh00eBKyIEHiunuiFJsxAqNM8uoskkHhCEDiE5tu5JZ1711wVpY8WBQW Dy/JmagQfOt0dYZpWLc/YV8stsZPmfaGjOFIZ0tkM/YzCtMKh68P00CkuF7O+TDnHnbWhW KVzpI2TVDrk0VDLYLg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id dfea6f19 for <65225@debbugs.gnu.org>; Fri, 11 Aug 2023 15:58:59 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 11 Aug 2023 17:58:59 +0200 From: Tobias Geerinckx-Rice To: 65225@debbugs.gnu.org Subject: =?UTF-8?Q?Re=3A_=E2=80=98guix_shell_--system=3DALIEN=E2=80=99_bu?= =?UTF-8?Q?ilds_for_both_systems?= In-Reply-To: References: Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65225 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Oh OK. > the code that's injecting a spurious extra ‘(system . > (%current-system))’ that's causing these double builds is not actually the problem. Instead, the profile hooks are unconditionally built for the host's (%current-system). Forcing them to match ‘--system=’ does the trick. Simple™! Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 11:59:53 2023 Received: (at 65225) by debbugs.gnu.org; 11 Aug 2023 15:59:53 +0000 Received: from localhost ([127.0.0.1]:47830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUUYK-0003UE-OV for submit@debbugs.gnu.org; Fri, 11 Aug 2023 11:59:53 -0400 Received: from tobias.gr ([80.241.217.52]:58146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUUYH-0003U5-W3 for 65225@debbugs.gnu.org; Fri, 11 Aug 2023 11:59:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=LtgLsmcA0WZRq VlmfDlFi/XeH9CM+rqs17E4oNaMonY=; h=date:subject:to:from; d=tobias.gr; b=Q9erJq3/QDIB2KzQOnkzF0KfJGc62Tn01p7lNhKI/CRvNtxzWYV0hVgLia4pdi3eWULT jDLe8tVfDPdXSNML0HqwaU7P/2MiPmgyPfAVy4H0MwpM/oab1gO27JbRUqHuVbxr4+7UAk jog0BbYQMo690hg4trr+IAlwd2unaJ6tr2JDzGC7oAEmuKfex3+q6psP6h9h7bfxw5PdY+ poLpqxvmQyt00WWjG7U+5a0W+v2MXIe0S6E+pXLQK4FpiSjztio+Q3NH3tHAkcIMOqzPG8 JkmFKQUyj4aCSR3H2S8vY3LJ2OBlCLQfcjZrINokQ3tGd3ZFCFqCY/nYX1Ji7Hyg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 39f89cb5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <65225@debbugs.gnu.org>; Fri, 11 Aug 2023 15:59:46 +0000 (UTC) From: Tobias Geerinckx-Rice To: 65225@debbugs.gnu.org Subject: [PATCH] environment: Build the profile for the requested system. Date: Sun, 6 Aug 2023 02:00:00 +0200 Message-ID: <2f29e4cbc33a82509a5980bc5ddd5f8ae53cf113.1691280000.git.me@tobias.gr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Christopher Baines , Josselin Poiret , Ludovic Courtès , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Content-Transfer-Encoding: 8bit X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Previously, ‘--system=’ did not affect profile hooks, meaning that all packages would be built for both the host and requested systems. * guix/scripts/environment.scm (guix-environment*): Parameterize %current-system to match the requested ‘--system=’. Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 65225 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Previously, ‘--system=’ did not affect profile hooks, meaning that all packages would be built for both the host and requested systems. * guix/scripts/environment.scm (guix-environment*): Parameterize %current-system to match the requested ‘--system=’. Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Previously, ‘--system=’ did not affect profile hooks, meaning that all packages would be built for both the host and requested systems. * guix/scripts/environment.scm (guix-environment*): Parameterize %current-system to match the requested ‘--system=’. Reported by ekaitz in #guix. --- guix/scripts/environment.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index 9712389842..27f7e53549 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -1146,7 +1146,8 @@ (define (guix-environment* opts) (warning (G_ "no packages specified; creating an empty environment~%"))) ;; Use the bootstrap Guile when requested. - (parameterize ((%graft? (assoc-ref opts 'graft?)) + (parameterize ((%current-system system) + (%graft? (assoc-ref opts 'graft?)) (%guile-for-build (and store-needed? (package-derivation base-commit: 9e71d4fd6b3893ae87cb079b57d7a8fe6e9e7914 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 06:33:54 2023 Received: (at 65225) by debbugs.gnu.org; 12 Aug 2023 10:33:54 +0000 Received: from localhost ([127.0.0.1]:48787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUlwP-000514-LP for submit@debbugs.gnu.org; Sat, 12 Aug 2023 06:33:54 -0400 Received: from jpoiret.xyz ([206.189.101.64]:43828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUlwN-00050u-9p for 65225@debbugs.gnu.org; Sat, 12 Aug 2023 06:33:52 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id E0CA6185313; Sat, 12 Aug 2023 10:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1691836428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NuR0WxxwZo01mV6bVgEQs5ITi7rEzNmSowaiasY6kgM=; b=sZH4CNxPbDgCTjB2yK4jI28TR9AxVINJd0Z5cJmpdXkaIHNzThWfc1VpU4hLAxnLY4hzyZ ArwpqHHf313VRm1tg6sQXvEmrRmwFp/zhLLLmJxsjnZ4NcIHCVRv/4AFaO3MoXAvpcojqP KX+drKdPIHJC6bO5Tu0a3fYVoyRrodi+NtDGOfOS8EJuTtyPV683f+97xdpz02xna2Te4b ihJZ0X+eBRFtQZb8X6BKxlNZWbTAIKzOsZ4S+63ic8SIuENlmv/nlIeQcqalJPlMNxyayT 8BuzZ+SGzfz4cYIodampC6Bd0c4UJvmiCEAq7Vo0DYPB3ER2GpSiAkJhodPgJA== From: Josselin Poiret To: Tobias Geerinckx-Rice , 65225@debbugs.gnu.org Subject: Re: bug#65225: [PATCH] environment: Build the profile for the requested system. In-Reply-To: <2f29e4cbc33a82509a5980bc5ddd5f8ae53cf113.1691280000.git.me@tobias.gr> References: <2f29e4cbc33a82509a5980bc5ddd5f8ae53cf113.1691280000.git.me@tobias.gr> Date: Sat, 12 Aug 2023 12:33:45 +0200 Message-ID: <871qg8o8hi.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spamd-Bar: / Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65225 Cc: Tobias Geerinckx-Rice , Simon Tournier , Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8s?= , Christopher Baines , Ricardo Wurmus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Tobias, Tobias Geerinckx-Rice writes: > Previously, =E2=80=98--system=3D=E2=80=99 did not affect profile hooks, m= eaning that all > packages would be built for both the host and requested systems. > > * guix/scripts/environment.scm (guix-environment*): Parameterize > %current-system to match the requested =E2=80=98--system=3D=E2=80=99. > > Reported by ekaitz in #guix. > --- > guix/scripts/environment.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm > index 9712389842..27f7e53549 100644 > --- a/guix/scripts/environment.scm > +++ b/guix/scripts/environment.scm > @@ -1146,7 +1146,8 @@ (define (guix-environment* opts) > (warning (G_ "no packages specified; creating an empty environ= ment~%"))) >=20=20 > ;; Use the bootstrap Guile when requested. > - (parameterize ((%graft? (assoc-ref opts 'graft?)) > + (parameterize ((%current-system system) > + (%graft? (assoc-ref opts 'graft?)) > (%guile-for-build > (and store-needed? > (package-derivation > > base-commit: 9e71d4fd6b3893ae87cb079b57d7a8fe6e9e7914 > --=20 > 2.41.0 So, I've looked into this deeper because this fix didn't seem satisfying to me: it suggests that the implementation of profile-derivation itself is wrong, and I wanted to fix it instead. Here's what I uncovered: %current-system (applies mutatis mutandis to %current-target-system) is a Guile parameter. That means that it is accessed through a function call, and its values really depends on where that function call occurs. Now, this interacts with the store monad in a cumbersome way: monadic values in this case are functions (lambda (store) ...) returning two values, the actual output and the store. These functions are run only at the run-with-store call. Now, there are two non-equivalent ways of getting the current system in a monadic context. You can either do (mlet ((system -> (%current-system)) ...) or (mlet ((system (current-system)) ...) The former directly evaluates (%current-system), while the latter only evaluates (%current-system) when the monadic value is run! What does this mean for our case here? Well, the problem lies with how the hooks are lowered: they use (gexp->derivation ...) without the optional #:system keyword. This looks up the current system at call time with the mlet -> construct, so everything should be okay, right? Well, the hooks are run through a mapm/accumulate-builds call, which puts everything in a monadic value, effectively delaying the look-up until monadic run time. =2D-8<---------------cut here---------------start------------->8--- (mlet* %store-monad (... (extras (if (null? (manifest-entries manifest)) (return '()) (mapm/accumulate-builds (lambda (hook) (hook manifest)) hooks)))) ...) =2D-8<---------------cut here---------------end--------------->8--- At this point, I thought: =E2=80=9CWell, I could just parameterize %current-system inside the (lambda (hook) ...), and all would be well, right? Well, it didn't seem to work and I was pretty confused by it. I tested a bit and noticed that actually, contrary to what was intended (there even is a comment in gexp-derivation about it), gexp-derivation looks up the system at monadic run time! It looks like this: =2D-8<---------------cut here---------------start------------->8--- (mlet* %store-monad ( ;; The following binding forces '%current-system' and ;; '%current-target-system' to be looked up at >>=3D ;; time. (graft? (set-grafting graft?)) (system -> (or system (%current-system))) (target -> (if (eq? target 'current) (%current-target-system) target)) ...) ...) =2D-8<---------------cut here---------------end--------------->8--- Well, the issue here is that such an mlet starts by translating the graft? binding into a >>=3D call, which ends up putting the rest of the translation into a function call that will *not* be called until the monadic value is run. That means that the system and target bindings afterwards are *not* looked up at call time but at monadic run time! And sure enough, moving the (graft? ...) binding after the (target -> ...) one does solve this! IMO, this is way too complicated to keep in mind at all times, and there are bugs lurking under the surface absolutely everywhere, waiting for a corner case to be uncovered. I'll send a new patch once I've fixed and tested this further. Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmTXYAkQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5Fhcaiq8hC/4iwT9zjVCkDNJDNsquu50m9LI5fg4myT6y ZI+1qCQp+a7Is1YEO2GlnqldFFu+jVQVUVUXGXnrK4T/IAzlKXd7yAnrthVTXd9G 8IuYJSYOchB5fOLSsa8QDkngRF7dUKk5sXOUPvsl8ZUklyBthANBxEKAUe0Qyma6 ldk1C81Ql9sUu4vyiqw0AaulHxxFJ2yJJMk3FR4qRXzFWOYhz0/a81/fO/6rtfBX +/bfr+E/j7iLjpQydTaLLzSpbNgEm5TAa6BQDm8oAbBoAN/FuC0KW3kQEQeUzrGK kONT135zQUeWzLXOoojaOxDMWgqmq+7YXg7Y8wk950ngC2//ykSU2MByLJo1em1Q prRAcHI/ITKSVDqDmfHL4HE1JkZDWTXRjx5/9CTNdMsLvopi0ng+icXqbLRx55SJ y3tgZajzhdPNURMVG4YGUslFkEYSWZv9E0VKFuJjfhEGluPPrCzpki/Xt5Y9XthC hvZQ9ZlEcGdeNTr2NI24U0x/zImDO+Q= =Za4s -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 06:43:06 2023 Received: (at 65225) by debbugs.gnu.org; 12 Aug 2023 10:43:06 +0000 Received: from localhost ([127.0.0.1]:48800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUm5J-0005S3-Jo for submit@debbugs.gnu.org; Sat, 12 Aug 2023 06:43:05 -0400 Received: from jpoiret.xyz ([206.189.101.64]:44662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUm5H-0005Rp-NP for 65225@debbugs.gnu.org; Sat, 12 Aug 2023 06:43:04 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 537FF18540D; Sat, 12 Aug 2023 10:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1691836982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ho/r12nq9ncuod0bx1snWlWTLrdH2xWdAuouuSfixzc=; b=PWnv0rFuq6A+zIegCJgt7eVJM0ld4KG7DPNCeu28xgivG8hgZnpNIXmxfFHazL88H/VoGt C1NXq2diCYLQyyv5OyOmlr5Ns+vXtc/uIwTF6a5NempO6hxWzypTEmMZ4jZ4j3/D7bBrZp F7Kwae3JR1c6ER/eV3617Sz0TF+eJ/hfRuwJxoAngAC5h+Ej8j7nsQa/wQAX5Pa98d78KL ZfUZ9ubIEpJ7huPF3F86+MCFW0medsPQIUrOiomIY7k61zoRXLbvhbDF9VXJtUFBpm6R5F Eag1eAyuZ5w3RDOedUqXlTkJ1u+x50rsbMLVks04TykBZVoKR+ByoaAD1PPMgw== From: Josselin Poiret To: Tobias Geerinckx-Rice , 65225@debbugs.gnu.org Subject: Re: bug#65225: [PATCH] environment: Build the profile for the requested system. In-Reply-To: <871qg8o8hi.fsf@jpoiret.xyz> References: <2f29e4cbc33a82509a5980bc5ddd5f8ae53cf113.1691280000.git.me@tobias.gr> <871qg8o8hi.fsf@jpoiret.xyz> Date: Sat, 12 Aug 2023 12:42:59 +0200 Message-ID: <87wmy0mtho.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spamd-Bar: / Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65225 Cc: Tobias Geerinckx-Rice , Simon Tournier , Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8s?= , Christopher Baines , Ricardo Wurmus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi everyone, Actually, let me add a big erratum, since it appears I misread the intention of gexp->derivation (and realized 2 minutes after writing the previous email). Josselin Poiret writes: > --8<---------------cut here---------------start------------->8--- > (mlet* %store-monad ( ;; The following binding forces '%current-system' a= nd > ;; '%current-target-system' to be looked up at >>=3D > ;; time. > (graft? (set-grafting graft?)) > > (system -> (or system (%current-system))) > (target -> (if (eq? target 'current) > (%current-target-system) > target)) > ...) > ...) > --8<---------------cut here---------------end--------------->8--- > > Well, the issue here is that such an mlet starts by translating the > graft? binding into a >>=3D call, which ends up putting the rest of the > translation into a function call that will *not* be called until the > monadic value is run. That means that the system and target bindings > afterwards are *not* looked up at call time but at monadic run time! This is actually what the comment above hints at, I misunderstood its meaning. It seems that this piece of code used to be (before 2015) =2D-8<---------------cut here---------------start------------->8--- (mlet* %store-monad ( ;; The following binding forces '%current-system' and ;; '%current-target-system' to be looked up at >>=3D ;; time. (unused (return #f) (system -> (or system (%current-system))) (target -> (if (eq? target 'current) (%current-target-system) target)) ...) ...) =2D-8<---------------cut here---------------end--------------->8--- probably at a time when (current-system) didn't exist. In turn, this means that gexp->derivation intentionally delays getting the current system to monadic run time. Thus, we probably need to pass an optional #:system argument to the hooks that they can forward to gexp->derivation to fix this =E2=80=9Cproperly=E2=80=9D > IMO, this is way too complicated to keep in mind at all times, and there > are bugs lurking under the surface absolutely everywhere, waiting for a > corner case to be uncovered. My comment still stands. Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmTXYjMQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5Fhcaiuz8C/9iCU982dfYRv5YczivMoXAQDttDJBvja2G 2zK1+wJbRHGcLfwQhPvFuhiIQTIrjkTqzNcOVY6R5E7ik3FDzQgrs+ZwHIKaYLGk O24VFGJ+Il8ctLDERYOuOzbBTn0tp5VuH3N8XwXU8rbS5Vdq8wZRXCtQD4AAzQaK 7YaeLq8yDNxHUyzO4I23eEWE6w/2Z5Cj1Nz7vxzw9RmFsyB8y+b1vdKgBGoVAugc eu4PypbkFZMXXWoFYQYCzN9amC1xIitsfY0r7Ps18U36NOxqvQyp4ukTOxOxR6UY Zfmz7j29ikrUvxQmqVC415+iZUjXI6yr8vDTG8SioMiV15ZaLOQZpMsqWJGyvOgH BEGS0LdNaoVOJPp9IKYg+0zCultKHkaHM4ET5b5DYOdwEtJw9sAbDSTyINxNMr1U xjIcv9R778554Cc543jgzMj29V6MjPakwdgOr7V3H6xPmsKt5OgOWjUcSRjyw2tI pAtvMNC7WZb2pu1hg2TrNuceYQKpNd4= =s75T -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 16:51:53 2023 Received: (at 65225) by debbugs.gnu.org; 12 Aug 2023 20:51:53 +0000 Received: from localhost ([127.0.0.1]:57564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUvaT-0002z2-1l for submit@debbugs.gnu.org; Sat, 12 Aug 2023 16:51:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUvaQ-0002yp-8E for 65225@debbugs.gnu.org; Sat, 12 Aug 2023 16:51:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUvaK-0003IW-AT; Sat, 12 Aug 2023 16:51:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=kYzncdNjWKwjXAFxKqkQ62qmJPQj78ZKpvTx8vR2WHY=; b=mlKu+4CqwWUw98JFonSW wbSF3XigIPiRGzI3OQ1iJsvI34QQof0g232zJhIcDDOoq/ktAbInQvIeG82ys9ALh9IHf7c6TD3gp wbT+wZEv4DCAMBbc/5vUmtaUAkcRqELwCnUjUq2XhS1i1wGiODM7y5vWL/YbrLWjN5tvMd0S7VSMy jq52FgEYB199zAKLiAaEaVNEvNvo7HJyXoZ1k0FIrnb/jgYgiBgHqjDjW9MGtKaXZVC86DqpWHUyv pXq3x9dL918yTGetEUkhiSBHS8ce1K0js+wwwlzrwv8TCbBsQ01gkVLv7bE2Z0n/Ta6iLDiUWWFS4 We8td7gNoxAL0Q==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Josselin Poiret Subject: Re: bug#65225: [PATCH] environment: Build the profile for the requested system. References: <2f29e4cbc33a82509a5980bc5ddd5f8ae53cf113.1691280000.git.me@tobias.gr> <871qg8o8hi.fsf@jpoiret.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 25 Thermidor an 231 de la =?utf-8?Q?R=C3=A9?= =?utf-8?Q?volution=2C?= jour de la Loutre X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 12 Aug 2023 22:51:41 +0200 In-Reply-To: <871qg8o8hi.fsf@jpoiret.xyz> (Josselin Poiret's message of "Sat, 12 Aug 2023 12:33:45 +0200") Message-ID: <87bkfcdlwi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65225 Cc: Christopher Baines , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , 65225@debbugs.gnu.org, Ricardo Wurmus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Josselin Poiret skribis: > IMO, this is way too complicated to keep in mind at all times, and there > are bugs lurking under the surface absolutely everywhere, waiting for a > corner case to be uncovered. Great writeup! Yeah, that=E2=80=99s the sad situation of mixing parameters= and monads; it=E2=80=99s a longstanding issue and as you write, there have been bugs. The solution to these has been primarily to avoid relying on default values and pass explicit values. The other trick is what =E2=80=98lower-gexp=E2=80=99 does, with the comment you quoted, or what =E2=80=98gexp->derivation=E2=80=99 does. The good news is that the monadic interface is kept internal and not really exposed to users, who should stick to file-like objects as much as possible. Back to profile hooks: it seems that passing #:system #f to =E2=80=98gexp->derivation=E2=80=99 in each of these hooks would solve the p= roblem, no? Alternatively, each hook could take =E2=80=98system=E2=80=99 as a second ar= gument. Willing to give it a shot? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 10:38:28 2023 Received: (at control) by debbugs.gnu.org; 19 Oct 2023 14:38:29 +0000 Received: from localhost ([127.0.0.1]:37399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtUAO-00012T-NW for submit@debbugs.gnu.org; Thu, 19 Oct 2023 10:38:28 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:55631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtUAJ-000127-GM for control@debbugs.gnu.org; Thu, 19 Oct 2023 10:38:27 -0400 Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludo@gnu.org; dmarc=fail (p=none dis=none) d=gnu.org X-IronPort-AV: E=Sophos;i="6.03,237,1694728800"; d="scan'208";a="132154429" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2023 16:37:50 +0200 Date: Thu, 19 Oct 2023 16:37:50 +0200 Message-Id: <87pm1a3cg1.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #65225 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) severity 65225 important quit From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 10:49:37 2023 Received: (at 65225) by debbugs.gnu.org; 19 Oct 2023 14:49:37 +0000 Received: from localhost ([127.0.0.1]:37423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtULA-00043R-WB for submit@debbugs.gnu.org; Thu, 19 Oct 2023 10:49:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtUL8-000437-EI for 65225@debbugs.gnu.org; Thu, 19 Oct 2023 10:49:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtUKc-0004nh-C2; Thu, 19 Oct 2023 10:49:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=d6ArsICc3rbfBRvQyKQVXaQwtdD6+ARLmmMN2pOZQHg=; b=YoeSUi2eifXM0HprQG1x YBuRyb7kq7Ws7V54OAfSkMriNEb9FFBIgkx+UzGgZP+dT1BbZyqf8qBSAwwdBR/QLpwap9i7rBzkL meI3iifdnFAQzjI0ZEMGtrgXKXBExOg9t+cr8QFR87evd75iYaUGmobMflTYcQpfaDbF36uFjqjDl FTsf+7HncASm2BxY9bIztmbuaYpF14472Y/edXXtWsqj2S+Kq52LxjEcOEEOS8Z6tAD7CnlkgChoT /jJem48aOkKZBuiI8lmFOvEPeu6L5qaZjYcg5f5v1Yg+yRcOH9xGY8Srv5ysslDuNzNX8zQMDWm6m 5j/qLfftRaKrvA==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/2] Build profile hooks for the right system Date: Thu, 19 Oct 2023 16:48:46 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <87bkfcdlwi.fsf@gnu.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Christopher Baines , Josselin Poiret , Ludovic Courtès , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65225 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Tobias Geerinckx-Rice , Josselin Poiret , 65225@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Guix, This fixes , ensuring that profile hooks are built for the right system. It does so by passing each profile hook the targeted system. Thoughts? Thanks, Ludo'. Ludovic Courtès (2): packages: Add ‘system’ parameter for ‘set-guile-for-build’. profiles: Hooks honor the #:system parameter of ‘profile-derivation’. gnu/bootloader.scm | 5 +++-- guix/channels.scm | 3 ++- guix/packages.scm | 7 ++++--- guix/profiles.scm | 49 ++++++++++++++++++++++++++++++---------------- tests/profiles.scm | 24 ++++++++++++++++++++++- 5 files changed, 64 insertions(+), 24 deletions(-) base-commit: 8d6b3dd0b863ccada887da8cd347727dd04cb456 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 18:46:57 2023 Received: (at submit) by debbugs.gnu.org; 20 Oct 2023 22:46:57 +0000 Received: from localhost ([127.0.0.1]:41843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtyGb-0003Rj-R2 for submit@debbugs.gnu.org; Fri, 20 Oct 2023 18:46:57 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtyGX-0003RF-3u for submit@debbugs.gnu.org; Fri, 20 Oct 2023 18:46:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtyFy-0001Ua-5A for guix-patches@gnu.org; Fri, 20 Oct 2023 18:46:15 -0400 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtyFw-0002Py-GQ; Fri, 20 Oct 2023 18:46:13 -0400 Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-66d0252578aso7436406d6.0; Fri, 20 Oct 2023 15:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697841970; x=1698446770; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hcxdtpo1hA4kDh0FYSiJU5OxaHHBJxQ/CGgtEEUFI7A=; b=PBz7pfp2zNNQ0dqZCDe5ipkSLrcoz3Db6qbnoFoNnKDMRmzGEtkeIsWdy2tOAh2UQn xtDyUikcSo20PlilxamfVSGXNW9eMkBJwm0h5cgq9nWRnsR8ywAX76dVx5MEAvDwrgmk u0WyjUodyygN8O4LHRrelkUrpKNf/N5wH8FXQI5aW/CEa8XN9ZBBo//4wy/alNhlZBP0 Me4Rlm9jHQFTvmpIRPZDBofrjckNw4vk/uFLLk74/LTATauDsFp7fHWSci5XL+IsGnQ+ X6xPtlPoI9RGx79iopcaM0vDRp31EGPNFOJDiv++bAjbunnZsr126W7QfUNMQd5OTzSA XXcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697841970; x=1698446770; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hcxdtpo1hA4kDh0FYSiJU5OxaHHBJxQ/CGgtEEUFI7A=; b=XZW6nQ+D6Jcdcnq1/BkalmfDPAGbsXf2+Y4z0oElBAzVUgu/CIzo7x2F6tX/nXmUC3 nJ3jF3ypx/6VjQ02DsHpQpvNPMEMGBWx8oph7DC+KWQijf6U8s6wYzsPdS+1vHc7kVpX 78uQxZEH9oTcGR8OlMLezvgnAVY5eyKHIXgE8jSaQqt8W4gQn1z2j1tTvLIpeZouIBHi pMr9dvffXN1SVLEfJfWwFszdyKDvhoG3njagQtulaO9tmZYPNdPiW1CGoxkwJWAooSNI 78OwRyCqw767xlbDwPEcJGs38+cSBgXIupbbXLHNmds0Gfj+RL4nZptlcCD0TfdobFkM EubA== X-Gm-Message-State: AOJu0Yw4O2YN539vZixrqkXrXYzZlR+zZFKlsVcKyQ9b6ZeRFkacQIEz kSI8y+bkuZLNTFVZXB/8XrU= X-Google-Smtp-Source: AGHT+IEfANQaz5zFTQfgGWtpJC/mrQBIVyJTu7lenhuIWySnpFGAadt8AGfDHzJDRHrtaPZhDy8drQ== X-Received: by 2002:a05:6214:2129:b0:66d:6705:5c50 with SMTP id r9-20020a056214212900b0066d67055c50mr3721680qvc.44.1697841969759; Fri, 20 Oct 2023 15:46:09 -0700 (PDT) Received: from hurd (dsl-156-111.b2b2c.ca. [66.158.156.111]) by smtp.gmail.com with ESMTPSA id t16-20020a0cef10000000b0065afbb39b2dsm1029530qvr.47.2023.10.20.15.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 15:46:09 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#65225: =?utf-8?Q?=E2=80=98guix?= shell =?utf-8?Q?--system?= =?utf-8?Q?=3DALIEN=E2=80=99?= builds for both systems In-Reply-To: ("Ludovic =?utf-8?Q?Court?= =?utf-8?Q?=C3=A8s=22's?= message of "Thu, 19 Oct 2023 16:48:46 +0200") References: Date: Fri, 20 Oct 2023 18:46:07 -0400 Message-ID: <87v8b0gbf4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Josselin Poiret , 65225@debbugs.gnu.org, Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines , Simon Tournier , guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi, Ludovic Court=C3=A8s writes: > Hello Guix, > > This fixes , ensuring that profile > hooks are built for the right system. It does so by passing each > profile hook the targeted system. > > Thoughts? > > Thanks, > Ludo'. > > Ludovic Court=C3=A8s (2): > packages: Add =E2=80=98system=E2=80=99 parameter for =E2=80=98set-guile= -for-build=E2=80=99. > profiles: Hooks honor the #:system parameter of =E2=80=98profile-deriva= tion=E2=80=99. > > gnu/bootloader.scm | 5 +++-- > guix/channels.scm | 3 ++- > guix/packages.scm | 7 ++++--- > guix/profiles.scm | 49 ++++++++++++++++++++++++++++++---------------- > tests/profiles.scm | 24 ++++++++++++++++++++++- > 5 files changed, 64 insertions(+), 24 deletions(-) I see the cover letter, but not the patches :-). Where did they go? --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 08:18:22 2023 Received: (at submit) by debbugs.gnu.org; 23 Oct 2023 12:18:22 +0000 Received: from localhost ([127.0.0.1]:49290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qutsz-0006n3-Uo for submit@debbugs.gnu.org; Mon, 23 Oct 2023 08:18:22 -0400 Received: from lists.gnu.org ([2001:470:142::17]:39520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qutsv-0006lO-Ut for submit@debbugs.gnu.org; Mon, 23 Oct 2023 08:18:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qutsN-0001rL-Bk for guix-patches@gnu.org; Mon, 23 Oct 2023 08:17:43 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qutsL-0005KP-Fo; Mon, 23 Oct 2023 08:17:43 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-3175e1bb38cso781704f8f.1; Mon, 23 Oct 2023 05:17:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698063459; x=1698668259; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=OgBERSajoF7fZviG1kwuyZ+Sfs+afEYSvoXbVICOTQU=; b=hHqK7LU2sxGKbJxENkRc01EultFX8sDGY0ooXXy0q7XvpwMuOhy5xhD07NzJ6V37ae GLfUDpzPATSPF7VRXbbcH8tDkVeFAcSrnSpeZqbFfYCU7vLaELXjFn+JR3PbF2glhdQG sb7buEueJ7o6qAI5Fa49HPQVF3eJP/UtJ/+J6mC2ylJwVgP2pGemIS1AdK07q9ajC1if DjqtGXbr2aDdXr/qRGBVhYH+QVWD+J7Nl4zJuqKOBcZGRzAoMzn3eOBtX4jlkinWLglW QPLHE3tLk/CeTrDjCYXvmAhelr7xuyoVCfnSpnyzWPhzWekJ51sv7MUP72qWZS2mE2Bb 6Z9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698063459; x=1698668259; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OgBERSajoF7fZviG1kwuyZ+Sfs+afEYSvoXbVICOTQU=; b=qqBpTIp5EpGUJfg1dWyhlAs17ovmulI88g1H1TrzuLv/YK4EBUmnHKekjvzzoggYUN LtORgBJNWwazs/NFcaaR5P1WSe7KO682iYwieglPM2Z0z4cgZVNVp+t0TTLU/wWsn2Mt TDS90L1mUzFHJy5avTsbBmxhCcOKUOWV2nvZSPJ9j8OsIC2TQHwD2w7ZpBNre2qeYvsB 7AkeFW91ds1b0JffVTuH/ZPmwC0/cpRHzQ3hf/8AKEvPFffKM+M44hizOyc7gUrPMjDm KyPk30H+BE5LoTcAWal5SDDk/Rh2z+1YDXZ2gvpeRNwjTni45UC/M8yHZUqHQ0AwPrEb GOOA== X-Gm-Message-State: AOJu0YztznpaHWEHr0cMJs0mGYG4dWXHeBM/U7XiZMrpXiN1ydX1pmvV dYRRHsuKLQRJNrsp5+/TIiz0GYGUW8I= X-Google-Smtp-Source: AGHT+IH1REJdnWMWStP0JyWLZu4AnjEF+lY3SXhdFSnfWufJo81eMtPXVNzfltXKW+XTeH1QY85z9A== X-Received: by 2002:adf:f509:0:b0:32d:e6f5:2fcc with SMTP id q9-20020adff509000000b0032de6f52fccmr6758234wro.6.1698063459233; Mon, 23 Oct 2023 05:17:39 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id f4-20020a5d50c4000000b0032da319a27asm7748991wrt.9.2023.10.23.05.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:17:38 -0700 (PDT) From: Simon Tournier To: Maxim Cournoyer , Ludovic =?utf-8?Q?Court?= =?utf-8?Q?=C3=A8s?= Subject: Re: bug#65225: =?utf-8?Q?=E2=80=98guix?= shell =?utf-8?Q?--system?= =?utf-8?Q?=3DALIEN=E2=80=99?= builds for both systems In-Reply-To: <87v8b0gbf4.fsf@gmail.com> References: <87v8b0gbf4.fsf@gmail.com> Date: Mon, 23 Oct 2023 12:16:48 +0200 Message-ID: <87edhllk33.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Josselin Poiret , 65225@debbugs.gnu.org, Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines , guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Maxim, On Fri, 20 Oct 2023 at 18:46, Maxim Cournoyer wrote: > I see the cover letter, but not the patches :-). Where did they go? They are in #66640 [1]. The cover letter had been CC: 65225@debbugs.gnu.org, I guess. 1: https://issues.guix.gnu.org/issue/66640 Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 08:18:20 2023 Received: (at 65225) by debbugs.gnu.org; 23 Oct 2023 12:18:21 +0000 Received: from localhost ([127.0.0.1]:49282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qutsy-0006ma-Ed for submit@debbugs.gnu.org; Mon, 23 Oct 2023 08:18:20 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:39990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qutss-0006lA-U8; Mon, 23 Oct 2023 08:18:15 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-408434ce195so8709995e9.0; Mon, 23 Oct 2023 05:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698063460; x=1698668260; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=vZ5wWIwt+8DNQIKWomqdDMg43E8JnrDuQQ5Ed5fG8r0=; b=nKfruaE0nUI84mxK/wuRQ+bPl/fKkNA7txlI5WAQz0+U7thYvkq6MQFWpU31EeJQtW prt5Qh5t18zfsa9+3lW5APsw+A7ZZ4VC2A+rEbvAwJ3uJPfsM4bqewHGyTQV2fngO65s ntYOwD5L2WgOXxG8PQUIk78w/GAMmmCufM9eb1U/y2BA3zx/d/YG0+fJYQ2yfNtiujTh RORtjMdVxSWQ7NM5cp5gWZaBxK1sL8HbUFEsv2Wd+cWzXQgiB+pmn6vHhOz+QQJgBpy7 P3efNRmvyvElWZ/q3PiWYnZJnX2Mos3Dqt6LRp6bIqigabL/Af/QjSpO7NaSULwTGH4S LEPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698063460; x=1698668260; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vZ5wWIwt+8DNQIKWomqdDMg43E8JnrDuQQ5Ed5fG8r0=; b=oLfFmknH4HHZNzOx5nQkoQpttj++H+PC11KE+Kr5YMn9Ml9qv+70U81CrCW6dDu5Uk DLFT74Of53HwoUc2xk9ITylUkp5s1InV3zxfBDvJbY5ijCVbRoe3DLnh3FdICMaGsVXG 6/dWnVCRLgJD+dHUJAGdkINT2o+vfpJ91tMCkpv52G4IZu4rGlEW4FiZ7/kbZHtuVIkt 3DbmIpOVNfsb+RKVF+cZcpiv58WlRRH8R/HtkEsxlv/pjIYC6TAkTeRo5tkvZ9RmqP4W n9U/1Fi2ZZfQQXS7E4Hi++yfI9fdpRYK1jU87+f4jzbT2pLDcBL65p9kTdFCkueSMRlI oBqg== X-Gm-Message-State: AOJu0YywLPKiCBGnPPRQPQT/jOioxvk3g7oE513o4z6fKrO+0MOXHi5O zMya1YhBJtH1NMMU9xe2alA= X-Google-Smtp-Source: AGHT+IEzIy3tK0d52s4ykcJbyIfZr3403YU5kF7+O+Dx/r1TNzP6x8Q7XVQiBRIexjJ7XeKQa7nX5A== X-Received: by 2002:a05:600c:1c22:b0:408:3836:525f with SMTP id j34-20020a05600c1c2200b004083836525fmr6872932wms.1.1698063460128; Mon, 23 Oct 2023 05:17:40 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id bh9-20020a05600c3d0900b003feae747ff2sm14245748wmb.35.2023.10.23.05.17.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:17:39 -0700 (PDT) From: Simon Tournier To: Ludovic =?utf-8?Q?Court=C3=A8s?= , 66640@debbugs.gnu.org Subject: Re: [bug#66640] [PATCH 0/2] Build profile hooks for the right system In-Reply-To: References: Date: Mon, 23 Oct 2023 12:36:48 +0200 Message-ID: <875y2xlj5r.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Ludo, A naive question about the default value. On Thu, 19 Oct 2023 at 16:48, Ludovic Courtès wrote: Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.0 MANY_TO_CC Sent to 10+ recipients 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zimon.toutoune[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:32b listed in] [list.dnswl.org] X-Debbugs-Envelope-To: 65225 Cc: Josselin Poiret , 65225@debbugs.gnu.org, Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, A naive question about the default value. On Thu, 19 Oct 2023 at 16:48, Ludovic Court=C3=A8s wrote: > packages: Add =E2=80=98system=E2=80=99 parameter for =E2=80=98set-guile= -for-build=E2=80=99. The change reads, --8<---------------cut here---------------start------------->8--- +(define* (set-guile-for-build guile #:optional system) [...] + (let ((guile (package-derivation store guile + (or system (%current-system))))) --8<---------------cut here---------------end--------------->8--- > profiles: Hooks honor the #:system parameter of =E2=80=98profile-deriva= tion=E2=80=99. The change reads for all hooks, --8<---------------cut here---------------start------------->8--- + (define* (efi-bootloader-profile-hook manifest #:optional system) [...] (gexp->derivation "efi-bootloader-profile" build + #:system system --8<---------------cut here---------------end--------------->8--- Do I understand correctly when I consider that =E2=80=99(efi-bootloader-profile-hook manifest)=E2=80=99 pass #false as =E2= =80=99system=E2=80=99 and then it is =E2=80=99set-guile-for-build=E2=80=99 that sets =E2=80=99(%curre= nt-system)=E2=80=99? Somehow, my question is about the readability of default values. Why not, #:system (or system (%current-system)) for all the hooks? Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 10:30:29 2023 Received: (at submit) by debbugs.gnu.org; 23 Oct 2023 14:30:29 +0000 Received: from localhost ([127.0.0.1]:51287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quvwq-0002yF-V1 for submit@debbugs.gnu.org; Mon, 23 Oct 2023 10:30:29 -0400 Received: from lists.gnu.org ([2001:470:142::17]:39880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quvwo-0002xo-Te for submit@debbugs.gnu.org; Mon, 23 Oct 2023 10:30:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quvwG-0006EJ-75 for guix-patches@gnu.org; Mon, 23 Oct 2023 10:29:52 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quvwE-00038M-9x; Mon, 23 Oct 2023 10:29:51 -0400 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-41b7fd8f458so21595121cf.0; Mon, 23 Oct 2023 07:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698071387; x=1698676187; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=MvaxIln5PDvVEurjw5zdwSUf9nQU0zaJX9kyyidkLyc=; b=YnSTxO5i3UkwkT41KhKtM3G36BIgyTm5M7P5M43bKetBwlyVzkCdGURIXgCT76LkkL NDjCeGHWG3jYyaIODbqrvccr7fu8cQRn1ppVoISpWRXvwu3koHI7DUbjGj5e9BvxixSr NzPghAgUqCOodGt17d/BkOtfsEOGMJ4gWO0FNdVwI0sQTM64zH+LXbeDmLNJitWiTv5l X/t0punlh+ZmAEiX8Dqu0eU9BQDBirCOvkJkDw4yALdAllRSDIZk0sinrYfXol9RkG2A kbyKoSZp+Va8H6Q9s/jizvk/KBhKAkOIryvak5FzyO9vJuMSZKiw39+4eevvTyrC3zia aWyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698071387; x=1698676187; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MvaxIln5PDvVEurjw5zdwSUf9nQU0zaJX9kyyidkLyc=; b=dvI6kx4mjGBcyPdPoDkmmKDnvGinxO0qN6GCMIqMxcvNAZ5ZV/T5cj8QIuEgr/MxEu Om8grHfSs++i/VNPV1hGxCw5T432MrCa2pGE8zSxNH4RG28rNSJhcf9tGdwtey3YtfNW xbwV2RBJZEKIal4/XA4Ye0KMqDcdqkjwBWBFWPA/uQPznGBAgwdrKxJx/gCFKlq68CCq ujkwmRg3YmNtpDtksaOG8Ay267SnPr+y9c6vYeufBum00wSvu+9ekU7eOBij5AJsWqox boFPmMWlJaB98VfEd/CURLFnpcdzAb2DghFkVHkLno7Rf4uxJT8V0lZOVR1z088q5dkX 4AfA== X-Gm-Message-State: AOJu0YwtfcrTUIox6Tcl2ujrRHC+nEU8gUkbJ8s7J+sM68ILcfbgBXaI TL5yasrRFYeeFE0f7u0W+MdOoeAWkGwHbA== X-Google-Smtp-Source: AGHT+IEi+PYaWQYX/Bn/BuBfPDnOX+uvx3VoIEd1JvB3RVgCxo3NZzlvihihzB2M6kk85Vc452U1PQ== X-Received: by 2002:ac8:5843:0:b0:41b:7738:a8cf with SMTP id h3-20020ac85843000000b0041b7738a8cfmr14118783qth.17.1698071387472; Mon, 23 Oct 2023 07:29:47 -0700 (PDT) Received: from hurd (dsl-10-148-194.b2b2c.ca. [72.10.148.194]) by smtp.gmail.com with ESMTPSA id x9-20020ac85f09000000b004181a8a3e2dsm2772267qta.41.2023.10.23.07.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:29:47 -0700 (PDT) From: Maxim Cournoyer To: Simon Tournier Subject: Re: bug#65225: =?utf-8?Q?=E2=80=98guix?= shell =?utf-8?Q?--system?= =?utf-8?Q?=3DALIEN=E2=80=99?= builds for both systems In-Reply-To: <87edhllk33.fsf@gmail.com> (Simon Tournier's message of "Mon, 23 Oct 2023 12:16:48 +0200") References: <87v8b0gbf4.fsf@gmail.com> <87edhllk33.fsf@gmail.com> Date: Mon, 23 Oct 2023 10:29:45 -0400 Message-ID: <87a5s98l9i.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x831.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Josselin Poiret , 65225@debbugs.gnu.org, Mathieu Othacehe , Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines , guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Simon, Simon Tournier writes: > Hi Maxim, > > On Fri, 20 Oct 2023 at 18:46, Maxim Cournoyer wrote: > >> I see the cover letter, but not the patches :-). Where did they go? > > They are in #66640 [1]. The cover letter had been CC: > 65225@debbugs.gnu.org, I guess. Thanks! -- Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 23 15:54:07 2023 Received: (at 65225) by debbugs.gnu.org; 23 Oct 2023 19:54:07 +0000 Received: from localhost ([127.0.0.1]:51831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv103-0002lP-DB for submit@debbugs.gnu.org; Mon, 23 Oct 2023 15:54:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv100-0002kZ-JJ; Mon, 23 Oct 2023 15:54:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qv0zQ-0002Pi-QV; Mon, 23 Oct 2023 15:53:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=6fcbtsRFPisuObgbgvgb9Jqtk4FKufBKbfsZY4E/rQI=; b=LA1NndqM6rbsA8FsC9K4 neF9+3CFJX/3yQqDnNF6G59uv4ipe3PrD2MEnDBUm6uzDzcUJ+crJz0Zau4es2u9DOZk+EUczd/mY 2X6Vm0cXlhot6FOTPvff+NFWo7DcLCzxmmP0+vbpdhs+g/EEvtOHZsAHpwTuTpmChc2z24MIHSjEB Nct9Gzd9wAXEka3Ho5cPS6tO8mezulmbRUoEd11kBuF7cx1batxj4ByN+Jd1IC4a0bqKIANVtNNaS x2HghKx5+z4e+TJwWRmlqLok9RAzQcnIQO6LNqtSxgOHDkZry/WQPMfdtpszR1MKlEK2UhG6qfYmO qsuO9RRJD7I5HA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Subject: Re: [bug#66640] [PATCH 0/2] Build profile hooks for the right system In-Reply-To: <875y2xlj5r.fsf@gmail.com> (Simon Tournier's message of "Mon, 23 Oct 2023 12:36:48 +0200") References: <875y2xlj5r.fsf@gmail.com> Date: Mon, 23 Oct 2023 21:53:06 +0200 Message-ID: <87bkcpf74t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65225 Cc: Josselin Poiret , 65225@debbugs.gnu.org, Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , 66640@debbugs.gnu.org, Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Simon Tournier skribis: > Do I understand correctly when I consider that > =E2=80=99(efi-bootloader-profile-hook manifest)=E2=80=99 pass #false as = =E2=80=99system=E2=80=99 and > then it is =E2=80=99set-guile-for-build=E2=80=99 that sets =E2=80=99(%cur= rent-system)=E2=80=99? Yes. > Somehow, my question is about the readability of default values. > > Why not, > > #:system (or system (%current-system)) > > for all the hooks? Because that value would be captured at call time rather than at monadic-bind time. See Josselin=E2=80=99s excellent explanation of this tr= ap: https://issues.guix.gnu.org/65225#4-lineno34 HTH! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 24 14:35:41 2023 Received: (at 65225) by debbugs.gnu.org; 24 Oct 2023 18:35:41 +0000 Received: from localhost ([127.0.0.1]:56617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvMFc-0002yX-WB for submit@debbugs.gnu.org; Tue, 24 Oct 2023 14:35:41 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:38165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvMFW-0002y6-Uo; Tue, 24 Oct 2023 14:35:31 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32da4180ca2so974629f8f.1; Tue, 24 Oct 2023 11:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698172495; x=1698777295; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=RkqsHwOMh3T9hZfFrgXDPqJBeDdRlIjKItvzHewTxLg=; b=XR5tmhlSdUan//2nYDCKpSqOrIm98OGmtKzv1BoA9yY2kuFW06+SIqFKTZqGg0lF/a yBiryqxl/PQnHbif7f7Co2C8biHIGq+pVuyeLAOESflttwqrgxmuP8k8vooGe8e5cHVi U8DO+qu3D6F1H5vUKnX+15TAEOm00OV2KQO2KCEUHFqJ9GAH4czUcwuHUDdWCzsDbFwC IFL+3StNZM2VEckyB8CU0B9cnGsAgkUapMMGVsklrbdu2VNOxe7vLYvBjZMIMya08ZlJ 5Ok2HsIX9cYArc+Akx09TUMxnF1R9Xr66g6HqOeMbf5PpB8C/ABVoG0+CEOqhwJWyTBr 89JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698172495; x=1698777295; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RkqsHwOMh3T9hZfFrgXDPqJBeDdRlIjKItvzHewTxLg=; b=BlO7+EjpMtAEFrqcsUZwdi8VsDovXOEK7ymmU3Eplv5UFqhdc6Ni12nWdQEcFjbp/F pMuctzGwdVNwTmNmhZh4ISBSYBA+dP44lWX2GgcSCDao7u+UQJ6SUohqlStjMGpywKH6 j+YfblHUoUItaDDvrpHcrJ8BY/kXW++Js9HHSgFlOV1CaujYbd3iCN5KHDJDP72K4EvA aezyCTy3h0O4V4VPIp8WU/rR276+nd4Nvu8qWGJDP2HAIfMZFSL/5962NYQPFLOim47O a0SyxR8ah5o1lQI+2/euhiicVUE/z4eu9Ts5FBir+GUpj128Sf5C+NIVphSYeoh8DRxA JTRA== X-Gm-Message-State: AOJu0YzNnJRt4BVC8T6lv15i40Z72WnM0ZWf4LbkKSWdeu1MxzZMcMdh K8QOv09+iqdP4N/Tolxg2uoh5G4XzIc= X-Google-Smtp-Source: AGHT+IEEYAmcxqwN6AGuymimFHtvJXz9LmjMCU1D5Rb3GKZ3sC6zqHX9xc6uszWz9d/SlgRdXTJxuQ== X-Received: by 2002:adf:a48f:0:b0:32d:d9a8:53df with SMTP id g15-20020adfa48f000000b0032dd9a853dfmr9366812wrb.3.1698172494847; Tue, 24 Oct 2023 11:34:54 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id g3-20020a5d6983000000b00326b8a0e817sm10508883wru.84.2023.10.24.11.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 11:34:54 -0700 (PDT) From: Simon Tournier To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#66640] [PATCH 0/2] Build profile hooks for the right system In-Reply-To: <87bkcpf74t.fsf@gnu.org> References: <875y2xlj5r.fsf@gmail.com> <87bkcpf74t.fsf@gnu.org> Date: Tue, 24 Oct 2023 20:34:47 +0200 Message-ID: <878r7rj2d4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65225 Cc: Josselin Poiret , 65225@debbugs.gnu.org, Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , 66640@debbugs.gnu.org, Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Mon, 23 Oct 2023 at 21:53, Ludovic Court=C3=A8s wrote: > Because that value would be captured at call time rather than at > monadic-bind time. See Josselin=E2=80=99s excellent explanation of this = trap: > > https://issues.guix.gnu.org/65225#4-lineno34 Yeah, all clear. Thank you. Before the patch: --8<---------------cut here---------------start------------->8--- $ guix shell --system=3Driscv64-linux sterm --no-grafts --rebuild-cache --d= ry-run 2>&1 | grep profile /gnu/store/0l02iwcq3bzh38qykg70ygy5cf5c2hml-profile.drv $ guix repl GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guix-user)> ,run-in-store (references* "/gnu/store/0l02iwcq3bzh38qy= kg70ygy5cf5c2hml-profile.drv") $1 =3D ("/gnu/store/4zg87dbcf7mcr82jlbfsbqqffn1miaml-ca-certificate-bundle.= drv" "/gnu/store/5myp281kr169dag03plk5wy0s1jmkk40-emacs-subdirs.drv" "/gnu/store/7s9j9ns9mmfg0vg8wpjvjj0x8rrq992f-info-dir.drv" "/gnu/store/8q36aw38kr2879ll9zrn3cg7w5xpxmjd-module-import" "/gnu/store/bvnibpf0kfk2w4vh069q97mk98q3pwbz-profile-builder" "/gnu/store/fw22lk3vnal8477lpbi0f5wfgh8i1w6f-fonts-dir.drv" "/gnu/store/j0vmqz44kmsp8jhpxw8wa4jq60rjfgaj-module-import-compiled.drv" "/gnu/store/s38y5afcy2bwzsspqsz2n4riiqy77gr4-sterm-20200306.drv" "/gnu/store/x6qzhxy1wilipnlygi508l9yvz66dlvs-glibc-utf8-locales-2.35.drv" "/gnu/store/zraigp7miin3vzr5dcbr4i9rvds0i07r-guile-3.0.9.drv") scheme@(guix-user)> $1 ;;; :4:0: warning: possibly unbound variable `$1' $2 =3D ("/gnu/store/4zg87dbcf7mcr82jlbfsbqqffn1miaml-ca-certificate-bundle.= drv" "/gnu/store/5myp281kr169dag03plk5wy0s1jmkk40-emacs-subdirs.drv" "/gnu/= store/7s9j9ns9mmfg0vg8wpjvjj0x8rrq992f-info-dir.drv" "/gnu/store/8q36aw38kr= 2879ll9zrn3cg7w5xpxmjd-module-import" "/gnu/store/bvnibpf0kfk2w4vh069q97mk9= 8q3pwbz-profile-builder" "/gnu/store/fw22lk3vnal8477lpbi0f5wfgh8i1w6f-fonts= -dir.drv" "/gnu/store/j0vmqz44kmsp8jhpxw8wa4jq60rjfgaj-module-import-compil= ed.drv" "/gnu/store/s38y5afcy2bwzsspqsz2n4riiqy77gr4-sterm-20200306.drv" "/= gnu/store/x6qzhxy1wilipnlygi508l9yvz66dlvs-glibc-utf8-locales-2.35.drv" "/g= nu/store/zraigp7miin3vzr5dcbr4i9rvds0i07r-guile-3.0.9.drv") scheme@(guix-user)> ,pp (map (lambda (drv) (list drv (or (not (string-suffi= x? ".drv" drv)) (derivation-system (read-derivation-from-file drv))))) $1) $3 =3D (("/gnu/store/4zg87dbcf7mcr82jlbfsbqqffn1miaml-ca-certificate-bundle= .drv" "x86_64-linux") ("/gnu/store/5myp281kr169dag03plk5wy0s1jmkk40-emacs-subdirs.drv" "x86_64-linux") ("/gnu/store/7s9j9ns9mmfg0vg8wpjvjj0x8rrq992f-info-dir.drv" "x86_64-linux") ("/gnu/store/8q36aw38kr2879ll9zrn3cg7w5xpxmjd-module-import" #t) ("/gnu/store/bvnibpf0kfk2w4vh069q97mk98q3pwbz-profile-builder" #t) ("/gnu/store/fw22lk3vnal8477lpbi0f5wfgh8i1w6f-fonts-dir.drv" "x86_64-linux") ("/gnu/store/j0vmqz44kmsp8jhpxw8wa4jq60rjfgaj-module-import-compiled.drv" "riscv64-linux") ("/gnu/store/s38y5afcy2bwzsspqsz2n4riiqy77gr4-sterm-20200306.drv" "riscv64-linux") ("/gnu/store/x6qzhxy1wilipnlygi508l9yvz66dlvs-glibc-utf8-locales-2.35.drv" "riscv64-linux") ("/gnu/store/zraigp7miin3vzr5dcbr4i9rvds0i07r-guile-3.0.9.drv" "x86_64-linux")) --8<---------------cut here---------------end--------------->8--- After the patch: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix shell --system=3Driscv64-linux sterm --no-grafts --re= build-cache --dry-run 2>&1 | grep profile /gnu/store/1nnji4fr8mgpsal0rcnzbdjdm4p04yk3-profile.drv $ guix repl GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guix-user)> ,run-in-store (references* "/gnu/store/1nnji4fr8mgpsal0= rcnzbdjdm4p04yk3-profile.drv") $1 =3D ("/gnu/store/2ff9j170rckkr2zs0l6sf4bbkx7fk5vc-profile-builder" "/gnu/store/5mi4ij2vf5cxhsbh52n04h48mvc6z6r8-module-import-compiled.drv" "/gnu/store/5sbcg8siv5jzzbdy4m7bfravpxg95j7h-emacs-subdirs.drv" "/gnu/store/7rz0kd6bigj3gdlp9l4z1v91sxy43bib-fonts-dir.drv" "/gnu/store/8l03g4sg271c0wc2axhpn689r6faa0ij-info-dir.drv" "/gnu/store/94ad504y18rg0d1kgznlj0ib1l56ljxl-ca-certificate-bundle.drv" "/gnu/store/w314gb2gc9z6jd9ng7gpn88zvhhsax09-sterm-20200306.drv" "/gnu/store/x6qzhxy1wilipnlygi508l9yvz66dlvs-glibc-utf8-locales-2.35.drv" "/gnu/store/y545dx7df92al3yz1a9swnf0lhjg9igi-module-import" "/gnu/store/zb3vrbwv8qx9430n839ljbalnik8019g-guile-3.0.9.drv") scheme@(guix-user)> $1 ;;; :2:0: warning: possibly unbound variable `$1' $2 =3D ("/gnu/store/2ff9j170rckkr2zs0l6sf4bbkx7fk5vc-profile-builder" "/gnu= /store/5mi4ij2vf5cxhsbh52n04h48mvc6z6r8-module-import-compiled.drv" "/gnu/s= tore/5sbcg8siv5jzzbdy4m7bfravpxg95j7h-emacs-subdirs.drv" "/gnu/store/7rz0kd= 6bigj3gdlp9l4z1v91sxy43bib-fonts-dir.drv" "/gnu/store/8l03g4sg271c0wc2axhpn= 689r6faa0ij-info-dir.drv" "/gnu/store/94ad504y18rg0d1kgznlj0ib1l56ljxl-ca-c= ertificate-bundle.drv" "/gnu/store/w314gb2gc9z6jd9ng7gpn88zvhhsax09-sterm-2= 0200306.drv" "/gnu/store/x6qzhxy1wilipnlygi508l9yvz66dlvs-glibc-utf8-locale= s-2.35.drv" "/gnu/store/y545dx7df92al3yz1a9swnf0lhjg9igi-module-import" "/g= nu/store/zb3vrbwv8qx9430n839ljbalnik8019g-guile-3.0.9.drv") scheme@(guix-user)> ,pp (map (lambda (drv) (list drv (or (not (string-suffi= x? ".drv" drv)) (derivation-system (read-derivation-from-file drv))))) $1) $3 =3D (("/gnu/store/2ff9j170rckkr2zs0l6sf4bbkx7fk5vc-profile-builder" #t) ("/gnu/store/5mi4ij2vf5cxhsbh52n04h48mvc6z6r8-module-import-compiled.drv" "riscv64-linux") ("/gnu/store/5sbcg8siv5jzzbdy4m7bfravpxg95j7h-emacs-subdirs.drv" "riscv64-linux") ("/gnu/store/7rz0kd6bigj3gdlp9l4z1v91sxy43bib-fonts-dir.drv" "riscv64-linux") ("/gnu/store/8l03g4sg271c0wc2axhpn689r6faa0ij-info-dir.drv" "riscv64-linux") ("/gnu/store/94ad504y18rg0d1kgznlj0ib1l56ljxl-ca-certificate-bundle.drv" "riscv64-linux") ("/gnu/store/w314gb2gc9z6jd9ng7gpn88zvhhsax09-sterm-20200306.drv" "riscv64-linux") ("/gnu/store/x6qzhxy1wilipnlygi508l9yvz66dlvs-glibc-utf8-locales-2.35.drv" "riscv64-linux") ("/gnu/store/y545dx7df92al3yz1a9swnf0lhjg9igi-module-import" #t) ("/gnu/store/zb3vrbwv8qx9430n839ljbalnik8019g-guile-3.0.9.drv" "x86_64-linux")) --8<---------------cut here---------------end--------------->8--- Therefore, it seems fixing the issue. All the x86_64-linux above are turned as riscv64-linux. However, still a naive question: Why =E2=80=99guile=E2=80=99 is not? Is it expected? If not, does it mean that some =E2=80=99set-guile-for-build=E2=80=99 is mis= sing? Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 19:37:38 2023 Received: (at 65225) by debbugs.gnu.org; 27 Oct 2023 23:37:38 +0000 Received: from localhost ([127.0.0.1]:37471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwWOY-0008WQ-35 for submit@debbugs.gnu.org; Fri, 27 Oct 2023 19:37:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwWOS-0008W2-RQ; Fri, 27 Oct 2023 19:37:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwWNq-0002aH-M7; Fri, 27 Oct 2023 19:36:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=shsOmzK+NxdFigxn25l6S1FnyGm61hdd/n4hRhSpmNY=; b=LQBcsJDIKygqbcANyC6K +QzZsZSmc0rF5FUReLpNEPclA/e1mtBfzwOv2ImfGdF2ez9ZXpRexCThUjrD3b9UIMUwqTGtjtLIo RoSu0dLPWaQvmkFW6jvzk63Fl+xQO9nqrZRUuZNYFZTL64mAbXZ6077w1DYVATuyeMBRxIRn9gqA9 +oaLMdNZ/cXvefWnDt+7ICw9ecIuIflVzbxuQjOjtLyu8sqioK+0HK+1hALt8SH7ZqxjtmJGNN3Ut G25V0pOyvrPiXvuADMXLX0mc8yImRNpahqTM78bZ/9weSos9yf82Yj6vywTyceynM+FDAQnYd634G 2/qneAsBx0m6cQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Subject: Re: [bug#66640] [PATCH 0/2] Build profile hooks for the right system In-Reply-To: <878r7rj2d4.fsf@gmail.com> (Simon Tournier's message of "Tue, 24 Oct 2023 20:34:47 +0200") References: <875y2xlj5r.fsf@gmail.com> <87bkcpf74t.fsf@gnu.org> <878r7rj2d4.fsf@gmail.com> Date: Sat, 28 Oct 2023 01:36:51 +0200 Message-ID: <87h6mbab8s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65225 Cc: Josselin Poiret , 65225@debbugs.gnu.org, Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , 66640-done@debbugs.gnu.org, Christopher Baines X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Simon Tournier skribis: > ("/gnu/store/zb3vrbwv8qx9430n839ljbalnik8019g-guile-3.0.9.drv" > "x86_64-linux")) > > Therefore, it seems fixing the issue. All the x86_64-linux above are > turned as riscv64-linux. However, still a naive question: > > Why =E2=80=99guile=E2=80=99 is not? Is it expected? Oh, that=E2=80=99s another bug, this one in =E2=80=98guix shell=E2=80=99 (m= issing argument for =E2=80=98package-derivation=E2=80=99). I pushed this: 344e39c928 profiles: Hooks honor the #:system parameter of =E2=80=98profi= le-derivation=E2=80=99. 9d4b720e1f packages: Add =E2=80=98system=E2=80=99 parameter for =E2=80=98= set-guile-for-build=E2=80=99. b3ec2a0d37 environment: Honor =E2=80=98-s=E2=80=99 for guile-for-build. Thanks for reviewing and reporting the issue! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 19:38:41 2023 Received: (at control) by debbugs.gnu.org; 27 Oct 2023 23:38:41 +0000 Received: from localhost ([127.0.0.1]:37479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwWPZ-00007P-HS for submit@debbugs.gnu.org; Fri, 27 Oct 2023 19:38:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwWPY-00007A-4e for control@debbugs.gnu.org; Fri, 27 Oct 2023 19:38:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwWOx-0002n4-7M for control@debbugs.gnu.org; Fri, 27 Oct 2023 19:38:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=eze+QbjOmNCFfRiIVTkrhBxgNrUKjaLtrpzfYF2cWrk=; b=sT4JR+yeYU8szU X+BjnQ6Ee6U9l4O4dHYnhtMBTygit2evHkKau3nAIRIBXNx20FdoSxmCGuHJMMJwK6iS5AvUNrgxF VevUFWR44mv9OfUD3HDWnOLa00tqQaePCC7hu81r6+lsYJdqXXP5gdffdQ/3LykDv7qDsAUEibFV8 S9EFz14v48gCcc1FvshOnQIVbDDn3uh4+C4v9pOiByog5lBbZAhnE8s70PJ0wT5fFlfmGqWZUGTNb 9onKa70lhwYv+WovDNrvXZha5xBJ5UloI5h4epyXB7taUmxivAZFiWfvAMJx6sTrrBuZlZLiAldob qQsbujVTwrMBOoiufc8g==; Date: Sat, 28 Oct 2023 01:38:01 +0200 Message-Id: <87fs1vab6u.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #65225 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 65225 quit From unknown Wed Jun 18 23:18:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 25 Nov 2023 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator