From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OAqkHgfgdF8oSwAA0tVLHw (envelope-from ) for ; Wed, 30 Sep 2020 19:44:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YFOMGgfgdF8oOQAAB5/wlQ (envelope-from ) for ; Wed, 30 Sep 2020 19:44:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E7E9794014E for ; Wed, 30 Sep 2020 19:44:06 +0000 (UTC) Received: from localhost ([::1]:45022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNi1F-0001ID-F9 for larch@yhetil.org; Wed, 30 Sep 2020 15:44:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNi17-0001I5-4m for guix-devel@gnu.org; Wed, 30 Sep 2020 15:43:57 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:46223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNi15-00067q-JD for guix-devel@gnu.org; Wed, 30 Sep 2020 15:43:56 -0400 Received: by mail-wr1-x435.google.com with SMTP id o5so3088227wrn.13 for ; Wed, 30 Sep 2020 12:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ffd3M+3VMuMUoyoBttPp6U3ChQZ4/hlx5dmYNUS/aHQ=; b=tbet+D2S79Bt947wdBrsEnx1QfjvN0z6PRi9NpT9y7d6mloSDVv+CJ9VqkwjDr/ElB EbPVNOfR7VeOJzzGb4bbHH5nRK8XJnM9x48mShbaBaCNGbmKN9GnuIG1mCP9D52kycjk EQNwpF5KYEmMxTwJnCQPxdjSsbnaToNTUIu6yYpMNxbLEKjApotsSeaNnVGAoS0xuuee 4GceYb46TCcMu1Vt6k4qcA8n18eFbwUD9IcAuW/JAqVYuSIdCyQkvYqNl/qvkcW1wx7e 78S28lT5QxYv6qmSlVjUsM3WPhFc3K0uFCR+f1gsa/zf4QXp7LnXijdDFkH7wNtvx3lq UR+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ffd3M+3VMuMUoyoBttPp6U3ChQZ4/hlx5dmYNUS/aHQ=; b=SKrh+YuEvtN/e/9Z1NDMJwZEtuU/apOxkxF7/YpNN+8/Ie1STlGHzKxI6ZLuyiMPo2 LXkipdcDcWq6gAlh7909ybmcjgWY0Uta7mcltsj/P6QZe+vx7u4IvSfDOop7MUYC/bRo rotnNyFwQOqomJ3sjJMY2pIcMnPvGYIUo7n9d9zVwAI5aojJfm9/XgxL+CAyHCKaTMn0 OIXisRBj9kE126QEY3bWJrIVoyg6sHHsEW1c6darLbzmk15PvmGx4ZLYl9XaAOnOUFB4 BiSXhuZKqPxz/ZR9Jx5lcicmq0Z4TR/hxj7usrWDgyi0U7fdFcgZuavx80AAqWS6YOVE 21nw== X-Gm-Message-State: AOAM531SFOsO1yonjLoiDYq5/qguZaWazHfc8/WjJYNIOio8maUEOx0G nGbboZq/IzasFBknR4dTVNF8wXxngvdGBA== X-Google-Smtp-Source: ABdhPJyKMr6XO7jfwFmGcI3wkv2OnfOBW6vwteHmX2MC/nKQ6eCcBGztSk8TYvCKz7InpnckMfONAw== X-Received: by 2002:adf:ed09:: with SMTP id a9mr4697677wro.407.1601495033409; Wed, 30 Sep 2020 12:43:53 -0700 (PDT) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id m13sm4795555wrr.74.2020.09.30.12.43.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 12:43:52 -0700 (PDT) From: zimoun To: guix-devel@gnu.org Subject: Inherit, rewrite: different binaries? Date: Wed, 30 Sep 2020 21:43:51 +0200 Message-ID: <87ft6z9hjc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=tbet+D2S; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: MpUOiJs0Emmx 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 =E2=80=99hello=E2=80=99, =E2=80=99hello-bis=E2=80= =99 and =E2=80=99hello-ter=E2=80=99 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/h= ello; done 4183f77722b91fb156403838f299cc7f /gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx= 1h-hello-2.10/bin/hello 4c6b9c3b6eca974c1433ec489a7abe92 /gnu/store/zpmd9s4yggrksr2rki8xkxvzp44q8z= mk-hello-bis-2.10/bin/hello 0c34626a575622351678d8554b7b5310 /gnu/store/dg0lxrxc5wz3k3ljc82n5pn3y9ffg8= s4-hello-ter-2.10/bin/hello --8<---------------cut here---------------end--------------->8--- What do I miss? All the best, simon