From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +KYrJooOOGUgWwAAauVa8A:P1 (envelope-from ) for ; Tue, 24 Oct 2023 20:35:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +KYrJooOOGUgWwAAauVa8A (envelope-from ) for ; Tue, 24 Oct 2023 20:35:54 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 56E5966D1C for ; Tue, 24 Oct 2023 20:35:54 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=XR5tmhlS; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698172554; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RkqsHwOMh3T9hZfFrgXDPqJBeDdRlIjKItvzHewTxLg=; b=gHrlFBt/CtAWPpuGBNWhDazzXbYKlwDWfzSx7OyAeMxQbpWdfsZ1vQ+0ClEYfC5nbWlwAC O0TWPy1GE6+wbUTJRdwvStREwX7HRnZXIZ1ZN3znJ2sbQdN2kG5OVoP1N6VLjgi9/kbc2w w2Tx9w9P4pLvy4MxrmRyCg9A+vDMu80SvPIxLFl1DP7U4SlmyIJ2ivJg3s8KDkxpcbVTPY Odzxcy/G9YD5IgvNqk7Fn0q0zhBzpyqJMt2lk4cx+ggwYKRTvFMTJLLQVptLug72hZHJKc gtFZwFCej7oITL8bdJty4rt8smIvb7V7kFikRDg3+XZuQDHoszCdENK8O4OY5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=XR5tmhlS; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698172554; a=rsa-sha256; cv=none; b=Qq5blyNypYXgdRA8PDdKe2dyPpO2N1xZ/oW6QxKVYt4yzLYGYCxWlRR9xpaduQkVOw6Sz2 727gQUGazmNN2g1hZeSFFeM7IY7gOeLsgBTv7euN1uctue49TqLF3p0K73ULDpWm10oL/w TPInezlkpopRCs4XCRln8cH9Kza6iVAxItWN/NzUbDVv1w4Ti9zOk2pReJx8CkibQgSko2 ga8CUpOIgWxYfS8OTkTfPVyJ1E57jJs8opRck1P4PJKNq7LlcXGtS5yLhstljKMvnIEcet 8FP97OH44++qtzSUwP0ysCYkDFDd4XkX3ErakwgHrqoYMoWfhyRhpoKCwKCegA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvMFf-0003e2-Tw; Tue, 24 Oct 2023 14:35:39 -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 1qvMFa-0003bK-G7 for guix-patches@gnu.org; Tue, 24 Oct 2023 14:35:34 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvMFY-0002BW-Iv for guix-patches@gnu.org; Tue, 24 Oct 2023 14:35:34 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvMG2-0002zP-83 for guix-patches@gnu.org; Tue, 24 Oct 2023 14:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66640] [PATCH 0/2] Build profile hooks for the right system Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 24 Oct 2023 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66640 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , 65225@debbugs.gnu.org, Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , 66640@debbugs.gnu.org, Christopher Baines Received: via spool by 66640-submit@debbugs.gnu.org id=B66640.169817253711444 (code B ref 66640); Tue, 24 Oct 2023 18:36:02 +0000 Received: (at 66640) by debbugs.gnu.org; 24 Oct 2023 18:35:37 +0000 Received: from localhost ([127.0.0.1]:56615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvMFZ-0002yR-42 for submit@debbugs.gnu.org; Tue, 24 Oct 2023 14:35:36 -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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 5.90 X-Spam-Score: 5.90 X-Migadu-Queue-Id: 56E5966D1C X-Migadu-Scanner: mx2.migadu.com X-TUID: s8hlGlnNB/se 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