GNU bug report logs - #47919
Sourcing environment-variables may send to wrong directory

Previous Next

Package: guix;

Reported by: Alexandre Hannud Abdo <abdo <at> member.fsf.org>

Date: Tue, 20 Apr 2021 20:56:01 UTC

Severity: normal

Done: Alexandre Hannud Abdo <abdo <at> member.fsf.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Alexandre Hannud Abdo <abdo <at> member.fsf.org>
Cc: 47919 <at> debbugs.gnu.org
Subject: bug#47919: Sourcing environment-variables may send to wrong directory
Date: Tue, 20 Apr 2021 23:20:12 +0200
[Message part 1 (text/plain, inline)]
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 
previous builds were kept, many builds would become 
irreproducible.

Instead, Guix always uses .drv-0 inside the build container.  When 
you pass --keep and the build fails and .drv-0 already exists on 
the host, it's renamed.

If you want ‘environment-variables’ to match the environment 
outside of the container, rename /tmp/guix-build-[package].drv-1 
to /tmp/guix-build-[package].drv-0.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year and 190 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.