unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Ulf Herrman <striness@tilde.club>
To: 67221@debbugs.gnu.org
Subject: bug#67221: Package identity transformation produces different derivation
Date: Wed, 15 Nov 2023 21:56:06 -0600	[thread overview]
Message-ID: <87leaye4h5.fsf@tilde.club> (raw)

[-- Attachment #1: Type: text/plain, Size: 799 bytes --]

$ guix build --no-grafts --derivations -e \
     '(begin
       (use-modules (guix packages) (gnu packages gtk))
       ((package-mapping identity) cairo-sans-poppler))' \
       -e '(@ (gnu packages gtk) cairo-sans-poppler)'
=>
/gnu/store/51hwf2mc2ig76a3nm86msv4z9az3s0j3-cairo-1.16.0.drv
/gnu/store/q78ziqcg2dvi2lzj18hzdld85bcydzwk-cairo-1.16.0.drv

Some interesting notes:

1. (package-mapping identity #:deep? #t) *does* produce the same
   derivation.
2. bag->derivation's `delete-duplicates' call uses `input=?', but its
   input objects in the second tuple position are all <gexp-input>s
   produced by `expand-input'.  Consequently, `input=?' will fall back
   to using `equal?' instead of `derivation=?'.  I don't know to what
   extent this has to do with the observed bug.

- ulfvonbelow

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

             reply	other threads:[~2023-11-16  4:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16  3:56 Ulf Herrman [this message]
2024-01-12 10:50 ` bug#67221: Package identity transformation produces different derivation Simon Tournier

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=87leaye4h5.fsf@tilde.club \
    --to=striness@tilde.club \
    --cc=67221@debbugs.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).