From unknown Sat Jun 21 03:23:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61698: Incorrect Native *_PATH's when linux source is not a tarball. Resent-From: Mitchell Schmeisser Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 22 Feb 2023 04:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61698 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 61698@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16770417153345 (code B ref -1); Wed, 22 Feb 2023 04:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Feb 2023 04:55:15 +0000 Received: from localhost ([127.0.0.1]:57714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUh9u-0000rl-9Z for submit@debbugs.gnu.org; Tue, 21 Feb 2023 23:55:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:34988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUZW6-00059h-UI for submit@debbugs.gnu.org; Tue, 21 Feb 2023 15:45:41 -0500 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 1pUZW6-0006NY-Lq for bug-guix@gnu.org; Tue, 21 Feb 2023 15:45:38 -0500 Received: from mx1.librem.one ([138.201.176.93]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUZW4-0001hg-GD for bug-guix@gnu.org; Tue, 21 Feb 2023 15:45:38 -0500 Received: from smtp.librem.one (unknown [192.241.214.14]) by mx1.librem.one (Postfix) with ESMTPS id 22CF581E75 for ; Tue, 21 Feb 2023 12:45:32 -0800 (PST) Authentication-Results: name mx1.librem.one; dmarc=fail (p=reject dis=none) header.from=librem.one From: Mitchell Schmeisser Date: Tue, 21 Feb 2023 15:45:42 -0500 Message-ID: Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=138.201.176.93; envelope-from=mitchellschmeisser@librem.one; helo=mx1.librem.one X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Tue, 21 Feb 2023 23:55:10 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a bit of a convoluted bug but here it goes. The title may not be entirely correct. When ~set-paths~ is called it adds all of the inputs to ~C_INCLUDE_PATH~ and friends /except/ the source input. #+BEGIN_SRC scheme (define-public linux-zynq (customize-linux #:name "linux-zynq" #:linux linux-libre-5.15 #:source (package-source linux-xlnx-5.15.0) #:defconfig "xilinx_zynq_defconfig")) #+END_SRC However, below is a snippet from the `set-paths` phase targeting arm-linux-= gnueabihf >>> environment variable `C_INCLUDE_PATH' set to `/gnu/store/1y1ycvzgg363ih16qs= 5nhmlsmn77kjl7-git-checkout/include:/gnu/store/plr00nij45964cyy7sfcg5rcsi8h= ks0h-openssl-1.1.1l/include:/gnu/store/jp6027624wl2f4xx5yz1vjzd2b9yvwl9-elf= utils-0.183/include:/gnu/store/b4mskl4py1zqmxdy1v260r3h6x5p92fm-flex-2.6.4/= include:/gnu/store/fwbiihd2sbhai63y1pvvdh0f2bakfzrf-gmp-6.2.1/include:/gnu/= store/pmq05n0q25v4qjyibxfrp53v4391k7vh-mpfr-4.1.0/include:/gnu/store/ba02g5= xkqiss6s5z8mbj9cvkal6l7b9g-mpc-1.2.1/include:/gnu/store/pdf9myikb674k906x70= g3yzs72f61qm3-gcc-cross-arm-linux-gnueabihf-10.3.0/include:/gnu/store/0na4h= gqh61fpc73dj9qgval3wdbsr393-binutils-cross-arm-linux-gnueabihf-2.37/include= :/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/include:/gnu/store= /c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/include:/gnu/store/4ic6244i3ca4b= 4rxc2wnrgllsidyishv-file-5.39/include:/gnu/store/690qz3fg334dpwn3pn6k59n4wc= 943p2b-gawk-5.1.0/include:/gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-= 4.3/include:/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/inclu= de:/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/include:/gnu/stor= e/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/include:/gnu/store/6mjww4iz4x= dan74d5bbjfh7il8rngfkk-linux-libre-headers-5.10.35/include' <<< This only happens when source is a git repository, and only when building the kernel. When a tarball is used this does not happen because it is not a directory i= n the store. When other packages with git sources are cross compiled their C_INCLUDE_PATH does not contain the sources. During the configure phase some includes in the kconfig program end up linking there way back to =3D/gnu/store/...git-checkout/include/linux/=3D because it is top priority in `C_INCLUDE_PATH`. - Mitchell From unknown Sat Jun 21 03:23:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mitchell Schmeisser Subject: bug#61698: closed (Re: bug#61698: Incorrect Native *_PATH's when linux source is not a tarball.) Message-ID: References: <87jzzyetkr.fsf@gmail.com> X-Gnu-PR-Message: they-closed 61698 X-Gnu-PR-Package: guix Reply-To: 61698@debbugs.gnu.org Date: Thu, 02 Mar 2023 21:24:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1677792242-8813-1" This is a multi-part message in MIME format... ------------=_1677792242-8813-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #61698: Incorrect Native *_PATH's when linux source is not a tarball. which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 61698@debbugs.gnu.org. --=20 61698: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61698 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1677792242-8813-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 61698-done) by debbugs.gnu.org; 2 Mar 2023 21:23:25 +0000 Received: from localhost ([127.0.0.1]:58510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXqOa-0002H9-US for submit@debbugs.gnu.org; Thu, 02 Mar 2023 16:23:25 -0500 Received: from mail-qt1-f182.google.com ([209.85.160.182]:46818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXqOZ-0002Gw-Fh for 61698-done@debbugs.gnu.org; Thu, 02 Mar 2023 16:23:23 -0500 Received: by mail-qt1-f182.google.com with SMTP id c19so758059qtn.13 for <61698-done@debbugs.gnu.org>; Thu, 02 Mar 2023 13:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=EvlvsP15Zr4vMxSNcteAxl9PZ/lSR+3jkE948A4C6J0=; b=LkTYIJ4gef8GqvvtLXvCjhMI74vGoU/1SxxjWCI3WoduW6OmKcLRLWMg8BaZrr6Ljo akn9ZCpXgdPotd+Bjj1dgaD55+kViFnlDRP7koyungL/8wXp7TizT0E2I8e83npgjZDr PQuc0meIkyHZbmAzYnik2ST+PnsGNkoG411lC/9eNnJ8ZJN/ygZQqxM8FR1tFrIZVfz8 CIXRgnr6giYplw5vdMCenQvi5EKlSnLUFv3P2997m+Fv6anD6b344AEBPqRr2Tuy8TX0 QuiC0ocncS0ExKEkPxfwGslzuLlnoxzXkA5tep1QsxOfAU93vUPEWP/ABrWtxgsCn0UI 3Dug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EvlvsP15Zr4vMxSNcteAxl9PZ/lSR+3jkE948A4C6J0=; b=6w6SOHytvLwoDGnBO1YyNg3V653yj8mjEcH3gnfBHCdVBB3xUUv0CKgTk37xq9WJhO WbMUtr057s51ZLlJwFnGHrSCdjtJAvKwOVdENWCzxlLgtZgGcIsxforuZV0rt/VMTCji xBOtXvaGy5vt7bGlURRGZfz2uo9NFKf2FJnUxxVobyQTLWW2JKrzpT3WLU11OlJBhsJA VGAv6kb+VJgZQRjzm4fqQLFTsCyGViAdg7KJ9R//GQn/ZxYV2zJo4OqLv3i5QjzjDVkg gi5xmUjCY1XESq+L7oMQB2aoVbd2R1FxTkPJqLotJHbCpD1blvTldPZN6fWcePOp4jaY Ttmw== X-Gm-Message-State: AO0yUKWhpANI2/85mHVm5d16s2tB3pq6WrRSQF8AJdlR7H5GKCj8wrhP FsG97UW+1RKIIDlvV3mcROG+/9opRg065w== X-Google-Smtp-Source: AK7set/FJoWnJoAcU65FFPpN7svmbHnyS/rxZhbIQF7UaNkkTeynFuxIMXrRKNYcvd4MzmQKmT+7Rg== X-Received: by 2002:a05:622a:6:b0:3bf:b1d0:ab88 with SMTP id x6-20020a05622a000600b003bfb1d0ab88mr19246928qtw.5.1677792197842; Thu, 02 Mar 2023 13:23:17 -0800 (PST) Received: from hurd (dsl-10-128-15.b2b2c.ca. [72.10.128.15]) by smtp.gmail.com with ESMTPSA id h20-20020ac846d4000000b003b64f1b1f40sm461786qto.40.2023.03.02.13.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 13:23:17 -0800 (PST) From: Maxim Cournoyer To: Mitchell Schmeisser Subject: Re: bug#61698: Incorrect Native *_PATH's when linux source is not a tarball. References: Date: Thu, 02 Mar 2023 16:23:16 -0500 In-Reply-To: (Mitchell Schmeisser's message of "Tue, 21 Feb 2023 15:45:42 -0500") Message-ID: <87jzzyetkr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 61698-done Cc: 61698-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Mitchell, Mitchell Schmeisser writes: > This is a bit of a convoluted bug but here it goes. The title may not be > entirely correct. > > When ~set-paths~ is called it adds all of the inputs to ~C_INCLUDE_PATH~ > and friends /except/ the source input. > > #+BEGIN_SRC scheme > (define-public linux-zynq > (customize-linux #:name "linux-zynq" > #:linux linux-libre-5.15 > #:source (package-source linux-xlnx-5.15.0) > #:defconfig "xilinx_zynq_defconfig")) > #+END_SRC > > However, below is a snippet from the `set-paths` phase targeting arm-linux-gnueabihf [...] > This only happens when source is a git repository, and only when > building the kernel. > When a tarball is used this does not happen because it is not a directory in the store. This has already been fixed on the core-updates branch [0], which is scheduled for a merge in a not too distant future. See commit 6454208222 ("build: gnu-build-system: Remove source from native inputs."). Closing. -- Thanks, Maxim ------------=_1677792242-8813-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Feb 2023 04:55:15 +0000 Received: from localhost ([127.0.0.1]:57714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUh9u-0000rl-9Z for submit@debbugs.gnu.org; Tue, 21 Feb 2023 23:55:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:34988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUZW6-00059h-UI for submit@debbugs.gnu.org; Tue, 21 Feb 2023 15:45:41 -0500 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 1pUZW6-0006NY-Lq for bug-guix@gnu.org; Tue, 21 Feb 2023 15:45:38 -0500 Received: from mx1.librem.one ([138.201.176.93]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUZW4-0001hg-GD for bug-guix@gnu.org; Tue, 21 Feb 2023 15:45:38 -0500 Received: from smtp.librem.one (unknown [192.241.214.14]) by mx1.librem.one (Postfix) with ESMTPS id 22CF581E75 for ; Tue, 21 Feb 2023 12:45:32 -0800 (PST) Authentication-Results: name mx1.librem.one; dmarc=fail (p=reject dis=none) header.from=librem.one From: Mitchell Schmeisser To: bug-guix@gnu.org Subject: Incorrect Native *_PATH's when linux source is not a tarball. Date: Tue, 21 Feb 2023 15:45:42 -0500 Message-ID: Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=138.201.176.93; envelope-from=mitchellschmeisser@librem.one; helo=mx1.librem.one X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 21 Feb 2023 23:55:10 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a bit of a convoluted bug but here it goes. The title may not be entirely correct. When ~set-paths~ is called it adds all of the inputs to ~C_INCLUDE_PATH~ and friends /except/ the source input. #+BEGIN_SRC scheme (define-public linux-zynq (customize-linux #:name "linux-zynq" #:linux linux-libre-5.15 #:source (package-source linux-xlnx-5.15.0) #:defconfig "xilinx_zynq_defconfig")) #+END_SRC However, below is a snippet from the `set-paths` phase targeting arm-linux-= gnueabihf >>> environment variable `C_INCLUDE_PATH' set to `/gnu/store/1y1ycvzgg363ih16qs= 5nhmlsmn77kjl7-git-checkout/include:/gnu/store/plr00nij45964cyy7sfcg5rcsi8h= ks0h-openssl-1.1.1l/include:/gnu/store/jp6027624wl2f4xx5yz1vjzd2b9yvwl9-elf= utils-0.183/include:/gnu/store/b4mskl4py1zqmxdy1v260r3h6x5p92fm-flex-2.6.4/= include:/gnu/store/fwbiihd2sbhai63y1pvvdh0f2bakfzrf-gmp-6.2.1/include:/gnu/= store/pmq05n0q25v4qjyibxfrp53v4391k7vh-mpfr-4.1.0/include:/gnu/store/ba02g5= xkqiss6s5z8mbj9cvkal6l7b9g-mpc-1.2.1/include:/gnu/store/pdf9myikb674k906x70= g3yzs72f61qm3-gcc-cross-arm-linux-gnueabihf-10.3.0/include:/gnu/store/0na4h= gqh61fpc73dj9qgval3wdbsr393-binutils-cross-arm-linux-gnueabihf-2.37/include= :/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/include:/gnu/store= /c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/include:/gnu/store/4ic6244i3ca4b= 4rxc2wnrgllsidyishv-file-5.39/include:/gnu/store/690qz3fg334dpwn3pn6k59n4wc= 943p2b-gawk-5.1.0/include:/gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-= 4.3/include:/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/inclu= de:/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/include:/gnu/stor= e/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/include:/gnu/store/6mjww4iz4x= dan74d5bbjfh7il8rngfkk-linux-libre-headers-5.10.35/include' <<< This only happens when source is a git repository, and only when building the kernel. When a tarball is used this does not happen because it is not a directory i= n the store. When other packages with git sources are cross compiled their C_INCLUDE_PATH does not contain the sources. During the configure phase some includes in the kconfig program end up linking there way back to =3D/gnu/store/...git-checkout/include/linux/=3D because it is top priority in `C_INCLUDE_PATH`. - Mitchell ------------=_1677792242-8813-1--