unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61987: 'current-guix' uses configure flags of Git checkout
@ 2023-03-05 18:43 Winter via Bug reports for GNU Guix
  2023-03-06  1:28 ` Winter via Bug reports for GNU Guix
  2023-03-07 12:38 ` Simon Tournier
  0 siblings, 2 replies; 5+ messages in thread
From: Winter via Bug reports for GNU Guix @ 2023-03-05 18:43 UTC (permalink / raw)
  To: 61987

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#61987: 'current-guix' uses configure flags of Git checkout
  2023-03-05 18:43 bug#61987: 'current-guix' uses configure flags of Git checkout Winter via Bug reports for GNU Guix
@ 2023-03-06  1:28 ` Winter via Bug reports for GNU Guix
  2023-03-07  4:18   ` Winter via Bug reports for GNU Guix
  2023-03-07 12:38 ` Simon Tournier
  1 sibling, 1 reply; 5+ messages in thread
From: Winter via Bug reports for GNU Guix @ 2023-03-06  1:28 UTC (permalink / raw)
  To: 61987

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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#61987: 'current-guix' uses configure flags of Git checkout
  2023-03-06  1:28 ` Winter via Bug reports for GNU Guix
@ 2023-03-07  4:18   ` Winter via Bug reports for GNU Guix
  0 siblings, 0 replies; 5+ messages in thread
From: Winter via Bug reports for GNU Guix @ 2023-03-07  4:18 UTC (permalink / raw)
  To: 61987

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#61987: 'current-guix' uses configure flags of Git checkout
  2023-03-05 18:43 bug#61987: 'current-guix' uses configure flags of Git checkout Winter via Bug reports for GNU Guix
  2023-03-06  1:28 ` Winter via Bug reports for GNU Guix
@ 2023-03-07 12:38 ` Simon Tournier
  2023-03-07 15:33   ` Winter via Bug reports for GNU Guix
  1 sibling, 1 reply; 5+ messages in thread
From: Simon Tournier @ 2023-03-07 12:38 UTC (permalink / raw)
  To: Winter, 61987

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#61987: 'current-guix' uses configure flags of Git checkout
  2023-03-07 12:38 ` Simon Tournier
@ 2023-03-07 15:33   ` Winter via Bug reports for GNU Guix
  0 siblings, 0 replies; 5+ messages in thread
From: Winter via Bug reports for GNU Guix @ 2023-03-07 15:33 UTC (permalink / raw)
  To: Simon Tournier; +Cc: 61987, control

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-07 15:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-05 18:43 bug#61987: 'current-guix' uses configure flags of Git checkout Winter via Bug reports for GNU Guix
2023-03-06  1:28 ` Winter via Bug reports for GNU Guix
2023-03-07  4:18   ` Winter via Bug reports for GNU Guix
2023-03-07 12:38 ` Simon Tournier
2023-03-07 15:33   ` Winter via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).