From unknown Sun Jun 22 11:36:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#36443 <36443@debbugs.gnu.org> To: bug#36443 <36443@debbugs.gnu.org> Subject: Status: Canonicalized build directory name in container leads to confusion Reply-To: bug#36443 <36443@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:36:39 +0000 retitle 36443 Canonicalized build directory name in container leads to conf= usion reassign 36443 guix submitter 36443 Robert Vollmert severity 36443 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 06:24:27 2019 Received: (at submit) by debbugs.gnu.org; 30 Jun 2019 10:24:27 +0000 Received: from localhost ([127.0.0.1]:45403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhX0V-0004nC-4l for submit@debbugs.gnu.org; Sun, 30 Jun 2019 06:24:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:54487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhX0T-0004n5-V4 for submit@debbugs.gnu.org; Sun, 30 Jun 2019 06:24:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47432) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhX0S-0004ef-VW for bug-guix@gnu.org; Sun, 30 Jun 2019 06:24:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhX0S-0006z3-1w for bug-guix@gnu.org; Sun, 30 Jun 2019 06:24:24 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:27156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hhX0R-0006uX-RZ for bug-guix@gnu.org; Sun, 30 Jun 2019 06:24:23 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id AF70BA104B for ; Sun, 30 Jun 2019 12:24:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id TBCo7px0OAqv for ; Sun, 30 Jun 2019 12:24:17 +0200 (CEST) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: guix build mixes build dirs? Message-Id: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> Date: Sun, 30 Jun 2019 12:24:16 +0200 To: bug-guix@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.215 X-Spam-Score: -1.6 (-) 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.6 (--) So this is pretty bizarre, and I haven=E2=80=99t managed to cut it down to a smaller example yet, but it seems pretty clear that something is broken: $ guix build -K some-package -> error, referencing = /tmp/guix-build-puzzledb-frontend-20190625-git.drv-0 note: keeping build directory = `/tmp/guix-build-puzzledb-frontend-20190625-git.drv-0=E2=80=99 $ guix build -K some-package -> same error, again referencing = /tmp/guix-build-puzzledb-frontend-20190625-git.drv-0 note: keeping build directory = `/tmp/guix-build-puzzledb-frontend-20190625-git.drv-1=E2=80=99 My concrete packaging setup is a bit more complicated. I=E2=80=99m = working with elm, and faking the build directory as the home directory. The error message = mentioned above is > The binary data at > = /tmp/guix-build-puzzledb-frontend-20190625-git.drv-0/.elm/0.19.0/package/v= ersions.dat > is corrupt. Elm caches build artifacts in the following directories: /tmp/guix-build-puzzledb-frontend-20190625-git.drv-0/.elm elm-stuff/ while the package definition uses the trivial build system as such: (arguments `(#:modules ((guix build utils) (build-elm) (json parser) = (versions)) #:builder (begin =E2=80=A6 (setenv "HOME" (getcwd)) (setenv "HTTP_PROXY" ".=E2=80=9D) ; break http access (copy-recursively (assoc-ref %build-inputs "source") "src") (with-directory-excursion =E2=80=9Csrc" =E2=80=A6 (invoke elm "make" "--output=3D../all.js" = "src/All.elm=E2=80=9D))) The path in the error above comes from $HOME =E2=80=94 is there a chance = that this gets saved somewhere? Other parts of the build script appear to work with the -1 = directory as expected. I=E2=80=99m not at all sure that my package definition is even close to = correct, but as far as I can tell, a mix-up as above should be impossible. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 08:14:07 2019 Received: (at 36443) by debbugs.gnu.org; 30 Jun 2019 12:14:08 +0000 Received: from localhost ([127.0.0.1]:45455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhYid-0001A0-Lb for submit@debbugs.gnu.org; Sun, 30 Jun 2019 08:14:07 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:36846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhYic-00019O-1q for 36443@debbugs.gnu.org; Sun, 30 Jun 2019 08:14:06 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 6FFBEA0165 for <36443@debbugs.gnu.org>; Sun, 30 Jun 2019 14:13:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id ElRc_YM7uc-Y for <36443@debbugs.gnu.org>; Sun, 30 Jun 2019 14:13:57 +0200 (CEST) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: suspicion Message-Id: Date: Sun, 30 Jun 2019 14:13:56 +0200 To: 36443@debbugs.gnu.org X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36443 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.7 (-) My suspicion right now is that there=E2=80=99s not any real mixup happening, but that guix-daemon runs the build in a different environment in the directory /tmp/derivation-name.drv-0 which gets copied to /tmp/derivation-name.drv-5 in the root filesystem by `guix build -K`, if directories -0, -1, =E2=80=A6, -4 already exist. In which case I=E2=80=99d suggest = doing something to the messages and/or documentation to make this clearer. E.g. instead of saying =E2=80=9Ckeeping build directory =E2=80=9D = say =E2=80=9Ckeeping a copy of the build directory at =E2=80=9D. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 13:19:12 2019 Received: (at 36443) by debbugs.gnu.org; 30 Jun 2019 17:19:12 +0000 Received: from localhost ([127.0.0.1]:47206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdTr-0002Px-Vy for submit@debbugs.gnu.org; Sun, 30 Jun 2019 13:19:12 -0400 Received: from world.peace.net ([64.112.178.59]:38258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdTp-0002Pk-SY for 36443@debbugs.gnu.org; Sun, 30 Jun 2019 13:19:10 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hhdTj-00025r-V1; Sun, 30 Jun 2019 13:19:04 -0400 From: Mark H Weaver To: Robert Vollmert Subject: Re: bug#36443: guix build mixes build dirs? References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> Date: Sun, 30 Jun 2019 13:18:45 -0400 In-Reply-To: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> (Robert Vollmert's message of "Sun, 30 Jun 2019 12:24:16 +0200") Message-ID: <87sgrrj8ju.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) 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: 36443 Cc: 36443@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 (-) Robert Vollmert writes: > So this is pretty bizarre, and I haven=E2=80=99t managed to cut it down > to a smaller example yet, but it seems pretty clear that something > is broken: > > $ guix build -K some-package > -> error, referencing /tmp/guix-build-puzzledb-frontend-20190625-git.drv-0 > note: keeping build directory `/tmp/guix-build-puzzledb-frontend-20190625= -git.drv-0=E2=80=99 > $ guix build -K some-package > -> same error, again referencing /tmp/guix-build-puzzledb-frontend-201906= 25-git.drv-0 > note: keeping build directory `/tmp/guix-build-puzzledb-frontend-20190625= -git.drv-1=E2=80=99 This is known behavior, and intentional. The build is done within a container, and the directory name within the container is canonicalized. Regards, Mark From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 13:22:25 2019 Received: (at 36443) by debbugs.gnu.org; 30 Jun 2019 17:22:25 +0000 Received: from localhost ([127.0.0.1]:47210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdWz-0002Ui-Gh for submit@debbugs.gnu.org; Sun, 30 Jun 2019 13:22:25 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:54872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdWx-0002UT-5k for 36443@debbugs.gnu.org; Sun, 30 Jun 2019 13:22:24 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 3F847A1049; Sun, 30 Jun 2019 19:22:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id tHoMt7cNWtO8; Sun, 30 Jun 2019 19:22:05 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#36443: guix build mixes build dirs? From: Robert Vollmert In-Reply-To: <87sgrrj8ju.fsf@netris.org> Date: Sun, 30 Jun 2019 19:22:04 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> To: Mark H Weaver X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36443 Cc: 36443@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.7 (-) > On 30. Jun 2019, at 19:18, Mark H Weaver wrote: >=20 > Robert Vollmert writes: >=20 >> So this is pretty bizarre, and I haven=E2=80=99t managed to cut it = down >> to a smaller example yet, but it seems pretty clear that something >> is broken: >>=20 >> $ guix build -K some-package >> -> error, referencing = /tmp/guix-build-puzzledb-frontend-20190625-git.drv-0 >> note: keeping build directory = `/tmp/guix-build-puzzledb-frontend-20190625-git.drv-0=E2=80=99 >> $ guix build -K some-package >> -> same error, again referencing = /tmp/guix-build-puzzledb-frontend-20190625-git.drv-0 >> note: keeping build directory = `/tmp/guix-build-puzzledb-frontend-20190625-git.drv-1=E2=80=99 >=20 > This is known behavior, and intentional. The build is done within a > container, and the directory name within the container is = canonicalized. Thanks for clarifying. Do you have an idea how to make this less = confusing? In my follow-up to the bug report I suggested > E.g. instead of saying =E2=80=9Ckeeping build directory =E2=80=9D = say > =E2=80=9CKeeping a copy of the build directory at =E2=80=9D. But I feel that might be improved upon. =E2=80=9CCopied build directory = to =E2=80=A6=E2=80=9D? What do you think? From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 13:31:24 2019 Received: (at 36443) by debbugs.gnu.org; 30 Jun 2019 17:31:24 +0000 Received: from localhost ([127.0.0.1]:47219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdff-0002ic-PF for submit@debbugs.gnu.org; Sun, 30 Jun 2019 13:31:24 -0400 Received: from world.peace.net ([64.112.178.59]:38272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdfe-0002iQ-Fx for 36443@debbugs.gnu.org; Sun, 30 Jun 2019 13:31:23 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hhdfX-0002DK-Rh; Sun, 30 Jun 2019 13:31:16 -0400 From: Mark H Weaver To: Robert Vollmert Subject: Re: bug#36443: guix build mixes build dirs? References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> Date: Sun, 30 Jun 2019 13:30:59 -0400 In-Reply-To: <87sgrrj8ju.fsf@netris.org> (Mark H. Weaver's message of "Sun, 30 Jun 2019 13:18:45 -0400") Message-ID: <87o92fj7zg.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) 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: 36443 Cc: 36443@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 (-) Mark H Weaver writes: > Robert Vollmert writes: > >> So this is pretty bizarre, and I haven=E2=80=99t managed to cut it down >> to a smaller example yet, but it seems pretty clear that something >> is broken: >> >> $ guix build -K some-package >> -> error, referencing /tmp/guix-build-puzzledb-frontend-20190625-git.drv= -0 >> note: keeping build directory `/tmp/guix-build-puzzledb-frontend-2019062= 5-git.drv-0=E2=80=99 >> $ guix build -K some-package >> -> same error, again referencing /tmp/guix-build-puzzledb-frontend-20190= 625-git.drv-0 >> note: keeping build directory `/tmp/guix-build-puzzledb-frontend-2019062= 5-git.drv-1=E2=80=99 > > This is known behavior, and intentional. The build is done within a > container, and the directory name within the container is canonicalized. FYI, here's the relevant commit that added this behavior: --8<---------------cut here---------------start------------->8--- commit cb9601029ea164b86bdf997f7160d494c15d344b Author: Eelco Dolstra Date: Wed Dec 2 14:59:07 2015 +0100 daemon: Use deterministic $TMPDIR in chroot. =20=20=20=20 Rather than using $/nix-build--, the temporary directory is now always /tmp/nix-build--0. This improves bitwise-exact reproducibility for builds that store $TMPDIR in their build output. (Of course, those should still be fixed...) =20=20=20=20 * nix/libstore/build.cc (DerivationGoal)[tmpDirInSandbox]: New field. (DerivationGoal::startBuilder): Initialize 'useChroot' earlier. Compute 'tmpDirInSandbox', and use it when populating 'dirsInChroot'. * doc/guix.texi (Build Environment Setup): Document it. =20=20=20=20 Co-authored-by: Ludovic Court=C3=A8s --8<---------------cut here---------------end--------------->8--- Mark From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 13:43:51 2019 Received: (at 36443) by debbugs.gnu.org; 30 Jun 2019 17:43:51 +0000 Received: from localhost ([127.0.0.1]:47231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdrj-0002zQ-Cc for submit@debbugs.gnu.org; Sun, 30 Jun 2019 13:43:51 -0400 Received: from world.peace.net ([64.112.178.59]:38294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdri-0002z7-4l; Sun, 30 Jun 2019 13:43:50 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hhdrb-0002Nb-Gb; Sun, 30 Jun 2019 13:43:43 -0400 From: Mark H Weaver To: Robert Vollmert Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> Date: Sun, 30 Jun 2019 13:43:26 -0400 In-Reply-To: (Robert Vollmert's message of "Sun, 30 Jun 2019 19:22:04 +0200") Message-ID: <87k1d3j7ep.fsf_-_@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) 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: 36443 Cc: 36443@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 (-) retitle 36443 Canonicalized build directory name in container leads to conf= usion thanks Hi Robert, Robert Vollmert writes: > Thanks for clarifying. Do you have an idea how to make this less confusin= g? > > In my follow-up to the bug report I suggested > >> E.g. instead of saying =E2=80=9Ckeeping build directory =E2=80=9D s= ay >> =E2=80=9CKeeping a copy of the build directory at =E2=80=9D. > > But I feel that might be improved upon. =E2=80=9CCopied build directory t= o =E2=80=A6=E2=80=9D? > What do you think? The directory is not copied. It is the same directory, but with a different name in the build container's namespace. You can see this by examining the contents of the directory while the build is in progress. I agree that it would be good to eliminate this potential source of confusion, but it's not yet clear to me how to do it. Any other ideas? Regards, Mark From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 13:47:58 2019 Received: (at 36443) by debbugs.gnu.org; 30 Jun 2019 17:47:58 +0000 Received: from localhost ([127.0.0.1]:47239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdvh-0005Ee-Uo for submit@debbugs.gnu.org; Sun, 30 Jun 2019 13:47:58 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:15734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdvf-0005EQ-Iu for 36443@debbugs.gnu.org; Sun, 30 Jun 2019 13:47:56 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 2938E50426; Sun, 30 Jun 2019 19:47:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id 28EAcepppQg7; Sun, 30 Jun 2019 19:47:45 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) From: Robert Vollmert In-Reply-To: <87k1d3j7ep.fsf_-_@netris.org> Date: Sun, 30 Jun 2019 19:47:44 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> <87k1d3j7ep.fsf_-_@netris.org> To: Mark H Weaver X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36443 Cc: 36443@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.7 (-) Hi Mark, > On 30. Jun 2019, at 19:43, Mark H Weaver wrote: >=20 > retitle 36443 Canonicalized build directory name in container leads to = confusion > thanks >=20 > Hi Robert, >=20 > Robert Vollmert writes: >> Thanks for clarifying. Do you have an idea how to make this less = confusing? >>=20 >> In my follow-up to the bug report I suggested >>=20 >>> E.g. instead of saying =E2=80=9Ckeeping build directory =E2=80=9D= say >>> =E2=80=9CKeeping a copy of the build directory at =E2=80=9D. >>=20 >> But I feel that might be improved upon. =E2=80=9CCopied build = directory to =E2=80=A6=E2=80=9D? >> What do you think? >=20 > The directory is not copied. It is the same directory, but with a > different name in the build container's namespace. You can see this = by > examining the contents of the directory while the build is in = progress. >=20 > I agree that it would be good to eliminate this potential source of > confusion, but it's not yet clear to me how to do it. >=20 > Any other ideas? I see, thanks for clarifying. How about dropping the =E2=80=9C-0=E2=80=9D suffix inside the container? = The major part of my confusion was that the directory =E2=80=9C-0=E2=80=9D actually = existed in /tmp from a previous failed build; this change might avoid that. Cheers Robert From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 30 13:59:59 2019 Received: (at 36443) by debbugs.gnu.org; 30 Jun 2019 17:59:59 +0000 Received: from localhost ([127.0.0.1]:47258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhe7I-0005VU-Ba for submit@debbugs.gnu.org; Sun, 30 Jun 2019 13:59:56 -0400 Received: from world.peace.net ([64.112.178.59]:38312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhe7F-0005VG-Hh for 36443@debbugs.gnu.org; Sun, 30 Jun 2019 13:59:54 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hhe79-0002aO-FE; Sun, 30 Jun 2019 13:59:47 -0400 From: Mark H Weaver To: Robert Vollmert Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> <87k1d3j7ep.fsf_-_@netris.org> <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> Date: Sun, 30 Jun 2019 13:59:30 -0400 In-Reply-To: <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> (Robert Vollmert's message of "Sun, 30 Jun 2019 19:47:44 +0200") Message-ID: <87ftnrj6nx.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) 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: 36443 Cc: 36443@debbugs.gnu.org, ludo@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 (-) Hi Robert, Robert Vollmert writes: > How about dropping the =E2=80=9C-0=E2=80=9D suffix inside the container? = The major part > of my confusion was that the directory =E2=80=9C-0=E2=80=9D actually exis= ted in /tmp > from a previous failed build; this change might avoid that. Sounds good to me. I think that would clearly be an improvement. See below for an (untested but trivial) patch to make this change. Ludovic, what do you think? See for context. Thanks, Mark --8<---------------cut here---------------start------------->8--- diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index fe7bf79069..a73f79eed5 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -1726,7 +1726,7 @@ void DerivationGoal::startBuilder() =20 /* In a sandbox, for determinism, always use the same temporary directory. */ - tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + "/guix-build= -" + drvName + "-0" : tmpDir; + tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + "/guix-build= -" + drvName : tmpDir; =20 /* For convenience, set an environment pointing to the top build directory. */ --8<---------------cut here---------------end--------------->8--- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 02 09:38:08 2019 Received: (at 36443) by debbugs.gnu.org; 2 Jul 2019 13:38:09 +0000 Received: from localhost ([127.0.0.1]:46675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiIz2-0005K2-Jh for submit@debbugs.gnu.org; Tue, 02 Jul 2019 09:38:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiIz0-0005Jl-Sl for 36443@debbugs.gnu.org; Tue, 02 Jul 2019 09:38:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hiIyv-0003YK-GW; Tue, 02 Jul 2019 09:38:01 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=53814 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hiIyu-0002kc-RD; Tue, 02 Jul 2019 09:38:01 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mark H Weaver Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> <87k1d3j7ep.fsf_-_@netris.org> <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> <87ftnrj6nx.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 Messidor an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 02 Jul 2019 15:37:58 +0200 In-Reply-To: <87ftnrj6nx.fsf@netris.org> (Mark H. Weaver's message of "Sun, 30 Jun 2019 13:59:30 -0400") Message-ID: <87sgro7e15.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36443 Cc: 36443@debbugs.gnu.org, Robert Vollmert 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 (---) Hello, Mark H Weaver skribis: > Robert Vollmert writes: >> How about dropping the =E2=80=9C-0=E2=80=9D suffix inside the container?= The major part >> of my confusion was that the directory =E2=80=9C-0=E2=80=9D actually exi= sted in /tmp >> from a previous failed build; this change might avoid that. Bah, I see. > Sounds good to me. I think that would clearly be an improvement. > See below for an (untested but trivial) patch to make this change. > > Ludovic, what do you think? See for > context. [...] > /* In a sandbox, for determinism, always use the same temporary > directory. */ > - tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + "/guix-bui= ld-" + drvName + "-0" : tmpDir; > + tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + "/guix-bui= ld-" + drvName : tmpDir; The result would be that the temporary directory would always have a different name inside and outside the container. Consequently, debugging along the lines of what the manual suggests (info "(guix) Debugging Build Failures") would become pretty much impossible. Thus, I=E2=80=99m in favor of the status quo. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 02 09:41:21 2019 Received: (at 36443) by debbugs.gnu.org; 2 Jul 2019 13:41:21 +0000 Received: from localhost ([127.0.0.1]:46683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiJ29-0005PA-5X for submit@debbugs.gnu.org; Tue, 02 Jul 2019 09:41:21 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:41392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiJ27-0005Or-NM for 36443@debbugs.gnu.org; Tue, 02 Jul 2019 09:41:20 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id D157DA1312; Tue, 2 Jul 2019 15:41:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id 6yTmlGlmjbJc; Tue, 2 Jul 2019 15:41:02 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) From: Robert Vollmert In-Reply-To: <87sgro7e15.fsf@gnu.org> Date: Tue, 2 Jul 2019 15:41:00 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> <87k1d3j7ep.fsf_-_@netris.org> <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> <87ftnrj6nx.fsf@netris.org> <87sgro7e15.fsf@gnu.org> To: =?utf-8?Q?Ludovic_Court=C3=A8s?= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36443 Cc: Mark H Weaver , 36443@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.7 (-) > On 2. Jul 2019, at 15:37, Ludovic Court=C3=A8s wrote: >=20 >> /* In a sandbox, for determinism, always use the same temporary >> directory. */ >> - tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + = "/guix-build-" + drvName + "-0" : tmpDir; >> + tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + = "/guix-build-" + drvName : tmpDir; >=20 > The result would be that the temporary directory would always have a > different name inside and outside the container. Consequently, > debugging along the lines of what the manual suggests (info "(guix) > Debugging Build Failures") would become pretty much impossible. Why do you think it would become impossible? From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 02 23:48:47 2019 Received: (at 36443) by debbugs.gnu.org; 3 Jul 2019 03:48:47 +0000 Received: from localhost ([127.0.0.1]:48276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiWGF-00062y-Fo for submit@debbugs.gnu.org; Tue, 02 Jul 2019 23:48:47 -0400 Received: from world.peace.net ([64.112.178.59]:58198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiWGE-00062l-3T for 36443@debbugs.gnu.org; Tue, 02 Jul 2019 23:48:46 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hiWG7-00084F-NL; Tue, 02 Jul 2019 23:48:39 -0400 From: Mark H Weaver To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) In-Reply-To: <87sgro7e15.fsf@gnu.org> References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> <87k1d3j7ep.fsf_-_@netris.org> <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> <87ftnrj6nx.fsf@netris.org> <87sgro7e15.fsf@gnu.org> Date: Tue, 02 Jul 2019 23:48:18 -0400 Message-ID: <874l43u6bh.fsf@netris.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: 36443 Cc: 36443@debbugs.gnu.org, Robert Vollmert 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 (-) Hi Ludovic, Ludovic Court=C3=A8s wrote: > The result would be that the temporary directory would always have a > different name inside and outside the container. Consequently, > debugging along the lines of what the manual suggests (info "(guix) > Debugging Build Failures") would become pretty much impossible. It's a good point, but I think "pretty much impossible" is an exaggeration, because you can simply rename the failed build directory from /tmp/guix-build-*.drv-0 to /tmp/guix-build-*.drv before debugging. However, it's true that this would be a slightly annoying extra step that is currently not required in the common case. > Thus, I'm in favor of the status quo. I don't feel strongly either way. At first it seemed like a clear improvement, but now I'm unsure. Thanks, Mark From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 04 04:00:00 2019 Received: (at 36443) by debbugs.gnu.org; 4 Jul 2019 08:00:00 +0000 Received: from localhost ([127.0.0.1]:50300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiwet-0001zi-HO for submit@debbugs.gnu.org; Thu, 04 Jul 2019 03:59:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiweq-0001zT-Fx for 36443@debbugs.gnu.org; Thu, 04 Jul 2019 03:59:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hiwel-00041c-1I; Thu, 04 Jul 2019 03:59:51 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=42270 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hiwek-0005rm-6o; Thu, 04 Jul 2019 03:59:50 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Robert Vollmert Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> <87k1d3j7ep.fsf_-_@netris.org> <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> <87ftnrj6nx.fsf@netris.org> <87sgro7e15.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Messidor an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 04 Jul 2019 09:59:47 +0200 In-Reply-To: (Robert Vollmert's message of "Tue, 2 Jul 2019 15:41:00 +0200") Message-ID: <87imsi9qmk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36443 Cc: Mark H Weaver , 36443@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: -3.3 (---) Hi, Robert Vollmert skribis: >> On 2. Jul 2019, at 15:37, Ludovic Court=C3=A8s wrote: >>=20 >>> /* In a sandbox, for determinism, always use the same temporary >>> directory. */ >>> - tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + "/guix-b= uild-" + drvName + "-0" : tmpDir; >>> + tmpDirInSandbox =3D useChroot ? canonPath("/tmp", true) + "/guix-b= uild-" + drvName : tmpDir; >>=20 >> The result would be that the temporary directory would always have a >> different name inside and outside the container. Consequently, >> debugging along the lines of what the manual suggests (info "(guix) >> Debugging Build Failures") would become pretty much impossible. > > Why do you think it would become impossible? =E2=80=9CImpossible=E2=80=9D is an exaggeration, but when you source the =E2=80=98environment-variables=E2=80=99 file, for example, PWD and other va= riables will refer to /tmp/guix-build-=E2=80=A6.drv, which won=E2=80=99t exist. Likewis= e, generated files such as Makefiles would have captured the =E2=80=A6.drv name. Like Mark writes, it=E2=80=99s not the end of the world: you can simply ren= ame /tmp/guix-build-=E2=80=A6.drv-0 to /tmp/guix-build-=E2=80=A6.drv. However,= it means that things would be inconvenient by default, which doesn=E2=80=99t sound g= reat to me. WDYT? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 04 04:04:32 2019 Received: (at 36443) by debbugs.gnu.org; 4 Jul 2019 08:04:32 +0000 Received: from localhost ([127.0.0.1]:50312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiwjH-0004Hd-Ug for submit@debbugs.gnu.org; Thu, 04 Jul 2019 04:04:32 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:46524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiwjG-0004HR-JA for 36443@debbugs.gnu.org; Thu, 04 Jul 2019 04:04:30 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id AC5F5A017A; Thu, 4 Jul 2019 10:04:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id D8uvRiYKanCJ; Thu, 4 Jul 2019 10:04:15 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) From: Robert Vollmert In-Reply-To: <87imsi9qmk.fsf@gnu.org> Date: Thu, 4 Jul 2019 10:04:13 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <4AFAEC1B-9ECA-4A26-BD9F-23B6A31D73CE@vllmrt.net> References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> <87k1d3j7ep.fsf_-_@netris.org> <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> <87ftnrj6nx.fsf@netris.org> <87sgro7e15.fsf@gnu.org> <87imsi9qmk.fsf@gnu.org> To: =?utf-8?Q?Ludovic_Court=C3=A8s?= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36443 Cc: Mark H Weaver , 36443@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.7 (-) > On 4. Jul 2019, at 09:59, Ludovic Court=C3=A8s wrote: >=20 > Hi, >=20 > =E2=80=9CImpossible=E2=80=9D is an exaggeration, but when you source = the > =E2=80=98environment-variables=E2=80=99 file, for example, PWD and = other variables will > refer to /tmp/guix-build-=E2=80=A6.drv, which won=E2=80=99t exist. = Likewise, generated > files such as Makefiles would have captured the =E2=80=A6.drv name. But, wait, won=E2=80=99t they refer to /tmp/guix-build-0.drv? So = debugging a build from /tmp/guix-build-1.drv will use a mix of both directories? > Like Mark writes, it=E2=80=99s not the end of the world: you can = simply rename > /tmp/guix-build-=E2=80=A6.drv-0 to /tmp/guix-build-=E2=80=A6.drv. = However, it means > that things would be inconvenient by default, which doesn=E2=80=99t = sound great > to me. >=20 > WDYT? I don't particularly care anymore. I think it=E2=80=99s a confusing = mess, but for myself I=E2=80=99ve learnt this wart and won=E2=80=99t run into the = problem anymore. Cheers Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 04 11:12:45 2019 Received: (at 36443-done) by debbugs.gnu.org; 4 Jul 2019 15:12:45 +0000 Received: from localhost ([127.0.0.1]:51715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj3Pg-0002Nz-RP for submit@debbugs.gnu.org; Thu, 04 Jul 2019 11:12:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj3Pe-0002Nn-WF for 36443-done@debbugs.gnu.org; Thu, 04 Jul 2019 11:12:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hj3PY-0000d5-OH; Thu, 04 Jul 2019 11:12:36 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=33984 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hj3PW-0000e0-Nb; Thu, 04 Jul 2019 11:12:35 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Robert Vollmert Subject: Re: bug#36443: Canonicalized build directory name in container leads to confusion (was guix build mixes build dirs?) References: <4C8D1EC5-8E39-4595-BFD0-0033C39C6740@vllmrt.net> <87sgrrj8ju.fsf@netris.org> <87k1d3j7ep.fsf_-_@netris.org> <0BEC0223-C396-4A61-8543-BEC2862C3F64@vllmrt.net> <87ftnrj6nx.fsf@netris.org> <87sgro7e15.fsf@gnu.org> <87imsi9qmk.fsf@gnu.org> <4AFAEC1B-9ECA-4A26-BD9F-23B6A31D73CE@vllmrt.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Messidor an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 04 Jul 2019 17:12:32 +0200 In-Reply-To: <4AFAEC1B-9ECA-4A26-BD9F-23B6A31D73CE@vllmrt.net> (Robert Vollmert's message of "Thu, 4 Jul 2019 10:04:13 +0200") Message-ID: <87bly93kbj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36443-done Cc: Mark H Weaver , 36443-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: -3.3 (---) Hello, Robert Vollmert skribis: >> On 4. Jul 2019, at 09:59, Ludovic Court=C3=A8s wrote: >>=20 >> Hi, >>=20 >> =E2=80=9CImpossible=E2=80=9D is an exaggeration, but when you source the >> =E2=80=98environment-variables=E2=80=99 file, for example, PWD and other= variables will >> refer to /tmp/guix-build-=E2=80=A6.drv, which won=E2=80=99t exist. Like= wise, generated >> files such as Makefiles would have captured the =E2=80=A6.drv name. > > But, wait, won=E2=80=99t they refer to /tmp/guix-build-0.drv? So debuggin= g a build > from /tmp/guix-build-1.drv will use a mix of both directories? As the manual explains, the name inside the container is fixed, it=E2=80=99s always .drv-0; the name outside may vary to avoid naming collisions or as a consequence of setting TMPDIR. >> Like Mark writes, it=E2=80=99s not the end of the world: you can simply = rename >> /tmp/guix-build-=E2=80=A6.drv-0 to /tmp/guix-build-=E2=80=A6.drv. Howev= er, it means >> that things would be inconvenient by default, which doesn=E2=80=99t soun= d great >> to me. >>=20 >> WDYT? > > I don't particularly care anymore. I think it=E2=80=99s a confusing mess,= but for > myself I=E2=80=99ve learnt this wart and won=E2=80=99t run into the probl= em anymore. I understand this has been a confusing experience, but I can=E2=80=99t real= ly think of any other sensible way to approach it. Anyway, closing it now. Thank you! Ludo=E2=80=99. From unknown Sun Jun 22 11:36:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 02 Aug 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator