From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UBgdNBSKQWF5VAEAgWs5BA (envelope-from ) for ; Wed, 15 Sep 2021 07:52:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cI7bLxSKQWEUHAAAB5/wlQ (envelope-from ) for ; Wed, 15 Sep 2021 05:52:20 +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 1F2AE26372 for ; Wed, 15 Sep 2021 07:52:20 +0200 (CEST) Received: from localhost ([::1]:42842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQNqE-0000QJ-05 for larch@yhetil.org; Wed, 15 Sep 2021 01:52:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQNpz-0000Q9-34 for bug-guix@gnu.org; Wed, 15 Sep 2021 01:52:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQNpy-0001HU-Rj for bug-guix@gnu.org; Wed, 15 Sep 2021 01:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQNpy-0000mR-GI for bug-guix@gnu.org; Wed, 15 Sep 2021 01:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50597: different fixed-output when using =?UTF-8?Q?=E2=80=99--with-source=E2=80=99?= transformation Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 15 Sep 2021 05:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50597 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50597@debbugs.gnu.org X-Debbugs-Original-To: Bug Guix Received: via spool by submit@debbugs.gnu.org id=B.16316851122980 (code B ref -1); Wed, 15 Sep 2021 05:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Sep 2021 05:51:52 +0000 Received: from localhost ([127.0.0.1]:50581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQNpn-0000m0-QJ for submit@debbugs.gnu.org; Wed, 15 Sep 2021 01:51:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:46250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQNpl-0000ls-H5 for submit@debbugs.gnu.org; Wed, 15 Sep 2021 01:51:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQNpl-0000Q3-8t for bug-guix@gnu.org; Wed, 15 Sep 2021 01:51:49 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:33664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQNpa-0000wY-Rp for bug-guix@gnu.org; Wed, 15 Sep 2021 01:51:48 -0400 Received: by mail-wr1-x42d.google.com with SMTP id t18so1996466wrb.0 for ; Tue, 14 Sep 2021 22:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=5QT7DiKBHUgV/rwJu7/p4XVqbULr0QezsjCjHnhPKhw=; b=gIbPUpxAmhJtXbewlZpNyRvziPMHEPNac1q78pHR2K6DOHEu9CibOonwT0js+DQV3l XM9HKKPmY6vAWqM3Nx16HUVbKQjwNGWs6YjbCPxEe1+J8ujS2wYMIu2mob4KFVrh3sTs nZQDfnKZiC/cogw/R2xlt1TXTxGh1rg8qGnGTReMyBot1Q7pRBkL7RT0/TZxqHPUevE8 PVUGbYSK62VHrB0fPvnz41Cz58jbKlkNtPduG22Wk/Kbm2uepRji7Fm7OvN5k3KYmlIM mhjSGZpKmLhS6tsFEswqlepbyP2OsdujrWP0VkfuE9WBZEZ8RLTHLlX66il89cQRDuQZ AxZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=5QT7DiKBHUgV/rwJu7/p4XVqbULr0QezsjCjHnhPKhw=; b=LfODnec66+4SpnC7UqHOylhHz7dn9UvQP2o5USxdJSU0wvWf5GlfJ6hfcuU+K1q3UI gL7kI4KwWamSN8RnLPVPYtcy+HM1n9tqKtvCE33RkZDVm7r8ezUsLgtzGgs6+TU1YAhN 98dPWbgT2Pr1DTdVv4+eWiTPj05L6AzQqIL+rPYqSfFpcvEVbgI7R2Lvybu7nUXRAvMK QOKqJXJG96yr43HHH1m7VI3yGDqA+3yKnLPLmLWPrFcd/nuQAncHg6bzKT5IMtm1OCf4 9SCPrE9/0YMK25iJCwVFeluFZZCk3RGcVO4YG68tsX/41vDnupedVYG2Ku62S6yIq/2e lFIA== X-Gm-Message-State: AOAM532S3dcvqaHVaTFmG3OserMRcxHyTm06jr5lWDdm8R6hB+vr+wD/ xELwFKvpc+VJyz+sH+wOsaJRUMaRwpnzAw== X-Google-Smtp-Source: ABdhPJzBXz0E/Tz8GEHYdLyA5eHlBJWvklR8o6yBy/vDs2MdRpFajC8s1SiXd7QoLXiIgTJ5om4eHg== X-Received: by 2002:a5d:4608:: with SMTP id t8mr2887746wrq.136.1631685096563; Tue, 14 Sep 2021 22:51:36 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z5sm3123546wmf.33.2021.09.14.22.51.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 22:51:36 -0700 (PDT) From: zimoun Date: Wed, 15 Sep 2021 07:44:36 +0200 Message-ID: <86zgsecrzv.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::42d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42d.google.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_QUOTING=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631685140; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5QT7DiKBHUgV/rwJu7/p4XVqbULr0QezsjCjHnhPKhw=; b=YbOfwSR+K274zC6RDq3id1FfWC50GGfRa8Y++uXt/PLJNpfkr3QwlV2ii93+i+sp5kIM6d ek+2FvQK8yb4tkqVKpeB73bklDqvWZnaM/FG3MZfIYIUpv4Ga1W/ramtXuJS8AwPlj4RSJ 8N7kApctaFEQ0+MLX2ZoYxbi2hIC0E9bnUrksP4kG06VQDKqsbmQtaZqVt9e9NrL2pH0gQ 8lFCC3T5NrqYSrfCT1lhvlgVbiSxyq1bQK1FEj1aUKvWkEKbH6ySZCD0YCVhBqDS4jirGa QBrptYx5noljnD/Crumqu3W6ZKuwb6e80/D4md9oJrmkrJ7rj1hrXrcXPYdF0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631685140; a=rsa-sha256; cv=none; b=e7YFPw0naPHVdqt2pJkly94/RlXZCijZXJiVQUOxT4YPx7OCWnyII9Rns3ESPEspbaFi4p bmuJy7nwtxJRYdLVLbvui3KLbFM0dn3Fn5flE6eDI9GwtxwLHX6YgLTffco7thD2VqrLA8 0IijETHWpeI9M5XQRiiheUIRGyiAxcKeT/mqZFbOXmiiJVTQjUX0yR69JlYbJLJIgB24+J +cAD4A/uxiLu9tQXTyFOix7XuKlOlyytPzoV9hVArJmyQHeQ6Lgd4UVS0lMQURfl1UnxZj HH2HiGxpSeDIcXZE1DpEl/S7zVBaaUshBULqP3VDO2tNLQs0oDobYswcqBPJhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gIbPUpxA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gIbPUpxA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 1F2AE26372 X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1kOAQRaUiP5c Hi, If the package source tarball is provided to =E2=80=99--with-source=E2=80= =99, then the hash differs. I would expect a fixed point. Let investigate: --8<---------------cut here---------------start------------->8--- $ guix build hello@2.10 --with-source=3Dhello=3Dhttps://ftpmirror.gnu.org/g= nu/hello/hello-2.10.tar.gz /gnu/store/zfwhbbknkhxi3yqmp0qgh1l1crljgbm6-hello-2.10 $ guix build hello@2.10=20 /gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10 --8<---------------cut here---------------end--------------->8--- Where https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz is an official mirror. I expect the same store item. Why are they different? It is because the derivations are different. The first call contains the source tarball as an =E2=80=9Cinput=E2=80=9D; t= hat=E2=80=99s fine. The second call contains the source tarball as a derivation; again that=E2=80=99s fine. The corresponding first and second derivations are: --8<---------------cut here---------------start------------->8--- Derive ([("out","/gnu/store/zfwhbbknkhxi3yqmp0qgh1l1crljgbm6-hello-2.10","","")] ,[("/gnu/store/101ny738l311p4fm3cas7jgnkzagjv6a-module-import-compiled.drv= ",["out"]) [...] ,("/gnu/store/z4s27gwacbw8f38andfsh21r8v330dag-xz-5.2.4.drv",["out"])] ,["/gnu/store/8a0wry8cvr405ha8d8bpjyzj5dzghigd-module-import", "/gnu/store/chariqd6k0sli3s7vcl4q3al0crirz5v-hello-2.10.tar.gz", "/gnu/store/rndq9g8877l29ha41dvsl3aj1z0gw0ng-hello-2.10-guile-builder"] [...] --8<---------------cut here---------------end--------------->8--- and --8<---------------cut here---------------start------------->8--- Derive ([("out","/gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10","","")] ,[("/gnu/store/101ny738l311p4fm3cas7jgnkzagjv6a-module-import-compiled.drv= ",["out"]) ,("/gnu/store/1a7xfcqcxj0pqi4f81x1agcxa46v2bbm-hello-2.10.tar.gz.drv",["= out"]) [...] ,("/gnu/store/z4s27gwacbw8f38andfsh21r8v330dag-xz-5.2.4.drv",["out"])] ,["/gnu/store/8a0wry8cvr405ha8d8bpjyzj5dzghigd-module-import", "/gnu/store/kql8b2hbsabcmany4m3hfm3wzdiymliy-hello-2.10-guile-builder"] [...] --8<---------------cut here---------------end--------------->8--- Therefore, I understand why the two store items have different hashes. Although, it should be better that the derivations would be the same; another story. :-) What puzzled me are the corresponding =E2=80=99guile-builder=E2=80=99s: --8<---------------cut here---------------start------------->8--- (define %build-inputs (quote (("source" . "/gnu/store/chariqd6k0sli3s7vcl4q3al0crirz5v-hello-2.10.t= ar.gz") --8<---------------cut here---------------end--------------->8--- and --8<---------------cut here---------------start------------->8--- (define %build-inputs (quote (("source" . "/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.t= ar.gz") --8<---------------cut here---------------end--------------->8--- but these 2 items have the same hash: --8<---------------cut here---------------start------------->8--- $ guix hash /gnu/store/chariqd6k0sli3s7vcl4q3al0crirz5v-hello-2.10.tar.gz 0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i $ guix hash /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz 0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i --8<---------------cut here---------------end--------------->8--- Why? It is fixed-output so I was expecting the same thing. And the same as: --8<---------------cut here---------------start------------->8--- $ guix download https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz Starting download of /tmp/guix-file.qkhxkp >From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz... following redirection to `https://mirrors.sarata.com/gnu/hello/hello-2.10.t= ar.gz'... =E2=80=A610.tar.gz 709KiB 549Ki= B/s 00:01 [##################] 100.0% /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz 0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i --8<---------------cut here---------------end--------------->8--- Why the store item of source tarball is it different when applying the transformation? Maxime provided a clue [1]. All the best, simon 1: