From unknown Sun Jun 22 00:29:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27849] [PATCH 0/5] Download the Guile bootstrap tarball via a derivation Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Jul 2017 14:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27849 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 27849@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150116720419078 (code B ref -1); Thu, 27 Jul 2017 14:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jul 2017 14:53:24 +0000 Received: from localhost ([127.0.0.1]:58784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dakAC-0004xa-5x for submit@debbugs.gnu.org; Thu, 27 Jul 2017 10:53:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dakA8-0004xM-Qh for submit@debbugs.gnu.org; Thu, 27 Jul 2017 10:53:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dakA2-0004Vh-JZ for submit@debbugs.gnu.org; Thu, 27 Jul 2017 10:53:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dakA2-0004Vb-Go for submit@debbugs.gnu.org; Thu, 27 Jul 2017 10:53:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dakA1-0003YE-2P for guix-patches@gnu.org; Thu, 27 Jul 2017 10:53:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dakA0-0004UU-4R for guix-patches@gnu.org; Thu, 27 Jul 2017 10:53:09 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dak9u-0004SQ-7X; Thu, 27 Jul 2017 10:53:02 -0400 Received: from [193.50.110.224] (port=46348 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dak9t-0002Ut-Ou; Thu, 27 Jul 2017 10:53:02 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 27 Jul 2017 16:52:50 +0200 Message-Id: <20170727145250.3545-1-ludo@gnu.org> X-Mailer: git-send-email 2.13.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: -4.3 (----) 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: -4.3 (----) Hello, In Nov. 2016 we added the "download" built-in builder, meaning that the daemon can perform downloads on behalf of clients: https://bugs.gnu.org/22774 This patch series is a followup: 1. It removes backward-compatibility code in (guix download), thereby assuming guix-daemon supports the "download" built-in builder. 2. It downloads the Guile bootstrap tarball via a fixed-output derivation, and thus removes the Makefile targets that were responsible for downloading this until now. With this change, bootstrapping is somewhat simplified since now (almost) everything is a derivation. The Guile bootstrap tarballs for the supported architectures no longer need to be installed, which saves 14 MiB on the installed ‘guix’ package: --8<---------------cut here---------------start------------->8--- $ du -msc $(guix build guix)/share/guile/site/2.2/gnu/packages/bootstrap/*/guile* 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/aarch64-linux/guile-2.0.14.tar.xz 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/armhf-linux/guile-2.0.11.tar.xz 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/i686-linux/guile-2.0.9.tar.xz 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/mips64el-linux/guile-2.0.9.tar.xz 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/x86_64-linux/guile-2.0.9.tar.xz 14 totalo --8<---------------cut here---------------end--------------->8--- After that we still have a few statically-linked binaries in gnu/packages/bootstrap. Perhaps we’ll remove them eventually by adding an “extract” builder or similar. These patches are for the next ‘core-updates’. Ludo’. Ludovic Courtès (5): download: Assume the "download" built-in builder is available. gnu: guile-bootstrap: Use a fixed-output derivation to download. gnu: bootstrap: Prefer HTTPS for downloads. build: Remove code to download the Guile bootstrap tarball. gnu: guix: Factorize downloads of bootstrap tarball. Makefile.am | 3 +- build-aux/download.scm | 73 ----------------------- build-aux/test-env.in | 16 +++++- gnu/local.mk | 49 ---------------- gnu/packages/bootstrap.scm | 83 +++++++++++++++++++------- gnu/packages/package-management.scm | 43 ++++---------- guix/download.scm | 112 ++++++------------------------------ 7 files changed, 107 insertions(+), 272 deletions(-) delete mode 100644 build-aux/download.scm -- 2.13.3 From unknown Sun Jun 22 00:29:42 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#27849: closed (Re: [bug#27849] [PATCH 0/5] Download the Guile bootstrap tarball via a derivation) Message-ID: References: <87inh7uzf1.fsf@gnu.org> <20170727145250.3545-1-ludo@gnu.org> X-Gnu-PR-Message: they-closed 27849 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 27849@debbugs.gnu.org Date: Mon, 28 Aug 2017 22:00:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1503957602-20543-1" This is a multi-part message in MIME format... ------------=_1503957602-20543-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #27849: [PATCH 0/5] Download the Guile bootstrap tarball via a derivation which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 27849@debbugs.gnu.org. --=20 27849: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27849 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1503957602-20543-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 27849-done) by debbugs.gnu.org; 28 Aug 2017 21:59:26 +0000 Received: from localhost ([127.0.0.1]:59788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmS46-0005KD-3f for submit@debbugs.gnu.org; Mon, 28 Aug 2017 17:59:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmS43-0005K1-VW for 27849-done@debbugs.gnu.org; Mon, 28 Aug 2017 17:59:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmS3x-0003OF-Vx for 27849-done@debbugs.gnu.org; Mon, 28 Aug 2017 17:59:18 -0400 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmS3x-0003O5-Sb for 27849-done@debbugs.gnu.org; Mon, 28 Aug 2017 17:59:17 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=42174 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dmS3x-0001cj-AC for 27849-done@debbugs.gnu.org; Mon, 28 Aug 2017 17:59:17 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 27849-done@debbugs.gnu.org Subject: Re: [bug#27849] [PATCH 0/5] Download the Guile bootstrap tarball via a derivation References: <20170727145250.3545-1-ludo@gnu.org> Date: Mon, 28 Aug 2017 23:59:14 +0200 In-Reply-To: <20170727145250.3545-1-ludo@gnu.org> ("Ludovic \=\?utf-8\?Q\?Cour\?\= \=\?utf-8\?Q\?t\=C3\=A8s\=22's\?\= message of "Thu, 27 Jul 2017 16:52:50 +0200") Message-ID: <87inh7uzf1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (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-Debbugs-Envelope-To: 27849-done 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: -5.0 (-----) Ludovic Court=C3=A8s skribis: > This patch series is a followup: > > 1. It removes backward-compatibility code in (guix download), thereby > assuming guix-daemon supports the "download" built-in builder. > > 2. It downloads the Guile bootstrap tarball via a fixed-output > derivation, and thus removes the Makefile targets that were > responsible for downloading this until now. Pushed to a brand new =E2=80=98core-updates=E2=80=99 branch! Ludo=E2=80=99. ------------=_1503957602-20543-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Jul 2017 14:53:24 +0000 Received: from localhost ([127.0.0.1]:58784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dakAC-0004xa-5x for submit@debbugs.gnu.org; Thu, 27 Jul 2017 10:53:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dakA8-0004xM-Qh for submit@debbugs.gnu.org; Thu, 27 Jul 2017 10:53:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dakA2-0004Vh-JZ for submit@debbugs.gnu.org; Thu, 27 Jul 2017 10:53:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dakA2-0004Vb-Go for submit@debbugs.gnu.org; Thu, 27 Jul 2017 10:53:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dakA1-0003YE-2P for guix-patches@gnu.org; Thu, 27 Jul 2017 10:53:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dakA0-0004UU-4R for guix-patches@gnu.org; Thu, 27 Jul 2017 10:53:09 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dak9u-0004SQ-7X; Thu, 27 Jul 2017 10:53:02 -0400 Received: from [193.50.110.224] (port=46348 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dak9t-0002Ut-Ou; Thu, 27 Jul 2017 10:53:02 -0400 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/5] Download the Guile bootstrap tarball via a derivation Date: Thu, 27 Jul 2017 16:52:50 +0200 Message-Id: <20170727145250.3545-1-ludo@gnu.org> X-Mailer: git-send-email 2.13.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: -4.3 (----) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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: -4.3 (----) Hello, In Nov. 2016 we added the "download" built-in builder, meaning that the daemon can perform downloads on behalf of clients: https://bugs.gnu.org/22774 This patch series is a followup: 1. It removes backward-compatibility code in (guix download), thereby assuming guix-daemon supports the "download" built-in builder. 2. It downloads the Guile bootstrap tarball via a fixed-output derivation, and thus removes the Makefile targets that were responsible for downloading this until now. With this change, bootstrapping is somewhat simplified since now (almost) everything is a derivation. The Guile bootstrap tarballs for the supported architectures no longer need to be installed, which saves 14 MiB on the installed ‘guix’ package: --8<---------------cut here---------------start------------->8--- $ du -msc $(guix build guix)/share/guile/site/2.2/gnu/packages/bootstrap/*/guile* 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/aarch64-linux/guile-2.0.14.tar.xz 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/armhf-linux/guile-2.0.11.tar.xz 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/i686-linux/guile-2.0.9.tar.xz 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/mips64el-linux/guile-2.0.9.tar.xz 3 /gnu/store/gkv8zl774h2qpa89mrf6d74fry3rsnpa-guix-0.13.0-3.b547349/share/guile/site/2.2/gnu/packages/bootstrap/x86_64-linux/guile-2.0.9.tar.xz 14 totalo --8<---------------cut here---------------end--------------->8--- After that we still have a few statically-linked binaries in gnu/packages/bootstrap. Perhaps we’ll remove them eventually by adding an “extract” builder or similar. These patches are for the next ‘core-updates’. Ludo’. Ludovic Courtès (5): download: Assume the "download" built-in builder is available. gnu: guile-bootstrap: Use a fixed-output derivation to download. gnu: bootstrap: Prefer HTTPS for downloads. build: Remove code to download the Guile bootstrap tarball. gnu: guix: Factorize downloads of bootstrap tarball. Makefile.am | 3 +- build-aux/download.scm | 73 ----------------------- build-aux/test-env.in | 16 +++++- gnu/local.mk | 49 ---------------- gnu/packages/bootstrap.scm | 83 +++++++++++++++++++------- gnu/packages/package-management.scm | 43 ++++---------- guix/download.scm | 112 ++++++------------------------------ 7 files changed, 107 insertions(+), 272 deletions(-) delete mode 100644 build-aux/download.scm -- 2.13.3 ------------=_1503957602-20543-1--