From unknown Thu Jun 12 06:51:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33276: guix still building when substitute is available (or is guix pull not reproducible) Resent-From: Pjotr Prins Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Nov 2018 16:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 33276@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154143523419073 (code B ref -1); Mon, 05 Nov 2018 16:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Nov 2018 16:27:14 +0000 Received: from localhost ([127.0.0.1]:35496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJhia-0004xY-Se for submit@debbugs.gnu.org; Mon, 05 Nov 2018 11:27:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJhiZ-0004xL-2z for submit@debbugs.gnu.org; Mon, 05 Nov 2018 11:27:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJhiT-0000qQ-4Y for submit@debbugs.gnu.org; Mon, 05 Nov 2018 11:27:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41346) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJhiS-0000pe-Vr for submit@debbugs.gnu.org; Mon, 05 Nov 2018 11:27:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJhiR-0004kU-PT for bug-guix@gnu.org; Mon, 05 Nov 2018 11:27:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJhiM-0000a5-Cu for bug-guix@gnu.org; Mon, 05 Nov 2018 11:27:02 -0500 Received: from mail.thebird.nl ([94.142.245.5]:39336) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJhiJ-0000QV-47 for bug-guix@gnu.org; Mon, 05 Nov 2018 11:26:56 -0500 Received: by mail.thebird.nl (Postfix, from userid 1000) id 0CB087D46; Mon, 5 Nov 2018 17:26:51 +0100 (CET) Date: Mon, 5 Nov 2018 17:26:51 +0100 From: Pjotr Prins Message-ID: <20181105162651.wss2ex6msdbzrwir@thebird.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) I have a guix-publish server and I am building the packages with the exact same checkout of 'guix pull'. Even though the client sees the substitutes with --dry-run it still builds them. On build host (check version first) penguin2:~$ ~/.config/guix/current/bin/guix --version guix (GNU Guix) ff349415b27cc764fd7168ef35ca76c3b8b05889 Copyright (C) 2018 the Guix authors penguin2:~$ ~/.config/guix/current/bin/guix package -i perl mosh --substitute-urls="https://berlin.guixsd.org" --fallback building /gnu/store/ih5liw094mkjg1n4qakipfdgmrhvpj68-protobuf-3.5.1.drv... building /gnu/store/bhrgmk0xax0yl50whb8faankknw4z254-mosh-1.3.2.drv... The following packages will be installed: perl 5.26.1 /gnu/store/7ifc22sh86zblnzamqimgmv06idyx69v-perl-5.26.1 mosh 1.3.2 /gnu/store/5qanifm23gqxhg2bh587dzah0mf79fp0-mosh-1.3.2 On client (check version first) monza:~$ ~/.config/guix/current/bin/guix --version guix (GNU Guix) ff349415b27cc764fd7168ef35ca76c3b8b05889 Copyright (C) 2018 the Guix authors monza:~$ ~/.config/guix/current/bin/guix package -i perl mosh --substitute-urls="http://guix.genenetwork.org https://berlin.guixsd.org" --dry-run The following packages would be installed: perl 5.26.1 /gnu/store/6zz27h4l21b8f2mifrk9sidvib9cns2i-perl-5.26.1 mosh 1.3.2 /gnu/store/dkpkd7ajh3kvpzfdfacqg50x49i78x5y-mosh-1.3.2 Strangely the hash values differ but it still wants to fetch them. But when I do an actual install it rebuilds: monza:~$ ~/.config/guix/current/bin/guix package -i perl mosh --substitute-urls="http://guix.genenetwork.org https://berlin.guixsd.org" building /gnu/store/ih5liw094mkjg1n4qakipfdgmrhvpj68-protobuf-3.5.1.drv... What is causing the difference? Should the guix pull not be identical when it is the same checkout? Or am I missing something. Obviously this does not work for my deployment purposes. Or at least it is limited in use if I can't use a 'guix publish' server. Showing the faulty substitutes is also interesting behaviour... From unknown Thu Jun 12 06:51:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33276: guix still building when substitute is available (or is guix pull not reproducible) Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Nov 2018 14:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Pjotr Prins Cc: 33276@debbugs.gnu.org Received: via spool by 33276-submit@debbugs.gnu.org id=B33276.15415141154492 (code B ref 33276); Tue, 06 Nov 2018 14:22:01 +0000 Received: (at 33276) by debbugs.gnu.org; 6 Nov 2018 14:21:55 +0000 Received: from localhost ([127.0.0.1]:36188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK2Et-0001AO-01 for submit@debbugs.gnu.org; Tue, 06 Nov 2018 09:21:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK2En-00018g-J8 for 33276@debbugs.gnu.org; Tue, 06 Nov 2018 09:21:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK2Ed-0002S6-MP for 33276@debbugs.gnu.org; Tue, 06 Nov 2018 09:21:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK2EX-0002OK-27; Tue, 06 Nov 2018 09:21:35 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=33234 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gK2EU-0007ji-SB; Tue, 06 Nov 2018 09:21:32 -0500 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20181105162651.wss2ex6msdbzrwir@thebird.nl> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Brumaire an 227 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 06 Nov 2018 15:21:29 +0100 In-Reply-To: <20181105162651.wss2ex6msdbzrwir@thebird.nl> (Pjotr Prins's message of "Mon, 5 Nov 2018 17:26:51 +0100") Message-ID: <877ehq1e3a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, Pjotr Prins skribis: > I have a guix-publish server and I am building the packages with the > exact same checkout of 'guix pull'. Even though the client sees the > substitutes with --dry-run it still builds them. > > On build host (check version first) > > penguin2:~$ ~/.config/guix/current/bin/guix --version > guix (GNU Guix) ff349415b27cc764fd7168ef35ca76c3b8b05889 > > Copyright (C) 2018 the Guix authors > > penguin2:~$ ~/.config/guix/current/bin/guix package -i perl mosh --subst= itute-urls=3D"https://berlin.guixsd.org" --fallback > > building /gnu/store/ih5liw094mkjg1n4qakipfdgmrhvpj68-protobuf-3.5.1.drv.= .. > building /gnu/store/bhrgmk0xax0yl50whb8faankknw4z254-mosh-1.3.2.drv... > The following packages will be installed: > perl 5.26.1 /gnu/store/7ifc22sh86zblnzamqimgmv06idyx69v-perl-5.26.1 > mosh 1.3.2 /gnu/store/5qanifm23gqxhg2bh587dzah0mf79fp0-mosh-1.3.2 > > On client (check version first) > > monza:~$ ~/.config/guix/current/bin/guix --version > guix (GNU Guix) ff349415b27cc764fd7168ef35ca76c3b8b05889 > > Copyright (C) 2018 the Guix authors > > monza:~$ ~/.config/guix/current/bin/guix package -i perl mosh --substitu= te-urls=3D"http://guix.genenetwork.org https://berlin.guixsd.org" --dry-run > The following packages would be installed: > perl 5.26.1 /gnu/store/6zz27h4l21b8f2mifrk9sidvib9cns2i-perl-5.26.1 > mosh 1.3.2 /gnu/store/dkpkd7ajh3kvpzfdfacqg50x49i78x5y-mosh-1.3.2 > > Strangely the hash values differ but it still wants to fetch them. But wh= en I do an actual install it rebuilds: When you=E2=80=99re using --dry-run, what gets displayed is the file names = of the ungrafted packages. That=E2=80=99s why you see different file names in= the first case. As to why you=E2=80=99re not getting substitutes, it could be missing authorization, etc. What does =E2=80=98guix publish=E2=80=99 display? Thanks, Ludo=E2=80=99. From unknown Thu Jun 12 06:51:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#33276: guix still building when substitute is available (or is guix pull not reproducible) Resent-From: Pjotr Prins Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 08 Nov 2018 18:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 33276@debbugs.gnu.org, Pjotr Prins Received: via spool by 33276-submit@debbugs.gnu.org id=B33276.154170184418388 (code B ref 33276); Thu, 08 Nov 2018 18:31:01 +0000 Received: (at 33276) by debbugs.gnu.org; 8 Nov 2018 18:30:44 +0000 Received: from localhost ([127.0.0.1]:41895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKp4k-0004mU-7Z for submit@debbugs.gnu.org; Thu, 08 Nov 2018 13:30:42 -0500 Received: from mail.thebird.nl ([94.142.245.5]:39582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKp4i-0004mL-EX for 33276@debbugs.gnu.org; Thu, 08 Nov 2018 13:30:40 -0500 Received: by mail.thebird.nl (Postfix, from userid 1000) id 37C817E14; Thu, 8 Nov 2018 19:30:39 +0100 (CET) Date: Thu, 8 Nov 2018 19:30:39 +0100 From: Pjotr Prins Message-ID: <20181108183039.a6drroqcswwd7rl5@thebird.nl> References: <20181105162651.wss2ex6msdbzrwir@thebird.nl> <877ehq1e3a.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <877ehq1e3a.fsf@gnu.org> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Nov 06, 2018 at 03:21:29PM +0100, Ludovic Courtès wrote: > As to why you’re not getting substitutes, it could be missing > authorization, etc. What does ‘guix publish’ display? Substitutes work fine for normal package install. No problem with the setup. No, this is specific to guix pull with a commit flag. Did you try this yourself? It is reproducible as a problem. Could it theoretically be possible that guix pull with a specific commit set done at different time points leads to a different build? I.e., is the underlying build system not a variable (bootstrap and all that)? When I have time I'll try that guix pull twice. See what happens. Pj.