* bug#31456: guix size tries to fetch substitute information for installed package. @ 2018-05-14 20:10 Martin Castillo 2018-05-14 22:22 ` Martin Castillo 0 siblings, 1 reply; 5+ messages in thread From: Martin Castillo @ 2018-05-14 20:10 UTC (permalink / raw) To: 31456 [-- Attachment #1.1: Type: text/plain, Size: 592 bytes --] 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 [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#31456: guix size tries to fetch substitute information for installed package. 2018-05-14 20:10 bug#31456: guix size tries to fetch substitute information for installed package Martin Castillo @ 2018-05-14 22:22 ` Martin Castillo 2018-05-15 8:50 ` Ludovic Courtès 0 siblings, 1 reply; 5+ messages in thread From: Martin Castillo @ 2018-05-14 22:22 UTC (permalink / raw) To: 31456 [-- Attachment #1.1: Type: text/plain, Size: 851 bytes --] 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 [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#31456: guix size tries to fetch substitute information for installed package. 2018-05-14 22:22 ` Martin Castillo @ 2018-05-15 8:50 ` Ludovic Courtès 2018-05-15 10:19 ` Martin Castillo 0 siblings, 1 reply; 5+ messages in thread From: Ludovic Courtès @ 2018-05-15 8:50 UTC (permalink / raw) To: Martin Castillo; +Cc: 31456 Hello, Martin Castillo <castilma@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’. ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#31456: guix size tries to fetch substitute information for installed package. 2018-05-15 8:50 ` Ludovic Courtès @ 2018-05-15 10:19 ` Martin Castillo 2018-05-16 13:29 ` Ludovic Courtès 0 siblings, 1 reply; 5+ messages in thread From: Martin Castillo @ 2018-05-15 10:19 UTC (permalink / raw) To: Ludovic Courtès; +Cc: 31456 [-- Attachment #1.1.1: Type: text/plain, Size: 635 bytes --] > 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 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1.1.2: 0001-doc-Add-note-to-guix-size.patch --] [-- Type: text/x-patch; name="0001-doc-Add-note-to-guix-size.patch", Size: 1050 bytes --] From 337bf474edc91c09bf172091ed2c6ec4cb6e5f94 Mon Sep 17 00:00:00 2001 From: Martin Castillo <castilma@uni-bremen.de> Date: Tue, 15 May 2018 12:14:18 +0200 Subject: [PATCH] doc: Add note to guix size * doc/guix.texi (Invoking guix size): Note that guix size ignores grafted packages in the store. --- doc/guix.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/guix.texi b/doc/guix.texi index a771ab7ae..72768b8cc 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -6945,7 +6945,8 @@ When the package passed to @command{guix size} is available in the store, @command{guix size} queries the daemon to determine its dependencies, and measures its size in the store, similar to @command{du -ms --apparent-size} (@pxref{du invocation,,, coreutils, GNU -Coreutils}). +Coreutils}). Note that @command{guix size} only looks for the +ungrafted package. When the given package is @emph{not} in the store, @command{guix size} reports information based on the available substitutes -- 2.17.0 [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#31456: guix size tries to fetch substitute information for installed package. 2018-05-15 10:19 ` Martin Castillo @ 2018-05-16 13:29 ` Ludovic Courtès 0 siblings, 0 replies; 5+ messages in thread From: Ludovic Courtès @ 2018-05-16 13:29 UTC (permalink / raw) To: Martin Castillo; +Cc: 31456-done Hello Martin, Martin Castillo <castilma@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’. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-05-16 13:30 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-05-14 20:10 bug#31456: guix size tries to fetch substitute information for installed package Martin Castillo 2018-05-14 22:22 ` Martin Castillo 2018-05-15 8:50 ` Ludovic Courtès 2018-05-15 10:19 ` Martin Castillo 2018-05-16 13:29 ` Ludovic Courtès
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.