From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 20 17:19:40 2021 Received: (at submit) by debbugs.gnu.org; 20 Apr 2021 21:19:40 +0000 Received: from localhost ([127.0.0.1]:56221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYxmW-00057O-6A for submit@debbugs.gnu.org; Tue, 20 Apr 2021 17:19:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:44854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYxmV-00057H-1b for submit@debbugs.gnu.org; Tue, 20 Apr 2021 17:19:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYxmU-0005xz-T7 for bug-guix@gnu.org; Tue, 20 Apr 2021 17:19:38 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:41698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYxmS-0006VZ-UY for bug-guix@gnu.org; Tue, 20 Apr 2021 17:19:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=Asoz+l4M2ZGm5JeEkkLqVKGVOtWB1n2lsoEbvooqcdY=; h=date:in-reply-to: subject:cc:to:from:references; b=ZwbWLiFdePfYW6rbsBFbvo+m/u0dpIpL21E0r 4Gz+d4f2MvkEYmHoOcqzLqCs0/cTY+dNB9lw0xxsbnM0xKMgi3y4dG8tsxyHBIVOkciaE5 VLKZVFeXCAEaRKpa1AdWpUMs0BGM/JEi/yKxQSWn1Xl2JN05+jkPNB1MUe5vx7Qv/gnL9U omynRnhXEw+QYdjr8k1jkceAUcyXRHiBgif3EH/3b2lxiT4TOlQnCbrFJpYoR9+TYRMBHk 8D2ymTmO9O1jaM2915DIWyMvxLFsHD7rGT5fhEGJoDnr975OpjeBqcYGhybN1fJQ6/G9RT +ifzOQ3YsJi5Bvl2eHxcbhsZg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 93b20bc8 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Tue, 20 Apr 2021 21:19:38 +0000 (UTC) References: From: Tobias Geerinckx-Rice To: Alexandre Hannud Abdo Subject: Re: bug#47919: Sourcing environment-variables may send to wrong directory In-reply-to: BIMI-Selector: v=BIMI1; s=default; Date: Tue, 20 Apr 2021 23:20:12 +0200 Message-ID: <875z0gmz5f.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: bug-guix@gnu.org, 47919@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: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Alexandre, Alexandre Hannud Abdo writes: > /tmp/guix-build-[package].drv-1$ source environment-variables > /tmp/guix-build-[package].drv-0/[package]$ If Guix used a different build directory depending on how many=20 previous builds were kept, many builds would become=20 irreproducible. Instead, Guix always uses .drv-0 inside the build container. When=20 you pass --keep and the build fails and .drv-0 already exists on=20 the host, it's renamed. If you want =E2=80=98environment-variables=E2=80=99 to match the environmen= t=20 outside of the container, rename /tmp/guix-build-[package].drv-1=20 to /tmp/guix-build-[package].drv-0. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYH9FjQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15Cd0A/RgCltWkrFSlHDbKo7InkVvyfLrmm7dWw6yBmdwh U2HqAP0chpIdpinbEVrCNOSZZx+VETrrHjLR5XnCmNU8H4loBQ== =k3rB -----END PGP SIGNATURE----- --=-=-=--