* bug#22697: Rebuilding sources with svn-fetch won't refetch
@ 2016-02-16 13:40 Jookia
2016-02-24 13:27 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Jookia @ 2016-02-16 13:40 UTC (permalink / raw)
To: 22697
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 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.
Cheers,
Jookia.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#22697: Rebuilding sources with svn-fetch won't refetch
2016-02-16 13:40 bug#22697: Rebuilding sources with svn-fetch won't refetch Jookia
@ 2016-02-24 13:27 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-02-24 13:27 UTC (permalink / raw)
To: Jookia; +Cc: 22697
Jookia <166291@gmail.com> skribis:
> 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-output
derivations”—i.e., derivations for which the hash of the output is known
in 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 the
expected 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 the
derivation that applies the snippet to the upstream source, not the
derivation that downloads the upstream source.
Thus, ‘guix build netpbm --source --check’ rebuilds the derivation that
applies the snippet, not the derivation that does the svn checkout.
Hope this clarifies things!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-24 13:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16 13:40 bug#22697: Rebuilding sources with svn-fetch won't refetch Jookia
2016-02-24 13:27 ` 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.