GNU bug report logs - #61987
'current-guix' uses configure flags of Git checkout

Previous Next

Package: guix;

Reported by: Winter <winter <at> winter.cafe>

Date: Sun, 5 Mar 2023 18:44:02 UTC

Severity: normal

Tags: notabug

Done: Winter <winter <at> winter.cafe>

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 61987 in the body.
You can then email your comments to 61987 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#61987; Package guix. (Sun, 05 Mar 2023 18:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Winter <winter <at> winter.cafe>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 05 Mar 2023 18:44:02 GMT) Full text and rfc822 format available.

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

From: Winter <winter <at> winter.cafe>
To: bug-guix <at> gnu.org
Subject: 'current-guix' uses configure flags of Git checkout
Date: Sun, 5 Mar 2023 13:43:07 -0500
Hi,

Given the following commands from a fresh checkout (after the keyring branch has been fetched and 'guix git authenticate' has been run):

./bootstrap
./configure --localstatedir=/var --sysconfdir=/hi/guix
make
./pre-inst-env guix system image -t iso9660 gnu/system/install.scm

Booting the resulting ISO will result in the installer running a Guix instance that has a sysconfdir of '/hi/guix', which can be checked by looking at the contents of '/run/current-system/profile/share/guile/site/3.0/guix/config.scm':

(define-public %sysconfidr "/hi/guix")

This is caused because the installer uses 'current-guix', and it seemingly does not reconfigure the build (likely due to the use of 'channel-build-system').

Thanks,
Winter



Information forwarded to bug-guix <at> gnu.org:
bug#61987; Package guix. (Mon, 06 Mar 2023 01:29:02 GMT) Full text and rfc822 format available.

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

From: Winter <winter <at> winter.cafe>
To: 61987 <at> debbugs.gnu.org
Subject: 'current-guix' uses configure flags of Git checkout
Date: Sun, 5 Mar 2023 20:28:12 -0500
I've tried to dig deeper into this, but am stumped by an issue: editing 'build-aux/build-self.scm' isn't actually doing anything.

After applying this diff, the status message still prints out when running './pre-inst-env guix build -e "((@ (gnu packages package-management) current-guix))"':

diff --git a/build-aux/build-self.scm b/build-aux/build-self.scm
index 02822a2ee8..607a7ac0cd 100644
--- a/build-aux/build-self.scm
+++ b/build-aux/build-self.scm
@@ -461,8 +461,6 @@ files."
                                            (logior major minor))
                                           "none")
                                       node))))))
-        (format (current-error-port) "Computing Guix derivation for '~a'...  "
-                system)

         ;; Wait for a connection on SOCK and proxy build output so it can be
         ;; processed according to the settings currently in effect (build

However, (guix channels) is definitely reading build-self, as changing the path it reads it from to a nonexistent path causes the build to throw, as expected.

The same goes for if I edit any module except for some values in (guix config) -- 'current-guix' never gets rebuilt.

I'd appreciate any help in figuring this out.

Thanks,
Winter



Information forwarded to bug-guix <at> gnu.org:
bug#61987; Package guix. (Tue, 07 Mar 2023 04:19:02 GMT) Full text and rfc822 format available.

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

From: Winter <winter <at> winter.cafe>
To: 61987 <at> debbugs.gnu.org
Subject: Re: 'current-guix' uses configure flags of Git checkout
Date: Mon, 6 Mar 2023 23:18:42 -0500
After looking through some of the code in (guix self), this may not be a bug at all? If something wants the current Guix, it'd definitely want that to include all the configuration values of the current Guix, too.

Due to this, I'm leaning towards closing this issue, but I'll let someone more knowledgable in this area make the final call.

Thanks,
Winter



Information forwarded to bug-guix <at> gnu.org:
bug#61987; Package guix. (Tue, 07 Mar 2023 13:49:02 GMT) Full text and rfc822 format available.

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

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Winter <winter <at> winter.cafe>, 61987 <at> debbugs.gnu.org
Subject: Re: bug#61987: 'current-guix' uses configure flags of Git checkout
Date: Tue, 07 Mar 2023 13:38:34 +0100
Hi,

> ./configure --localstatedir=/var --sysconfdir=/hi/guix

[...]

> (define-public %sysconfidr "/hi/guix")

Well, I do not see where is the bug. :-)  I think it is expected.

Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#61987; Package guix. (Tue, 07 Mar 2023 15:35:02 GMT) Full text and rfc822 format available.

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

From: Winter <winter <at> winter.cafe>
To: Simon Tournier <zimon.toutoune <at> gmail.com>
Cc: 61987 <at> debbugs.gnu.org, control <at> debbugs.gnu.org
Subject: Re: bug#61987: 'current-guix' uses configure flags of Git checkout
Date: Tue, 7 Mar 2023 10:33:57 -0500
tags 61987 notabug
close 61987
thanks

Hi Simon,

Agreed -- I'll submit a patch for a side effect of this, but this doesn't seem to be an actual issue.

Thanks,
Winter



Added tag(s) notabug. Request was from Winter <winter <at> winter.cafe> to control <at> debbugs.gnu.org. (Tue, 07 Mar 2023 15:35:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 61987 <at> debbugs.gnu.org and Winter <winter <at> winter.cafe> Request was from Winter <winter <at> winter.cafe> to control <at> debbugs.gnu.org. (Tue, 07 Mar 2023 15:35:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 05 Apr 2023 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 358 days ago.

Previous Next


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