From patchwork Mon Oct 31 09:39:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timotej Lazar X-Patchwork-Id: 44215 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9CAC127BBE9; Mon, 31 Oct 2022 09:40:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3FCF227BBEA for ; Mon, 31 Oct 2022 09:40:15 +0000 (GMT) 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 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+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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