From: "Ludovic Courtès" <ludovic.courtes@inria.fr>
To: bug-Guix@gnu.org
Subject: bug#38100: ‘--with-input’ causes unintended rebuilds
Date: Thu, 07 Nov 2019 13:35:15 +0100 [thread overview]
Message-ID: <87eeyjsw3g.fsf@inria.fr> (raw)
Hello,
Consider this example:
--8<---------------cut here---------------start------------->8---
$ guix build glib -nd
/gnu/store/9zz9hvzaz06f40a4cbvhskb183x676w4-glib-2.60.6.drv
$ guix build glib --with-input=inkscape=libreoffice -nd
/gnu/store/15f9jkpakmsaz8i2a0gy4kir1zyk29vi-glib-2.60.6.drv
$ guix describe
Generacio 114 Nov 02 2019 11:32:51 (nuna)
guix ab1c063
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: ab1c063ab08e069fbe62919828fa634a2e222bbf
--8<---------------cut here---------------end--------------->8---
Since GLib does not depend on Inkscape, the ‘--with-input’ flag should
have no effect: we should get the same glib derivation. However, we’re
not.
If we diff the ‘glibc-2.60.6-guile-builder’ files of each derivation, we
see that the second one has a duplicate entry:
(define %build-inputs
`(…
("python" . "/gnu/store/78w7y0lxar70j512iqw8x3nimzj10yga-python-3.7.4")
("python" . "/gnu/store/78w7y0lxar70j512iqw8x3nimzj10yga-python-3.7.4")
…))
whereas the first one doesn’t have this duplicate entry. IOW, the two
derivations are functionally equivalent but are not bit-identical.
Indeed, evaluating:
(bag-transitive-inputs
(package->bag ((package-input-rewriting '()) glib)))
shows that we have two “python” packages there that are not ‘eq?’.
To be continued…
Ludo’.
next reply other threads:[~2019-11-07 12:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-07 12:35 Ludovic Courtès [this message]
2019-11-08 21:06 ` bug#38100: ‘--with-input’ causes unintended rebuilds Ludovic Courtès
2020-09-27 21:46 ` Ludovic Courtès
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=87eeyjsw3g.fsf@inria.fr \
--to=ludovic.courtes@inria.fr \
--cc=bug-Guix@gnu.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).