unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#67221: Package identity transformation produces different derivation
@ 2023-11-16  3:56 Ulf Herrman
  2024-01-12 10:50 ` Simon Tournier
  0 siblings, 1 reply; 2+ messages in thread
From: Ulf Herrman @ 2023-11-16  3:56 UTC (permalink / raw)
  To: 67221

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#67221: Package identity transformation produces different derivation
  2023-11-16  3:56 bug#67221: Package identity transformation produces different derivation Ulf Herrman
@ 2024-01-12 10:50 ` Simon Tournier
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Tournier @ 2024-01-12 10:50 UTC (permalink / raw)
  To: Ulf Herrman, 67221

Hi,

On Wed, 15 Nov 2023 at 21:56, Ulf Herrman <striness@tilde.club> wrote:
> $ 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

The only difference is from the builder: %build-inputs contains

   ("util-linux" . "/gnu/store/gwx2sf5wl9bsl21lwv35g5la63bwyy95-util-linux-2.37.4-lib")

for the non-transformed ’(@ (gnu packages gtk) cairo-sans-poppler)’
package, only.

Hum, is ’package-mapping’ removing it?


> 1. (package-mapping identity #:deep? #t) *does* produce the same
>    derivation.

Well, it means that #:deep? #t adds “util-linux” in the builder.


Cheers,
simon




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-12 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16  3:56 bug#67221: Package identity transformation produces different derivation Ulf Herrman
2024-01-12 10:50 ` Simon Tournier

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).