unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: guix-devel@gnu.org
Subject: Inherit, rewrite: different binaries?
Date: Wed, 30 Sep 2020 21:43:51 +0200	[thread overview]
Message-ID: <87ft6z9hjc.fsf@gmail.com> (raw)

Dear,

Let consider this trivial package definitions:

--8<---------------cut here---------------start------------->8---
(define-module (foo)
  #:use-module (guix packages)
  #:use-module (gnu packages base))

(define-public hello-bis
  (package
    (inherit hello)
    (name "hello-bis")))

(define-public hello-ter
  ((package-input-rewriting '()
                            (lambda (name)
                              "hello-ter")
                            #:deep? #f)
   hello))
--8<---------------cut here---------------end--------------->8---

Somehow, the 3 packages ’hello’, ’hello-bis’ and ’hello-ter’ are the
same.

Using Guix 04a459a069155a6b676b6b93d7dbddb426dd0679, the binaries do not
seem the same:

--8<---------------cut here---------------start------------->8---
$ for h in hello hello-bis hello-ter; do md5sum $(guix build -L . $h)/bin/hello; done
4183f77722b91fb156403838f299cc7f  /gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10/bin/hello
4c6b9c3b6eca974c1433ec489a7abe92  /gnu/store/zpmd9s4yggrksr2rki8xkxvzp44q8zmk-hello-bis-2.10/bin/hello
0c34626a575622351678d8554b7b5310  /gnu/store/dg0lxrxc5wz3k3ljc82n5pn3y9ffg8s4-hello-ter-2.10/bin/hello
--8<---------------cut here---------------end--------------->8---


What do I miss?


All the best,
simon


             reply	other threads:[~2020-09-30 19:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-30 19:43 zimoun [this message]
2020-09-30 20:27 ` Inherit, rewrite: different binaries? Tobias Geerinckx-Rice
2020-09-30 20:29   ` zimoun

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=87ft6z9hjc.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@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).