GNU bug report logs - #19278
%guix-version is incorrect in the presence of 'guix pull'

Previous Next

Package: guix;

Reported by: Tomas Cech <tcech <at> suse.cz>

Date: Fri, 5 Dec 2014 16:48:01 UTC

Severity: important

Merged with 19318

Found in version 0.9

Done: ludo <at> gnu.org (Ludovic Courtès)

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 19278 in the body.
You can then email your comments to 19278 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#19278; Package guix. (Fri, 05 Dec 2014 16:48:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas Cech <tcech <at> suse.cz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 05 Dec 2014 16:48:02 GMT) Full text and rfc822 format available.

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

From: Tomas Cech <tcech <at> suse.cz>
To: bug-guix <at> gnu.org
Subject: guix needs to be installed for guix pull
Date: Fri, 05 Dec 2014 17:47:17 +0100
package: guix
version: 0.9

`guix pull' requires to have guix among installed packages (`guix
package -i guix'), but this fact is not documented in manual and not
mentioned by `guix pull --help' message.

It is valid at least in my case - running Guix on top of Gentoo
distribution.




Information forwarded to bug-guix <at> gnu.org:
bug#19278; Package guix. (Sat, 06 Dec 2014 22:57:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Tomas Cech <tcech <at> suse.cz>
Cc: 19278 <at> debbugs.gnu.org
Subject: Re: bug#19278: guix needs to be installed for guix pull
Date: Sat, 06 Dec 2014 23:56:48 +0100
Tomas Cech <tcech <at> suse.cz> skribis:

> `guix pull' requires to have guix among installed packages (`guix
> package -i guix')

That shouldn’t be the case.

Do you still have the error handy, or can you reproduce it?

TIA,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#19278; Package guix. (Fri, 12 Dec 2014 10:58:02 GMT) Full text and rfc822 format available.

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

From: Tomas Cech <tcech <at> suse.cz>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Tomas Cech <tcech <at> suse.cz>, 19278 <at> debbugs.gnu.org
Subject: Re: bug#19278: guix needs to be installed for guix pull
Date: Fri, 12 Dec 2014 11:57:25 +0100
At Sat, 06 Dec 2014 23:56:48 +0100,
Ludovic Courtès wrote:
> 
> Tomas Cech <tcech <at> suse.cz> skribis:
> 
> > `guix pull' requires to have guix among installed packages (`guix
> > package -i guix')
> 
> That shouldn’t be the case.
> 
> Do you still have the error handy, or can you reproduce it?

Yes, I just reproduced it. It can bee seen on version:

tcech <at> venom ~ $ LC_ALL=C LANG=C guix --version
guix (GNU Guix) 0.9
Copyright (C) 2014 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

tcech <at> venom ~ $ LC_ALL=C LANG=C guix package -r guix
The following package will be removed:
   guix 0.8.3b09332     /gnu/store/nr7yppxdwb8gz8j323124bp06j9n6nz6-guix-0.8.3b09332

The following derivations will be built:
   /gnu/store/bc6fnvrf4h2k2m8b9w5ypgyadcyllqjp-profile.drv
   /gnu/store/fi05mwsgaabbg0xdg5s4r9s0sv9jwamq-info-dir.drv
5 packages in profile
;;; note: source file /home/tcech/.config/guix/latest/gnu/packages/dwm.scm
;;;       newer than compiled /home/tcech/.config/guix/latest/gnu/packages/dwm.go

tcech <at> venom ~ $ LC_ALL=C LANG=C /usr/bin/guix --version
guix (GNU Guix) 0.8
Copyright (C) 2014 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


At least, that is how I understand the problem.

S_W

Information forwarded to bug-guix <at> gnu.org:
bug#19278; Package guix. (Fri, 12 Dec 2014 20:02:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Tomas Cech <tcech <at> suse.cz>
Cc: 19278 <at> debbugs.gnu.org
Subject: Re: bug#19278: guix needs to be installed for guix pull
Date: Fri, 12 Dec 2014 21:01:15 +0100
Tomas Cech <tcech <at> suse.cz> skribis:

> At Sat, 06 Dec 2014 23:56:48 +0100,
> Ludovic Courtès wrote:
>> 
>> Tomas Cech <tcech <at> suse.cz> skribis:
>> 
>> > `guix pull' requires to have guix among installed packages (`guix
>> > package -i guix')
>> 
>> That shouldn’t be the case.
>> 
>> Do you still have the error handy, or can you reproduce it?
>
> Yes, I just reproduced it. It can bee seen on version:
>
> tcech <at> venom ~ $ LC_ALL=C LANG=C guix --version
> guix (GNU Guix) 0.9
> Copyright (C) 2014 the Guix authors
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> tcech <at> venom ~ $ LC_ALL=C LANG=C guix package -r guix
> The following package will be removed:
>    guix 0.8.3b09332     /gnu/store/nr7yppxdwb8gz8j323124bp06j9n6nz6-guix-0.8.3b09332
>
> The following derivations will be built:
>    /gnu/store/bc6fnvrf4h2k2m8b9w5ypgyadcyllqjp-profile.drv
>    /gnu/store/fi05mwsgaabbg0xdg5s4r9s0sv9jwamq-info-dir.drv
> 5 packages in profile
> ;;; note: source file /home/tcech/.config/guix/latest/gnu/packages/dwm.scm
> ;;;       newer than compiled /home/tcech/.config/guix/latest/gnu/packages/dwm.go
>
> tcech <at> venom ~ $ LC_ALL=C LANG=C /usr/bin/guix --version
> guix (GNU Guix) 0.8
> Copyright (C) 2014 the Guix authors
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.

But ‘guix pull’ is not used here.  I thought the problem had to do with
‘guix pull’, no?

AFAICS, in the example above, it’s just that at the beginning,
~/.guix-profile/bin/guix is being used (marked as “0.9”), and then
/usr/bin/guix is used instead (marked as “0.8”.)  Nothing special.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#19278; Package guix. (Fri, 12 Dec 2014 20:46:02 GMT) Full text and rfc822 format available.

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

From: Tomas Cech <tcech <at> suse.cz>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Tomas Cech <tcech <at> suse.cz>, 19278 <at> debbugs.gnu.org
Subject: Re: bug#19278: guix needs to be installed for guix pull
Date: Fri, 12 Dec 2014 21:45:39 +0100
At Fri, 12 Dec 2014 21:01:15 +0100,
Ludovic Courtès wrote:
> 
> Tomas Cech <tcech <at> suse.cz> skribis:
> 
> > At Sat, 06 Dec 2014 23:56:48 +0100,
> > Ludovic Courtès wrote:
> >> 
> >> Tomas Cech <tcech <at> suse.cz> skribis:
> >> 
> >> > `guix pull' requires to have guix among installed packages (`guix
> >> > package -i guix')
> >> 
> >> That shouldn’t be the case.
> >> 
> >> Do you still have the error handy, or can you reproduce it?
> >
> > Yes, I just reproduced it. It can bee seen on version:
> >
> > tcech <at> venom ~ $ LC_ALL=C LANG=C guix --version
> > guix (GNU Guix) 0.9
> > Copyright (C) 2014 the Guix authors
> > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> > This is free software: you are free to change and redistribute it.
> > There is NO WARRANTY, to the extent permitted by law.
> >
> > tcech <at> venom ~ $ LC_ALL=C LANG=C guix package -r guix
> > The following package will be removed:
> >    guix 0.8.3b09332     /gnu/store/nr7yppxdwb8gz8j323124bp06j9n6nz6-guix-0.8.3b09332
> >
> > The following derivations will be built:
> >    /gnu/store/bc6fnvrf4h2k2m8b9w5ypgyadcyllqjp-profile.drv
> >    /gnu/store/fi05mwsgaabbg0xdg5s4r9s0sv9jwamq-info-dir.drv
> > 5 packages in profile
> > ;;; note: source file /home/tcech/.config/guix/latest/gnu/packages/dwm.scm
> > ;;;       newer than compiled /home/tcech/.config/guix/latest/gnu/packages/dwm.go
> >
> > tcech <at> venom ~ $ LC_ALL=C LANG=C /usr/bin/guix --version
> > guix (GNU Guix) 0.8
> > Copyright (C) 2014 the Guix authors
> > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> > This is free software: you are free to change and redistribute it.
> > There is NO WARRANTY, to the extent permitted by law.
> 
> But ‘guix pull’ is not used here.  I thought the problem had to do with
> ‘guix pull’, no?
> 
> AFAICS, in the example above, it’s just that at the beginning,
> ~/.guix-profile/bin/guix is being used (marked as “0.9”), and then
> /usr/bin/guix is used instead (marked as “0.8”.)  Nothing special.

I'm afraid that I
1] poorly worded the report
2] misunderstood

OK, let me retry.

I have Gentoo installation, guix 0.8 built using my ebuild and installed into system.

According to this part of documentation
http://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-pull

I should be able to call `guix pull' and my guix will be updated.

It's not written there that it will be installed to
~/.config/guix/latest but guix prints it in the end.


So, when I call it:

tcech <at> venom ~ $ LC_ALL=C LANG=C /usr/bin/guix pull
starting download of `/tmp/guix-file.cSPiQM' from `http://git.savannah.gnu.org/cgit/guix.git/snapshot/guix-master.tar.gz'...
http://git.savannah.gnu.org/.../guix-master.tar.gz      6836.6 KiB transferred
unpacking '/gnu/store/6z3z7lfk7a52l6pd28qz0qzq9q4mpfjq-guix-latest.tar.gz'...
;;; note: source file /home/tcech/.config/guix/latest/gnu/packages/dwm.scm
;;;       newer than compiled /home/tcech/.config/guix/latest/gnu/packages/dwm.go
substitute-binary: guix substitute-binary: warning: while fetching http://hydra.gnu.org/nix-cache-info: server is unresponsive
substitute-binary: guix substitute-binary: warning: try `--no-substitutes' if the problem persists
substitute-binary: guix substitute-binary: warning: while fetching http://hydra.gnu.org/hkc3fkchhwsan4g6f6hyvcja2i9xzwhs.narinfo: server is unresponsive
substitute-binary: guix substitute-binary: warning: try `--no-substitutes' if the problem persists
The following derivation will be built:
   /gnu/store/0nygspjlcxh0p1wijdlpia8qda0qnbby-guix-latest.drv
waiting for locks or build slots...
updated GNU Guix successfully deployed under `/home/tcech/.config/guix/latest'

and then ask for version:

tcech <at> venom ~ $ LC_ALL=C LANG=C /usr/bin/guix --version
guix (GNU Guix) 0.8
Copyright (C) 2014 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
   
I can see that still old version is used.

The problem is

- documentation is missing some important part that I need to set up
  environment so new version will be used (adjusting PATH and
  GUIX_PACKAGE_PATH?)

or

- guix should check for installation in ~/.config/guix/latest by
  itself and does not


Please, ignore the part with `guix package -i guix' - it will just
cause installation of third instance of guix and this one will show
higher version as environment is set for installed packages
correctly. And this part confused me before.

I hope I made it more clear now.

Thanks,

S_W

Information forwarded to bug-guix <at> gnu.org:
bug#19278; Package guix. (Fri, 12 Dec 2014 21:56:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Tomas Cech <tcech <at> suse.cz>
Cc: request <at> debbugs.gnu.org, 19278 <at> debbugs.gnu.org
Subject: Re: bug#19278: guix needs to be installed for guix pull
Date: Fri, 12 Dec 2014 22:55:35 +0100
merge 19278 19318
thanks

Tomas Cech <tcech <at> suse.cz> skribis:

> I have Gentoo installation, guix 0.8 built using my ebuild and installed into system.
>
> According to this part of documentation
> http://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-pull
>
> I should be able to call `guix pull' and my guix will be updated.

Correct.

> So, when I call it:
>
> tcech <at> venom ~ $ LC_ALL=C LANG=C /usr/bin/guix pull
> starting download of `/tmp/guix-file.cSPiQM' from `http://git.savannah.gnu.org/cgit/guix.git/snapshot/guix-master.tar.gz'...
> http://git.savannah.gnu.org/.../guix-master.tar.gz      6836.6 KiB transferred
> unpacking '/gnu/store/6z3z7lfk7a52l6pd28qz0qzq9q4mpfjq-guix-latest.tar.gz'...
> ;;; note: source file /home/tcech/.config/guix/latest/gnu/packages/dwm.scm
> ;;;       newer than compiled /home/tcech/.config/guix/latest/gnu/packages/dwm.go
> substitute-binary: guix substitute-binary: warning: while fetching http://hydra.gnu.org/nix-cache-info: server is unresponsive
> substitute-binary: guix substitute-binary: warning: try `--no-substitutes' if the problem persists
> substitute-binary: guix substitute-binary: warning: while fetching http://hydra.gnu.org/hkc3fkchhwsan4g6f6hyvcja2i9xzwhs.narinfo: server is unresponsive
> substitute-binary: guix substitute-binary: warning: try `--no-substitutes' if the problem persists
> The following derivation will be built:
>    /gnu/store/0nygspjlcxh0p1wijdlpia8qda0qnbby-guix-latest.drv
> waiting for locks or build slots...
> updated GNU Guix successfully deployed under `/home/tcech/.config/guix/latest'
>
> and then ask for version:
>
> tcech <at> venom ~ $ LC_ALL=C LANG=C /usr/bin/guix --version
> guix (GNU Guix) 0.8
> Copyright (C) 2014 the Guix authors
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>    
> I can see that still old version is used.

Actually it’s another bug: the version reported is static, which is
misleading at best.  See <http://bugs.gnu.org/19318>.

> I hope I made it more clear now.

Yes, thank you!

Ludo’.




Merged 19278 19318. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Fri, 12 Dec 2014 21:56:03 GMT) Full text and rfc822 format available.

Changed bug title to '%guix-version is incorrect in the presence of 'guix pull'' from 'guix needs to be installed for guix pull' Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sat, 02 Jan 2016 20:49:02 GMT) Full text and rfc822 format available.

Severity set to 'important' from 'normal' Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sat, 02 Apr 2016 19:44:01 GMT) Full text and rfc822 format available.

Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Wed, 20 Jul 2016 21:01:02 GMT) Full text and rfc822 format available.

Notification sent to Tomas Cech <tcech <at> suse.cz>:
bug acknowledged by developer. (Wed, 20 Jul 2016 21:01:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Tomas Cech <tcech <at> suse.cz>
Cc: 19278-done <at> debbugs.gnu.org, 19318-done <at> debbugs.gnu.org
Subject: %guix-version is incorrect in the presence of 'guix pull'
Date: Wed, 20 Jul 2016 23:00:19 +0200
Hello!

ludo <at> gnu.org (Ludovic Courtès) skribis:

> Actually it’s another bug: the version reported is static, which is
> misleading at best.  See <http://bugs.gnu.org/19318>.

I’m happy to report that this bug is finally fixed, in commit
b006ba50384f9cb517fa881299160adba0aaca9e.  :-)

It should take effect immediately: “guix pull && guix --version” should
display a version string other than “0.10.0” or similar.

Eventually the version string will include the Git commit id, à la “git
describe”.

Ludo’.




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Wed, 20 Jul 2016 21:01:02 GMT) Full text and rfc822 format available.

Notification sent to ludo <at> gnu.org (Ludovic Courtès):
bug acknowledged by developer. (Wed, 20 Jul 2016 21:01:02 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. (Thu, 18 Aug 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 252 days ago.

Previous Next


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