From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UFfINf+XX2PhmwAAbAwnHQ (envelope-from ) for ; Mon, 31 Oct 2022 10:40:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iCu4NP+XX2MrNwEAG6o9tA (envelope-from ) for ; Mon, 31 Oct 2022 10:40:15 +0100 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 9B67117144 for ; Mon, 31 Oct 2022 10:40:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opRH5-0005PZ-11; Mon, 31 Oct 2022 05:40:07 -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 1opRH2-0005ON-EX for guix-patches@gnu.org; Mon, 31 Oct 2022 05:40:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opRH1-0001as-Dx for guix-patches@gnu.org; Mon, 31 Oct 2022 05:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opRH1-00049p-90 for guix-patches@gnu.org; Mon, 31 Oct 2022 05:40:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58920] [PATCH 1/2] build-system/scons: Allow using a G-exp for scons-flags. References: <20221031093659.20182-1-timotej.lazar@araneo.si> In-Reply-To: <20221031093659.20182-1-timotej.lazar@araneo.si> Resent-From: Timotej Lazar Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 31 Oct 2022 09:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58920 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58920@debbugs.gnu.org Cc: Timotej Lazar Received: via spool by 58920-submit@debbugs.gnu.org id=B58920.166720917015892 (code B ref 58920); Mon, 31 Oct 2022 09:40:03 +0000 Received: (at 58920) by debbugs.gnu.org; 31 Oct 2022 09:39:30 +0000 Received: from localhost ([127.0.0.1]:39558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opRGU-00048G-0U for submit@debbugs.gnu.org; Mon, 31 Oct 2022 05:39:30 -0400 Received: from araneo.si ([90.157.193.204]:40044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opRGS-000487-1r for 58920@debbugs.gnu.org; Mon, 31 Oct 2022 05:39:28 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id 38f9b659 for <58920@debbugs.gnu.org>; Mon, 31 Oct 2022 09:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20180623; bh=Cla5ZTYglis2etuivuF+n8Urcus=; b=sB4P9BZGmnVmpoOQ J6HGjqbwHzzhWJ+ecL6z7xkfqO5e71O/IZRrP8He4NqQH7v21YIje2wshkDgR8kS HsjWExTyHNfGsF7N4vsvBXLJQdWjCES11DXvNrcvZx/YW5CVxkAxZqARo9x7fhlu TmNUTpuEUO3QAQb99FraB7a3cxprBrG2UECKONAaJwXOLiI2PJOUr2a9TGt7BR0n CS8jpN61oZWKAfLtZc71gr0kEAgLhgdFuQTm5yx2cyathscZm5OMAUx6s2GojPeS dauDOFKM/FBbuYr8WAzEwJn3EigokloZXdcf+pctMS+dKolVmfTSJ2aQfkSmbV4o brlMNg== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 79eb76c2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 31 Oct 2022 09:39:26 +0000 (UTC) From: Timotej Lazar Date: Mon, 31 Oct 2022 10:39:28 +0100 Message-Id: <20221031093929.23368-1-timotej.lazar@araneo.si> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667209215; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=Pdu/7al8jRYUei8ockYWHiFMUYWpmQmPoKoZ12Ir5rA=; b=DfhowhaVMNBNWshaqH3GsaeDWpIfQqth9NLt10tDXYVCwlRyleQDE1hU/7HbWergXqBXxn A574U1PuHlM14YP/9CfvEtTXYwTbfPZMivg2iJ9LOpxsGfJL+IUSa5CqOLbq6hKvvChApy aJ4bIcwFym50aQoglbc7D0Oeoilucdb2zfu+IkF59a90wlVEd2kbr0QULpwgAKQKelW+Hi uIi0TAwFd0yvlof6x/QNEhAoaaZ+f7ISkUsWq51AD5hnJMA615EWtPelaoDJMlDdiU5m8C k2pMw8utKqemddkFuFTW3s4Jr1tLyna6AFOWx75V3tlzVJa3iyDOoJ5yT4U9ww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667209215; a=rsa-sha256; cv=none; b=BNPB1R61OLSW2aoU08HLyZgskG3/jxl/AYK4YxAtsny7TBRpM+EtgNjdZOkmDkd9+9KUN5 0wUpCQyFdeR+my1mud9YaMHroD5D1gX2SXVTFttaAb3CmxEFwKSGrpUuW5L4g9hMLaSpu8 STiSaCENxExV06LNDfa8g6lDyJRWA0BWcul19nMXKbJ+L3SVekQxELNYh6eooTNCbobw7N N2F1MVVYsaTxuEnuAWVYb6xCdPmegb9FwASryFa7vxTkI7RB/NAhDzMEkmKsKVCqQ+gWxU FMpfG0mys6Vl+9clVVuvUspHDhoFqF0j1MtrvRG8S/RyOtg7Aclpg6Zh4BuVkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=araneo.si header.s=20180623 header.b=sB4P9BZG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=araneo.si (policy=none); 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" X-Migadu-Spam-Score: 7.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=araneo.si header.s=20180623 header.b=sB4P9BZG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=araneo.si (policy=none); 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" X-Migadu-Queue-Id: 9B67117144 X-Spam-Score: 7.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: CIvr4MvEwdTo * guix/build-system/scons.scm (scons-build): Only call sexp->gexp on scons-flags when scons-flags is a pair. --- guix/build-system/scons.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guix/build-system/scons.scm b/guix/build-system/scons.scm index e38213e8e0..7a02fa8a0f 100644 --- a/guix/build-system/scons.scm +++ b/guix/build-system/scons.scm @@ -100,7 +100,9 @@ (define builder #$(with-build-variables inputs outputs #~(scons-build #:name #$name #:source #+source - #:scons-flags #$(sexp->gexp scons-flags) + #:scons-flags #$(if (pair? scons-flags) + (sexp->gexp scons-flags) + scons-flags) #:system #$system #:build-targets #$build-targets #:test-target #$test-target -- 2.38.0