Rebuilding sources with svn-fetch won't refetch

  • Done
  • quality assurance status badge
Details
2 participants
  • Jookia
  • Ludovic Courtès
Owner
unassigned
Submitted by
Jookia
Severity
normal

Debbugs page

J
J
Jookia wrote on 16 Feb 2016 05: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 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.
L
L
Ludovic Courtès wrote on 24 Feb 2016 05: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-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’.
L
L
Ludovic Courtès wrote on 3 May 2016 13:23
control message for bug #22697
(address . control@debbugs.gnu.org)
878tzqki02.fsf@gnu.org
tags 22697 notabug
close 22697
?
Your comment

This issue is archived.

To comment on this conversation send an email to 22697@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 22697
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch