GNU bug report logs - #31456
guix size tries to fetch substitute information for installed package.

Previous Next

Package: guix;

Reported by: Martin Castillo <castilma <at> uni-bremen.de>

Date: Mon, 14 May 2018 20:11:01 UTC

Severity: normal

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 31456 in the body.
You can then email your comments to 31456 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#31456; Package guix. (Mon, 14 May 2018 20:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Martin Castillo <castilma <at> uni-bremen.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 14 May 2018 20:11:02 GMT) Full text and rfc822 format available.

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

From: Martin Castillo <castilma <at> uni-bremen.de>
To: bug-guix <at> gnu.org
Subject: guix size tries to fetch substitute information for installed package.
Date: Mon, 14 May 2018 22:10:07 +0200
[Message part 1 (text/plain, inline)]
I'm on guix 563ab27bd4caead5676bbd515c54b25100c98960 on guixsd.
$ guix package -I; contains
lilypond	2.19.80	out
/gnu/store/jhmz7wpb93hryzqq32kcb4fs9cd84jyi-lilypond-2.19.80
I installed lilypond with that guix version.

$ guix size lilypond; gives me
guix size: error: no available substitute information for
'/gnu/store/6zyrglcmk8l4xpwvg6hgq1al81d7fr1w-lilypond-2.19.80'

I have no idea how this happens.
A wild guess is that store/jhmz.. is a grafted version, and guix size
looks for the ungrafted one?

Martin
-- 
GPG: 7FDE 7190 2F73 2C50 236E  403D CC13 48F1 E644 08EC

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#31456; Package guix. (Mon, 14 May 2018 22:23:01 GMT) Full text and rfc822 format available.

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

From: Martin Castillo <castilma <at> uni-bremen.de>
To: bug-guix <at> gnu.org
Subject: Re: guix size tries to fetch substitute information for installed
 package.
Date: Tue, 15 May 2018 00:22:17 +0200
[Message part 1 (text/plain, inline)]

On 14.05.2018 22:10, Martin Castillo wrote:
> I'm on guix 563ab27bd4caead5676bbd515c54b25100c98960 on guixsd.
> $ guix package -I; contains
> lilypond	2.19.80	out
> /gnu/store/jhmz7wpb93hryzqq32kcb4fs9cd84jyi-lilypond-2.19.80
> I installed lilypond with that guix version.
> 
> $ guix size lilypond; gives me
> guix size: error: no available substitute information for
> '/gnu/store/6zyrglcmk8l4xpwvg6hgq1al81d7fr1w-lilypond-2.19.80'
> 
> I have no idea how this happens.
> A wild guess is that store/jhmz.. is a grafted version, and guix size
> looks for the ungrafted one?

Seems like this is exactly what is happening. guix build --no-grafts
lilypond gave me
/gnu/store/6zyrglcmk8l4xpwvg6hgq1al81d7fr1w-lilypond-2.19.80
and guix size lilypond works as usual.

-- 
GPG: 7FDE 7190 2F73 2C50 236E  403D CC13 48F1 E644 08EC

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#31456; Package guix. (Tue, 15 May 2018 08:51:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Martin Castillo <castilma <at> uni-bremen.de>
Cc: 31456 <at> debbugs.gnu.org
Subject: Re: bug#31456: guix size tries to fetch substitute information for
 installed package.
Date: Tue, 15 May 2018 10:50:10 +0200
Hello,

Martin Castillo <castilma <at> uni-bremen.de> skribis:

> On 14.05.2018 22:10, Martin Castillo wrote:
>> I'm on guix 563ab27bd4caead5676bbd515c54b25100c98960 on guixsd.
>> $ guix package -I; contains
>> lilypond	2.19.80	out
>> /gnu/store/jhmz7wpb93hryzqq32kcb4fs9cd84jyi-lilypond-2.19.80
>> I installed lilypond with that guix version.
>> 
>> $ guix size lilypond; gives me
>> guix size: error: no available substitute information for
>> '/gnu/store/6zyrglcmk8l4xpwvg6hgq1al81d7fr1w-lilypond-2.19.80'
>> 
>> I have no idea how this happens.
>> A wild guess is that store/jhmz.. is a grafted version, and guix size
>> looks for the ungrafted one?
>
> Seems like this is exactly what is happening. guix build --no-grafts
> lilypond gave me
> /gnu/store/6zyrglcmk8l4xpwvg6hgq1al81d7fr1w-lilypond-2.19.80
> and guix size lilypond works as usual.

Exactly.  So I don’t think it’s a bug per se, just that no substitutes
were unavailable when you checked.

Right now I get (purely from substitutes):

--8<---------------cut here---------------start------------->8---
$ guix size --sort=closure lilypond | head
store item                                                       total    self
/gnu/store/s4wbbm0krpnlv22j5r5byb9iv7f3d4gg-lilypond-2.19.80       325.7    26.6   8.2%
/gnu/store/pwbx5fhjrq9crr1c0d2x08ch0l6vr3cv-pango-1.40.14          196.8     3.9   1.2%
/gnu/store/67b00bcqsgq4q6x01pkl7bmrl65hr1n2-harfbuzz-1.7.3         166.5     2.6   0.8%
/gnu/store/j4vj7h3wyb532g2j0axzjj43z2a0dg81-python-2.7.14          152.2    54.6  16.8%
/gnu/store/fs5f2mhnz2czgkcwd594f3i8yh0lyrfd-cairo-1.14.10          135.2     6.1   1.9%
/gnu/store/rrs4fwbsjz59a1gay7m5bhks6xyzl5ha-icu4c-60.2             116.0    36.1  11.1%
/gnu/store/sm37m59gq3smxxz8gs4jikn50qg0g7xh-glib-2.54.2            104.1    14.0   4.3%
/gnu/store/7b5ykfl6jbrdl8j7xp630fga4as3234z-ghostscript-9.22        91.5    22.4   6.9%
/gnu/store/23576gzvv6jdp9f547x6dgah1q9hwcna-libxft-2.3.2            85.1     0.3   0.1%
$ guix --version
guix (GNU Guix) cbcdb777900618f0858e26c91415c603e2a44fb8
Copyright (C) 2018 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.
--8<---------------cut here---------------end--------------->8---

I think we can close the bug, WDYT?

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#31456; Package guix. (Tue, 15 May 2018 10:20:02 GMT) Full text and rfc822 format available.

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

From: Martin Castillo <castilma <at> uni-bremen.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 31456 <at> debbugs.gnu.org
Subject: Re: bug#31456: guix size tries to fetch substitute information for
 installed package.
Date: Tue, 15 May 2018 12:19:12 +0200
[Message part 1 (text/plain, inline)]
> Exactly.  So I don’t think it’s a bug per se, just that no substitutes
> were unavailable when you checked.

The documentation gives me the impression that it should work without
substitutes, when I have the package installed.

> 
> I think we can close the bug, WDYT?

I think guix size should automatically search for the grafted version,
unless there is a technical reason/another use-case for guix size that
I'm not aware of, for which it makes more sense to use the ungrafted
version.

If that's the case, maybe say that in the documentation?


-- 
GPG: 7FDE 7190 2F73 2C50 236E  403D CC13 48F1 E644 08EC
[0001-doc-Add-note-to-guix-size.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Wed, 16 May 2018 13:30:02 GMT) Full text and rfc822 format available.

Notification sent to Martin Castillo <castilma <at> uni-bremen.de>:
bug acknowledged by developer. (Wed, 16 May 2018 13:30:03 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Martin Castillo <castilma <at> uni-bremen.de>
Cc: 31456-done <at> debbugs.gnu.org
Subject: Re: bug#31456: guix size tries to fetch substitute information for
 installed package.
Date: Wed, 16 May 2018 15:29:04 +0200
Hello Martin,

Martin Castillo <castilma <at> uni-bremen.de> skribis:

>> Exactly.  So I don’t think it’s a bug per se, just that no substitutes
>> were unavailable when you checked.
>
> The documentation gives me the impression that it should work without
> substitutes, when I have the package installed.

Right, it will work out-of-the-box if you have the ungrafted version in
the store.

> I think guix size should automatically search for the grafted version,
> unless there is a technical reason/another use-case for guix size that
> I'm not aware of, for which it makes more sense to use the ungrafted
> version.

‘guix size’ resorts to substitutes if it can’t find what it’s looking
for locally.

It explicitly search for the ungrafted version because substitute
servers only have the ungrafted version, and because computing the
derivation of the grafted version may require building the ungrafted on.

> If that's the case, maybe say that in the documentation?

Agreed, done in 2fd345cdfdd45dd48c9392a26793e442d680968b.

Thank you!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 14 Jun 2018 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 316 days ago.

Previous Next


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