From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6EgHMQ2+DWEKNQEAgWs5BA (envelope-from ) for ; Sat, 07 Aug 2021 00:56:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eG2YLA2+DWHGOAAAB5/wlQ (envelope-from ) for ; Fri, 06 Aug 2021 22:56:13 +0000 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 63A43A38D for ; Sat, 7 Aug 2021 00:56:12 +0200 (CEST) Received: from localhost ([::1]:56680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mC8l7-00044k-UH for larch@yhetil.org; Fri, 06 Aug 2021 18:56:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC8l0-00044O-NN for bug-guix@gnu.org; Fri, 06 Aug 2021 18:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mC8l0-0007Si-Gt for bug-guix@gnu.org; Fri, 06 Aug 2021 18:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mC8l0-0001by-C1 for bug-guix@gnu.org; Fri, 06 Aug 2021 18:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49815: [PATCH] build-system/scons: Set $CPPPATH Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 06 Aug 2021 22:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49815 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Leo Famulari Cc: 49815@debbugs.gnu.org, Thiago Jung Bauermann Received: via spool by 49815-submit@debbugs.gnu.org id=B49815.16282905496176 (code B ref 49815); Fri, 06 Aug 2021 22:56:02 +0000 Received: (at 49815) by debbugs.gnu.org; 6 Aug 2021 22:55:49 +0000 Received: from localhost ([127.0.0.1]:51514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC8kn-0001bY-Gn for submit@debbugs.gnu.org; Fri, 06 Aug 2021 18:55:49 -0400 Received: from mx.kolabnow.com ([95.128.36.42]:24824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC8kl-0001bK-Ei for 49815@debbugs.gnu.org; Fri, 06 Aug 2021 18:55:48 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id 1223F85C; Sat, 7 Aug 2021 00:55:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1628290540; x=1630104941; bh=NexA3Nd1CkAxrHjDXyc3eln6ekEzDKED6Ju80OmgAfU=; b=MzVi+22nDu+I GSUhbgHfZD6OoRYPEPJOCQsSPebhbAj5IKqkTEmU5IVoPcBDFhXLSNUuuQHu4wbn RLYKbPgsQDtaRhDUOGWL+dUOf8UaQGN1pRY7kUKEQlvyQAsAOXiQuv8VyfbXres2 8K7pwd5RVFZurJRN+320koE4dugfopMgUXBW0xcfKQPqrNnaftgfsFvHFm/kY2dz 8WJTDies7VYhoiSMdNTlHvJSzzqyllLsWI2MG5r2YUcJTlhiaNlkiN2k2cfIj6u6 TjKYKOnPTPzBIZx9I9ZZP11qvmnaAW7EeG0V2WwzzWCkNEO3kaWH3DXlFBfT7Dry +1ZrJ1fGdzRAHIIq6DqQ4boxSBMHAGIbSv2v5pS5bj9Ubkr6EAq/KeF98QDMGcPY vRtXc0RKKyBirx4ltIkohgG5s8TLzZ0d9McStMzKcX6gBpZYMhwngArq0mOcU7pl 2hlcKJZy8GsfDHOZZ66l8P9SRFJU0B3qA9XRkAtjLtmbnW3loo1YGUKh092om7Cv Q2JlQlxYcGYdZG12oFElT4RW6hG3XXsO0xuiIT8Iht5djGOGJDcZdXhVyaEJKska CT6CpPd8VYcIpyd/uLT3XV2M+uZxodKwbxbhNsVN/GOdkYHBDg1c6wPClXKEFsLb Ibb2elcMg9ucve40wFkrhd3kgtNdpgg= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hoiXWzExlDWW; Sat, 7 Aug 2021 00:55:40 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 78F77709; Sat, 7 Aug 2021 00:55:40 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 5B0678B5F; Sat, 7 Aug 2021 00:55:39 +0200 (CEST) Date: Fri, 6 Aug 2021 19:55:17 -0300 Message-Id: <20210806225517.346462-1-bauermann@kolabnow.com> In-Reply-To: References: 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Thiago Jung Bauermann From: Thiago Jung Bauermann via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628290572; h=from:from:sender:sender:reply-to: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=NexA3Nd1CkAxrHjDXyc3eln6ekEzDKED6Ju80OmgAfU=; b=LSXyasIjhpX9ZjTEjQq4tPjhuaQWi/KXKL4AAt0QKGovduiDnxZ77m8FtYPKIDlBxkK1QL OTtKUAb5oBj58Heuidx5KlFaqAQRa8N/1d0h9hiRosSCTQekASWqMcdlr8B+hC/uuBPnFK /HG6ONRGg8a2UG1HIKX7MIaXcm/c7rKwO/4nltLuSerQLwhsyD1SM4X2A+JYMMS1TYk33s b6NytQ36y/atMKT8XabU0MRwTw5tlL+fMHZ8OzBbh9W5rfboJWgGTmYFRznmHcQE5nJx+2 cnsMDlDEZlTCw0/kp/wOqRvoT1fdOwREmgGx9uSoIx8zr9+wYCHDIyD3772C+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628290572; a=rsa-sha256; cv=none; b=q7AUS3Yyn3oxckpvPAWqqNBSeg5Z/U3+4CAJ02hl4LFRzl8zz8C0KEYLey5521+af7HuVB DNaVd+/mY9rlAl4By7vBn/5CezL8LX40uF35KaCTpl2+HwqDn1wKY/MlXIrAjYSxw0qwe4 XPy/glv9jkVx76kNyrcq9iCuLnCI0a03nIRQ1tyki4ASzop9uhifUXD0MrDUzS5ZwMOQDX gBIXerxQl0yg1sJNYM5WgOzLsuxLAjTc81uLt4d6udrZ7XzHAmcwKS2PBDOxiY4BgMks8B O/NJMnVwfuQJTuiMZQTpOdKlzEIZkklyw4l2yZEPcBHvKp3teujU2oyarmsnIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=MzVi+22n; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 2.08 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=MzVi+22n; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 63A43A38D X-Spam-Score: 2.08 X-Migadu-Scanner: scn1.migadu.com X-TUID: Yzgn3jcQY88R The SCons build system sets the compiler include path from the $CPPPATH environment variable while GCC and Guix use $C_INCLUDE_PATH, so set the former with the value of the latter. * guix/build/scons-build-system.scm (build): Set $CPPPATH from $C_INCLUDE_PATH. --- Hi Leo, I was able to build your patch using this one. Thanks, Thiago guix/build/scons-build-system.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guix/build/scons-build-system.scm b/guix/build/scons-build-system.scm index 17a0b7b877e6..fa422c41a172 100644 --- a/guix/build/scons-build-system.scm +++ b/guix/build/scons-build-system.scm @@ -20,6 +20,7 @@ (define-module (guix build scons-build-system) #:use-module ((guix build gnu-build-system) #:prefix gnu:) #:use-module (guix build utils) + #:use-module (srfi srfi-26) #:export (%standard-phases scons-build)) @@ -32,6 +33,10 @@ (define* (build #:key outputs (build-targets '()) (scons-flags '()) (parallel-build? #t) #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (mkdir-p out) + ;; SCons expects the include path in $CPPPATH, so copy from + ;; $C_INCLUDE_PATH. + (let ((c-include-path (getenv "C_INCLUDE_PATH"))) + (and=> c-include-path (cut setenv "CPPPATH" <>))) (apply invoke "scons" (append (if parallel-build? (list "-j" (number->string