From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sOonM5DPNmXMgQEA9RJhRA:P1 (envelope-from ) for ; Mon, 23 Oct 2023 21:54:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sOonM5DPNmXMgQEA9RJhRA (envelope-from ) for ; Mon, 23 Oct 2023 21:54:56 +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 89D25690E4 for ; Mon, 23 Oct 2023 21:54:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=LA1NndqM; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698090896; 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=6fcbtsRFPisuObgbgvgb9Jqtk4FKufBKbfsZY4E/rQI=; b=qvrzHWQs9OXuNmMP428g4l4o6XmXpLemDzzrlI7uqw/ZWHrIvqIU+jVXK15upKxuh4Mp5C 0wS+7Ah88RsZNI98NZSvKj8hnAuW5JEYCggi2O+sbxRRc1y/9/TCCaGeLYVQ6oQb67mh4P wcLGjIaaUjfPADFuZFGygL4MVjARIKCCYziM1RM9Z8KJ2kt7hOP0nBZUjIL58irldcYF3O RNJ4MA2hLjHFhCuKeThRgK3XSvbAiOwqlJpZYYCCoPgyWx8F1ZT4RsmBKZ+qijQhLUJ/7P Lhh3uWBvZbImNFr7WTV3lU4BopepO+52w13UnbDP+CpM0MlberzHANr3AhiC7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698090896; a=rsa-sha256; cv=none; b=bK8xcVupKJUf65i6bpVCqo7aeqPcRT93aitDNCHZwcZ8uOOAgyusgeUqtoei1t+2sKsG9N a1awA5LIkQcut2T6wVfzWiyYi8Yvs4KLxfxtQuCxqjb+DybSZv75L2q3bkdbo2y3N8Lzgr hYWcGs+oP4Rg1ye/UJRwivPhr+X4ASMNib4dS/+nASMFNuldidvKTFvEQzJStA9QdzMLmI 9UCyon/Q+Wb1i42obEnkGgHmpRLqu5MMPE/v2zXO/uiTvAlcLHro/9HrqWrMWzb5LGsODK qLruTv2D6eute/z6YGhKzNf2WD5KNb1nhFfTYWKKHZt1C8TEf/WMfAA4gxN2Jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=LA1NndqM; 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=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qv10Y-0005WT-O6; Mon, 23 Oct 2023 15:54: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 1qv10V-0005Vl-Ip for guix-patches@gnu.org; Mon, 23 Oct 2023 15:54:36 -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 1qv10T-0002nj-8e for guix-patches@gnu.org; Mon, 23 Oct 2023 15:54:35 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qv10w-0002nZ-Cm for guix-patches@gnu.org; Mon, 23 Oct 2023 15:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66640] [PATCH 0/2] Build profile hooks for the right system Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 Oct 2023 19:55: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: Simon Tournier 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.169809084810639 (code B ref 66640); Mon, 23 Oct 2023 19:55:02 +0000 Received: (at 66640) by debbugs.gnu.org; 23 Oct 2023 19:54:08 +0000 Received: from localhost ([127.0.0.1]:51833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv103-0002lS-NT for submit@debbugs.gnu.org; Mon, 23 Oct 2023 15:54:08 -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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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-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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -4.82 X-Migadu-Queue-Id: 89D25690E4 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -4.82 X-TUID: Z3O7EbBKZiU4 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.