From: Leo Famulari <leo@famulari.name>
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/1] gnu: eudev: Update home-page URL.
Date: Sun, 27 Dec 2015 19:43:42 -0500 [thread overview]
Message-ID: <20151228004342.GA14699@jasmine> (raw)
In-Reply-To: <87k2nzq4hn.fsf@netris.org>
On Sun, Dec 27, 2015 at 10:46:12AM -0500, Mark H Weaver wrote:
> Leo Famulari <leo@famulari.name> writes:
>
> > On Fri, Dec 25, 2015 at 09:11:04AM -0500, Mark H Weaver wrote:
> >> Leo Famulari <leo@famulari.name> writes:
> >> > * gnu/packages/linux.scm (eudev)[home-page]: Add up-to-date URL.
> >>
> >> Looks good, please push!
> >>
> >> This won't require any rebuilds, because the 'home-page' field is not
> >> included in the generated derivations.
> >
> > Ah, right, of course! Because it doesn't affect the sha256 hash of the
> > source.
>
> It's true that it doesn't affect the hash of the source, but that would
> not be sufficient to ensure no rebuilds. Adding a new phase would not
> change the hash of the source, but it would affect the _derivation_ (as
> serialized in the *.drv file) and thus would require rebuilds. The
> 'home-page' field is not included in the derivation.
>
> > And the same for the source URI?
>
> Changing the source URI affects the derivation that downloads the
> source, however, that derivation is of a special kind called a "fixed
> output derivation", which means that the sha256 hash of the output is
> known in advance. Such derivations do not need to be rebuilt even if
> the derivation changes, as long as the hash stays the same, because it
> is presumed that the output would not change.
Thank you for taking the time to explain this. For everyone reading
along, there is some more information about fixed-output derivations in
the manual here:
https://www.gnu.org/software/guix/manual/html_node/Derivations.html
prev parent reply other threads:[~2015-12-28 0:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-24 6:41 [PATCH 0/1] Update eudev home-page URL Leo Famulari
2015-12-24 6:41 ` [PATCH 1/1] gnu: eudev: Update " Leo Famulari
2015-12-25 14:11 ` Mark H Weaver
2015-12-26 4:42 ` Leo Famulari
2015-12-26 6:01 ` Leo Famulari
2015-12-27 15:46 ` Mark H Weaver
2015-12-28 0:43 ` Leo Famulari [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151228004342.GA14699@jasmine \
--to=leo@famulari.name \
--cc=guix-devel@gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).