Rebuilding sources with svn-fetch won't refetch

DoneSubmitted by Jookia.
Details
2 participants
  • Jookia
  • Ludovic Courtès
Owner
unassigned
Severity
normal
J
J
Jookia wrote on 16 Feb 2016 14:40
(address . bug-guix@gnu.org)
20160216134002.GA13560@novena-choice-citizen.lan
Hey there,
After building netpbm from source using no substitutes, running this command:
% guix build --source netpbm --check
Will use the checked out source files in /gnu/store rather than redownloadingfrom the project SVN repostiory. This is unlike this command:
% guix build --source guix --check
Which will refetch Guix from the project's Git repository.
Cheers,Jookia.
L
L
Ludovic Courtès wrote on 24 Feb 2016 14:27
(name . Jookia)(address . 166291@gmail.com)(address . 22697@debbugs.gnu.org)
87k2lufdc6.fsf@gnu.org
Jookia <166291@gmail.com> skribis:
Toggle quote (11 lines)> After building netpbm from source using no substitutes, running this command:>> % guix build --source netpbm --check>> Will use the checked out source files in /gnu/store rather than redownloading> from the project SVN repostiory. This is unlike this command:>> % guix build --source guix --check>> Which will refetch Guix from the project's Git repository.
Sources without patches/snippets translate to “fixed-outputderivations”—i.e., derivations for which the hash of the output is knownin advance.
Thus, it doesn’t make sense to --check the result of such derivations:if the result available, it’s necessarily correct (IOW, it has theexpected hash.)
Now, although this doesn’t make much sense, the daemon supports it(which is fine.)
In the case of netpbm, there’s a difference: netpbm’s origin has a‘snippet’, so what ‘guix build --source netpbm’ returns is thederivation that applies the snippet to the upstream source, not thederivation that downloads the upstream source.
Thus, ‘guix build netpbm --source --check’ rebuilds the derivation thatapplies the snippet, not the derivation that does the svn checkout.
Hope this clarifies things!
Ludo’.
L
L
Ludovic Courtès wrote on 3 May 2016 22:23
control message for bug #22697
(address . control@debbugs.gnu.org)
878tzqki02.fsf@gnu.org
tags 22697 notabugclose 22697
?
Your comment

This issue is archived.

To comment on this conversation send email to 22697@debbugs.gnu.org