From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 06 17:24:48 2021 Received: (at submit) by debbugs.gnu.org; 6 Sep 2021 21:24:48 +0000 Received: from localhost ([127.0.0.1]:54619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNM6i-0007a7-D7 for submit@debbugs.gnu.org; Mon, 06 Sep 2021 17:24:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:60880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNM6g-0007Zy-61 for submit@debbugs.gnu.org; Mon, 06 Sep 2021 17:24:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNM6f-0004ev-Fo for bug-guix@gnu.org; Mon, 06 Sep 2021 17:24:45 -0400 Received: from dustycloud.org ([50.116.34.160]:58548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNM6e-0002LH-2w for bug-guix@gnu.org; Mon, 06 Sep 2021 17:24:45 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 4FC922661B for ; Mon, 6 Sep 2021 17:24:43 -0400 (EDT) User-agent: mu4e 1.6.2; emacs 27.2 From: Christine Lemmer-Webber To: bug-guix@gnu.org Subject: Wrong build directory number shown in environment-variables file Date: Mon, 06 Sep 2021 17:22:55 -0400 Message-ID: <87a6kpcs85.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org 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_PASS=-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-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 (--) I was doing guix build with "--keep-missing" and looking around in a few of the output directories. I was peeking in: /tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-4 But wait... the "environment-variables" file says: #+BEGIN_SRC sh export TEMP=\ "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" export TEMPDIR=\ "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" export TMP=\ "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" export TMPDIR=\ "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" #+END_SRC Now wait a minute. Look at that last number. What the hell is going on here? Is this a bug in Guix? Why is it pointing at -0 in the -4 build directory? Does this point at a more serious issue? What's going on? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 07 00:38:43 2021 Received: (at submit) by debbugs.gnu.org; 7 Sep 2021 04:38:43 +0000 Received: from localhost ([127.0.0.1]:55060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNSsd-0001bA-HX for submit@debbugs.gnu.org; Tue, 07 Sep 2021 00:38:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:41176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNSsb-0001b2-OU for submit@debbugs.gnu.org; Tue, 07 Sep 2021 00:38:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNSsb-0005Vg-HY for bug-guix@gnu.org; Tue, 07 Sep 2021 00:38:41 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:51498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNSsV-0000aK-RS for bug-guix@gnu.org; Tue, 07 Sep 2021 00:38:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=RZJxtiUQk8h4g ogQIvrg6rqgHez6M94lS4wOkzJXbqo=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=hu8ie055T2oZ+ZXhym72sQjeu+ZEa0M/5tQpyr 7g+yxsgTdqxjd0vwLetsOSfLfzKjEq5AypMyEYsJJ6xABevxmJ0u/9cfJIfH296fDF0Oyh X5uexsl4+kq6W5Lm6i4od31VaGvhKl7E86fxRD+D7CVYquEpeOlvsdgKpTIJwv7z0cd4x/ tHjKpbUCuhPTL04cC91pDUYcisTbGAQOPuD5oCQm7qebHULs1ieEVuhaolLHkTg7FyRcNp 99/GMnmV2QSJH/g5DaIybkCu3ju3PfQJvsB/l5U71Lh7gHDGrwDbZ/NUD8i/CS8VOAwABm SJROxXqeC13hxmi9J1vX6H+w== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id b12a2c9d (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 7 Sep 2021 04:38:26 +0000 (UTC) References: <87a6kpcs85.fsf@dustycloud.org> From: Tobias Geerinckx-Rice To: Christine Lemmer-Webber Subject: Re: bug#50441: Wrong build directory number shown in environment-variables file Date: Tue, 07 Sep 2021 06:34:43 +0200 In-reply-to: <87a6kpcs85.fsf@dustycloud.org> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87k0jtvw3e.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: 50441@debbugs.gnu.org, bug-guix@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: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Christine, Christine Lemmer-Webber =E5=86=99=E9=81=93=EF=BC=9A > I was doing guix build with "--keep-missing" and looking around=20 > in a few > of the output directories. I was peeking in: > > /tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-4 > > But wait... the "environment-variables" file says: > > #+BEGIN_SRC sh > export TEMP=3D\ > "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" Part of the build environment isolation/reproducibility is that=20 processes inside it always see a build directory ending in =E2=80=98-0=E2= =80=99,=20 regardless of the file name on the host system. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYTbsxQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15thUA/0dz4LAOzKOgFvRI1LpMX6vZJ7s5mSDS5hf3PIGj hI14AP0Xod8RsCLklceqo7pQnDGEy/mQKSpdL5mx/a8dh/pWAQ== =K/e4 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 07 00:45:06 2021 Received: (at 50441) by debbugs.gnu.org; 7 Sep 2021 04:45:06 +0000 Received: from localhost ([127.0.0.1]:55066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNSyo-0001lU-76 for submit@debbugs.gnu.org; Tue, 07 Sep 2021 00:45:06 -0400 Received: from out2.migadu.com ([188.165.223.204]:40624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNSyl-0001lJ-Vn for 50441@debbugs.gnu.org; Tue, 07 Sep 2021 00:45:05 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1630989902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=P79gVnaRVT7Bjt8UwiMyPNMeoFLLBsGxpV+ccPHlsBg=; b=KosAfTfLLML8ylqmZnrva0muKJc5QqdtHvtzhyEN5OqpIU4YnKtWUlp0nwRV2OFevATiFd 29/KOyxPl425B+ky9RgLvMZtSp2GeUAkHbVZj3oZHwmhVqaLsVJYUuJ7nWMMM+qChjkN0p 5pj5YgDIyhEP0jafDmG8L+3EJCcQQU8= From: Sarah Morgensen To: Christine Lemmer-Webber Subject: Re: bug#50441: Wrong build directory number shown in environment-variables file References: <87a6kpcs85.fsf@dustycloud.org> Date: Mon, 06 Sep 2021 21:44:59 -0700 In-Reply-To: <87a6kpcs85.fsf@dustycloud.org> (Christine Lemmer-Webber's message of "Mon, 06 Sep 2021 17:22:55 -0400 (7 hours, 5 minutes, 7 seconds ago)") Message-ID: <86eea1hu44.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50441 Cc: 50441@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 Christine, Christine Lemmer-Webber writes: > I was doing guix build with "--keep-missing" and looking around in a few > of the output directories. I was peeking in: > > /tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-4 > > But wait... the "environment-variables" file says: > > #+BEGIN_SRC sh > export TEMP=\ > "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" > export TEMPDIR=\ > "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" > export TMP=\ > "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" > export TMPDIR=\ > "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" > #+END_SRC > > Now wait a minute. Look at that last number. What the hell is going on > here? Is this a bug in Guix? Why is it pointing at -0 in the -4 build > directory? > > Does this point at a more serious issue? What's going on? I've definitely noticed this before as well, and had to work around it (I needed to inspect temp caches). Thanks for actually sending a bug report :) I'm not at all familiar with the nix code, but it looks like this might be related: nix/libstore/build.cc:1654 --8<---------------cut here---------------start------------->8--- /* In a sandbox, for determinism, always use the same temporary directory. */ tmpDirInSandbox = useChroot ? canonPath("/tmp", true) + "/guix-build-" + drvName + "-0" : tmpDir; /* For convenience, set an environment pointing to the top build directory. */ env["NIX_BUILD_TOP"] = tmpDirInSandbox; /* Also set TMPDIR and variants to point to this directory. */ env["TMPDIR"] = env["TEMPDIR"] = env["TMP"] = env["TEMP"] = tmpDirInSandbox; /* Explicitly set PWD to prevent problems with chroot builds. In particular, dietlibc cannot figure out the cwd because the inode of the current directory doesn't appear in .. (because getdents returns the inode of the mount point). */ env["PWD"] = tmpDirInSandbox; --8<---------------cut here---------------end--------------->8--- I'm not entirely sure what's going on. I think we build in chroot by default, which would explain why the temp vars get set to "-0" even though everything else seems to work okay. -- Sarah From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 07 10:26:46 2021 Received: (at 50441) by debbugs.gnu.org; 7 Sep 2021 14:26:46 +0000 Received: from localhost ([127.0.0.1]:57255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNc3h-0005BF-U7 for submit@debbugs.gnu.org; Tue, 07 Sep 2021 10:26:46 -0400 Received: from dustycloud.org ([50.116.34.160]:57684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNc3g-0005B6-At for 50441@debbugs.gnu.org; Tue, 07 Sep 2021 10:26:45 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 92B1D2661E; Tue, 7 Sep 2021 10:26:43 -0400 (EDT) References: <87a6kpcs85.fsf@dustycloud.org> <86eea1hu44.fsf@mgsn.dev> User-agent: mu4e 1.6.2; emacs 27.2 From: Christine Lemmer-Webber To: Sarah Morgensen Subject: Re: bug#50441: Wrong build directory number shown in environment-variables file Date: Tue, 07 Sep 2021 10:25:59 -0400 In-reply-to: <86eea1hu44.fsf@mgsn.dev> Message-ID: <877dfscvh8.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 50441 Cc: 50441@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 (-) Loops like Tobias gave the explanation in their reply: > Part of the build environment isolation/reproducibility is that > processes inside it always see a build directory ending in =E2=80=98-0=E2= =80=99,=20 > regardless of the file name on the host system. Sarah Morgensen writes: > Hello Christine, > > Christine Lemmer-Webber writes: > >> I was doing guix build with "--keep-missing" and looking around in a few >> of the output directories. I was peeking in: >> >> /tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-4 >> >> But wait... the "environment-variables" file says: >> >> #+BEGIN_SRC sh >> export TEMP=3D\ >> "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" >> export TEMPDIR=3D\ >> "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" >> export TMP=3D\ >> "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" >> export TMPDIR=3D\ >> "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" >> #+END_SRC >> >> Now wait a minute. Look at that last number. What the hell is going on >> here? Is this a bug in Guix? Why is it pointing at -0 in the -4 build >> directory? >> >> Does this point at a more serious issue? What's going on? > > I've definitely noticed this before as well, and had to work around it > (I needed to inspect temp caches). Thanks for actually sending a bug > report :) > > I'm not at all familiar with the nix code, but it looks like this might > be related: > > nix/libstore/build.cc:1654 > > /* In a sandbox, for determinism, always use the same temporary > directory. */ > tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + "/guix-buil= d-" + drvName + "-0" : tmpDir; > > /* For convenience, set an environment pointing to the top build > directory. */ > env["NIX_BUILD_TOP"] =3D tmpDirInSandbox; > > /* Also set TMPDIR and variants to point to this directory. */ > env["TMPDIR"] =3D env["TEMPDIR"] =3D env["TMP"] =3D env["TEMP"] =3D t= mpDirInSandbox; > > /* Explicitly set PWD to prevent problems with chroot builds. In > particular, dietlibc cannot figure out the cwd because the > inode of the current directory doesn't appear in .. (because > getdents returns the inode of the mount point). */ > env["PWD"] =3D tmpDirInSandbox; > > I'm not entirely sure what's going on. I think we build in chroot by > default, which would explain why the temp vars get set to "-0" even > though everything else seems to work okay. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 07 10:28:10 2021 Received: (at submit) by debbugs.gnu.org; 7 Sep 2021 14:28:10 +0000 Received: from localhost ([127.0.0.1]:57262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNc54-0005Dn-Ip for submit@debbugs.gnu.org; Tue, 07 Sep 2021 10:28:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:33778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNc53-0005Dg-3M for submit@debbugs.gnu.org; Tue, 07 Sep 2021 10:28:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNc52-0002bA-U6 for bug-guix@gnu.org; Tue, 07 Sep 2021 10:28:08 -0400 Received: from dustycloud.org ([50.116.34.160]:58550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNc51-0000Kd-H2 for bug-guix@gnu.org; Tue, 07 Sep 2021 10:28:08 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 477BD2661E; Tue, 7 Sep 2021 10:28:06 -0400 (EDT) References: <87a6kpcs85.fsf@dustycloud.org> <87k0jtvw3e.fsf@nckx> User-agent: mu4e 1.6.2; emacs 27.2 From: Christine Lemmer-Webber To: Tobias Geerinckx-Rice Subject: Re: bug#50441: Wrong build directory number shown in environment-variables file Date: Tue, 07 Sep 2021 10:26:48 -0400 In-reply-to: <87k0jtvw3e.fsf@nckx> Message-ID: <874kawcvey.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org 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_PASS=-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 Cc: 50441@debbugs.gnu.org, bug-guix@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: -2.3 (--) Hi Tobias! Tobias Geerinckx-Rice writes: > [[PGP Signed Part:Undecided]] > Christine, > > Christine Lemmer-Webber =E5=86=99=E9=81=93=EF=BC=9A >> I was doing guix build with "--keep-missing" and looking around in a >> few >> of the output directories. I was peeking in: >> >> /tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-4 >> >> But wait... the "environment-variables" file says: >> >> #+BEGIN_SRC sh >> export TEMP=3D\ >> "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" > > Part of the build environment isolation/reproducibility is that > processes inside it always see a build directory ending in =E2=80=98-0=E2= =80=99,=20 > regardless of the file name on the host system. > > Kind regards, > > T G-R > > [[End of PGP Signed Part]] This makes sense in general, though I wonder if when using --keep-failed if environment-variables should dump out something different, since that file is around for debugging, and sourcing it might set up the wrong paths I guess? What do you think? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 14 03:47:12 2021 Received: (at 50441) by debbugs.gnu.org; 14 Sep 2021 07:47:12 +0000 Received: from localhost ([127.0.0.1]:47406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQ39s-0002Ko-9f for submit@debbugs.gnu.org; Tue, 14 Sep 2021 03:47:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQ39p-0002Kc-W9 for 50441@debbugs.gnu.org; Tue, 14 Sep 2021 03:47:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43872) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQ39k-0002Xo-8V; Tue, 14 Sep 2021 03:47:04 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35570 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQ39k-0006vH-02; Tue, 14 Sep 2021 03:47:04 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christine Lemmer-Webber Subject: Re: bug#50441: Wrong build directory number shown in environment-variables file References: <87a6kpcs85.fsf@dustycloud.org> <87k0jtvw3e.fsf@nckx> <874kawcvey.fsf@dustycloud.org> Date: Tue, 14 Sep 2021 09:47:01 +0200 In-Reply-To: <874kawcvey.fsf@dustycloud.org> (Christine Lemmer-Webber's message of "Tue, 07 Sep 2021 10:26:48 -0400") Message-ID: <87y27z7g5m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50441 Cc: 50441@debbugs.gnu.org, Tobias Geerinckx-Rice 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: -3.3 (---) Hi, Christine Lemmer-Webber skribis: > Tobias Geerinckx-Rice writes: [...] >>> #+BEGIN_SRC sh >>> export TEMP=3D\ >>> "/tmp/guix-build-u-boot-mnt-reform2-2021.06.drv-0" >> >> Part of the build environment isolation/reproducibility is that >> processes inside it always see a build directory ending in =E2=80=98-0= =E2=80=99,=20 >> regardless of the file name on the host system. >> >> Kind regards, >> >> T G-R >> >> [[End of PGP Signed Part]] > > This makes sense in general, though I wonder if when using --keep-failed > if environment-variables should dump out something different, since > that file is around for debugging, and sourcing it might set up the > wrong paths I guess? What do you think? There=E2=80=99s no good solution I=E2=80=99m afraid. Directory names withi= n the build environment must be fixed to ensure reproducibility, as Tobias writes; yet, the daemon shouldn=E2=80=99t overwrite directories that happen to alre= ady exist in the =E2=80=9Creal=E2=80=9D /tmp. Thanks, Ludo=E2=80=99.