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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47919 in the body.
You can then email your comments to 47919 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#47919; Package guix. (Tue, 20 Apr 2021 20:56:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexandre Hannud Abdo <abdo <at> member.fsf.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 20 Apr 2021 20:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexandre Hannud Abdo <abdo <at> member.fsf.org>
To: bug-guix <at> gnu.org
Subject: Sourcing environment-variables may send to wrong directory
Date: Tue, 20 Apr 2021 22:37:09 +0200
Ni!

While debugging a package definition I met the following odd behavior:

On subsequent failed builds, if I go to build dir and source
'environment-variables', this is what happens:


/tmp/guix-build-[package].drv-1$ source environment-variables
/tmp/guix-build-[package].drv-0/[package]$


See how I source it in failed build '-1', but my cwd gets changed to
failed build '-0'!

Cheers,
ale
.~´





Information forwarded to bug-guix <at> gnu.org:
bug#47919; Package guix. (Tue, 20 Apr 2021 21:20:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Alexandre Hannud Abdo <abdo <at> member.fsf.org>
Cc: bug-guix <at> gnu.org, 47919 <at> debbugs.gnu.org
Subject: Re: 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)]

Information forwarded to bug-guix <at> gnu.org:
bug#47919; Package guix. (Tue, 20 Apr 2021 21:20:02 GMT) Full text and rfc822 format available.

Reply sent to Alexandre Hannud Abdo <abdo <at> member.fsf.org>:
You have taken responsibility. (Fri, 12 Jan 2024 21:33:02 GMT) Full text and rfc822 format available.

Notification sent to Alexandre Hannud Abdo <abdo <at> member.fsf.org>:
bug acknowledged by developer. (Fri, 12 Jan 2024 21:33:02 GMT) Full text and rfc822 format available.

Message #16 received at 47919-done <at> debbugs.gnu.org (full text, mbox):

From: Alexandre Hannud Abdo <abdo <at> member.fsf.org>
To: 47919-done <at> debbugs.gnu.org
Subject: Sourcing environment-variables may send to wrong directory
Date: Fri, 12 Jan 2024 22:32:20 +0100
Ni! I see. Thanks for the explanation. .~´




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 10 Feb 2024 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 69 days ago.

Previous Next


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