From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aF6zEkxDMWVRggEA9RJhRA:P1 (envelope-from ) for ; Thu, 19 Oct 2023 16:55:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aF6zEkxDMWVRggEA9RJhRA (envelope-from ) for ; Thu, 19 Oct 2023 16:55:08 +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 1319C411EB for ; Thu, 19 Oct 2023 16:55:08 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=QdDcjWEn; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697727308; a=rsa-sha256; cv=none; b=NTxfRIpTvLgvQFf/fuZsuobob7dp9Ppnvi1AmRuRLHIWjreQEtSD8v0Hdeg38IlnaeHnIk ioBDpElikU6Ps/JlJzjaOeuYBJFIe+hj86WG9ZTgnTap4d/DPb8zMopJWjhQN68pqZ2XDA mYPObBCoJa6s78PhYNlpw7Ut+w1MB9AEHlCZkCvkCPf3OCF3UTRo2a/B1wFZyl9bQFVdSM EiX0Bs6aYRekafTo7OFP7JTURG7YfUXI234FEAHVkeftdtNBSp1RqsUUuVK4D5edILX9vQ ubgOxbeeXsL7TCSL+pjl5ipPFWwIJiE7rJFHx26kvGmBedoMWO+5sO6GyOTB/A== 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=QdDcjWEn; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697727308; 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=v33WeQwWtCXgSnkub8kWQrbdKPlgISeN3J+rBDfJtRQ=; b=bT6TrtT+zb/KYShumYVHV5novS2/VQNzG/BaqFm3rg68yAHxt5LffzJsaVFjCypPFSZU00 aBZlLYcHKdNiqubGQ5m+pYTKYFHs7eN77QKnhvOOLcwBBYDDHrjQDRIe/5EPuumfHUbwfu qSJLXpQbvB0fxdQgsPf24jYi/i/V83ny1vS3u8+7Yha8Uq675t4A2tG6pJmnbz6sQD1187 ngXxbOn95b3+bpjbzk9cdSyNUvzdTcelGpc7tURZd4POMRVpuM9x0p67n8zup7zsqD/II3 XOgLgPOSnBfiMLkq0hTN6Pv0pJXOA2Kr0kgM91o+VWy42wB6bithgjUwmEJvlg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtUQ5-0002jf-0X; Thu, 19 Oct 2023 10:54:41 -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 1qtUQ3-0002fR-Dv for guix-patches@gnu.org; Thu, 19 Oct 2023 10:54:39 -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 1qtUQ3-0007Lw-4H; Thu, 19 Oct 2023 10:54:39 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtUQQ-0004HD-MD; Thu, 19 Oct 2023 10:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66640] [PATCH 1/2] packages: Add =?UTF-8?Q?=E2=80=98system=E2=80=99?= parameter for =?UTF-8?Q?=E2=80=98set-guile-for-build=E2=80=99.?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Thu, 19 Oct 2023 14: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: 66640@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 66640-submit@debbugs.gnu.org id=B66640.169772724816327 (code B ref 66640); Thu, 19 Oct 2023 14:55:02 +0000 Received: (at 66640) by debbugs.gnu.org; 19 Oct 2023 14:54:08 +0000 Received: from localhost ([127.0.0.1]:37451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtUPY-0004FG-04 for submit@debbugs.gnu.org; Thu, 19 Oct 2023 10:54:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtUPW-0004El-7H for 66640@debbugs.gnu.org; Thu, 19 Oct 2023 10:54:06 -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 1qtUP0-00075e-8t; Thu, 19 Oct 2023 10:53:34 -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=v33WeQwWtCXgSnkub8kWQrbdKPlgISeN3J+rBDfJtRQ=; b=QdDcjWEngG1z+6uZpzCf +mXpp9juUQNp75Sf0IVi0cpIbN2hNp/zRFmZzA0Ff7K0WrHfvs3oTr3wGTGpNFewrmYwBiyM70Vjw sLYRYege6sDkYb7kSo+yE5S4C9Kj7is9fn4HdJWFglzH7RYhHrdd0S8NLSVjg9RhU8zIU04ZrJRqw T7SwPb8Ce5xn6AFqsa9DkT2M8Jpo2LeVSjXLaWCEn8hzVthJQAXn03Dasf8NMn5t5lWVC4T63qNfQ 1yvh/jF07iZUP3P37CDBbI6AykieSbkUyxO2eIIBEVUFRbBRicT86JKfaSq1rIIx19mfjJkZqrFNp 7EtN0X8alUQrMA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 19 Oct 2023 16:53:22 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -4.36 X-Spam-Score: -4.36 X-Migadu-Queue-Id: 1319C411EB X-TUID: XUtOciXa4lMN * guix/packages.scm (set-guile-for-build): Add ‘system’ parameter. --- guix/packages.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/guix/packages.scm b/guix/packages.scm index f70fad695e..e2e82692ad 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -2022,11 +2022,12 @@ (define* (package-output store package ;;; Monadic interface. ;;; -(define (set-guile-for-build guile) +(define* (set-guile-for-build guile #:optional system) "This monadic procedure changes the Guile currently used to run the build -code of derivations to GUILE, a package object." +code of derivations to GUILE, a package object, compiled for SYSTEM." (lambda (store) - (let ((guile (package-derivation store guile))) + (let ((guile (package-derivation store guile + (or system (%current-system))))) (values (%guile-for-build guile) store)))) (define* (package-file package -- 2.41.0