[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/31: gnu: bootstrap: Use fall-back mechanism for bootstrap-executables
From: |
guix-commits |
Subject: |
08/31: gnu: bootstrap: Use fall-back mechanism for bootstrap-executables. |
Date: |
Tue, 24 Mar 2020 18:38:48 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit fef77109370e6bda675297f74ac1073bfe5518ec
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Mon Mar 16 08:17:16 2020 +0100
gnu: bootstrap: Use fall-back mechanism for bootstrap-executables.
* gnu/packages/bootstrap.scm (%bootstrap-executable-base-urls): New
variable.
Add lilypond.org url as a fall-back.
(bootstrap-executable-file-name): New function.
(bootstrap-executable): Use them to implement fall-back for donwloads of
bootstrap executables.
---
gnu/packages/bootstrap.scm | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm
index 0fbe8ef..63760c7 100644
--- a/gnu/packages/bootstrap.scm
+++ b/gnu/packages/bootstrap.scm
@@ -114,12 +114,17 @@
("xz"
,(base32 "09j1d69qr0hhhx4k4ih8wp00dfc9y4rp01hfg3vc15yxd0jxabh5")))))
-(define (bootstrap-executable-url program system)
- "Return the URL where PROGRAM can be found for SYSTEM."
- (string-append
- "https://git.savannah.gnu.org/cgit/guix.git/plain/gnu/packages/bootstrap/"
- system "/" program
- "?id=44f07d1dc6806e97c4e9ee3e6be883cc59dc666e"))
+(define %bootstrap-executable-base-urls
+ ;; This is where the bootstrap executables come from.
+ '("https://git.savannah.gnu.org/cgit/guix.git/plain/gnu/packages/bootstrap/"
+ "http://lilypond.org/janneke/guix/"))
+
+(define (bootstrap-executable-file-name system program)
+ "Return the FILE-NAME part of url where PROGRAM can be found for SYSTEM."
+ (match system
+ ("i586-gnu" (string-append system "/20200315/" program))
+ (_ (string-append system "/" program
+ "?id=44f07d1dc6806e97c4e9ee3e6be883cc59dc666e"))))
(define bootstrap-executable
(mlambda (program system)
@@ -140,7 +145,9 @@ for system '~a'")
((sha256)
(origin
(method url-fetch/executable)
- (uri (bootstrap-executable-url program system))
+ (uri (map (cute string-append <>
+ (bootstrap-executable-file-name system program))
+ %bootstrap-executable-base-urls))
(file-name program)
(sha256 sha256)))))))
- 09/31: gnu: bootstrap: Add support for the Hurd., (continued)
- 09/31: gnu: bootstrap: Add support for the Hurd., guix-commits, 2020/03/24
- 04/31: gnu: glibc: Add signal SA_SIGINFO support for the Hurd., guix-commits, 2020/03/24
- 21/31: daemon: Avoid kill -1 bug on the Hurd., guix-commits, 2020/03/24
- 10/31: gnu: java-jansi-native: Compile fix for the Hurd., guix-commits, 2020/03/24
- 17/31: gnu: commencement: gnumach-headers-boot0: Update to 1.8-116-g28b53508., guix-commits, 2020/03/24
- 18/31: gnu: commencement: glibc-final: Allow gnumach-headers references., guix-commits, 2020/03/24
- 25/31: gnu: pciutils: Build fixes for the Hurd., guix-commits, 2020/03/24
- 28/31: gnu: screen: Build fix for the Hurd., guix-commits, 2020/03/24
- 19/31: gnu: hurd: Update to hurd-headers version: 0.9-91a51672., guix-commits, 2020/03/24
- 01/31: gnu: grub: Support for the Hurd., guix-commits, 2020/03/24
- 08/31: gnu: bootstrap: Use fall-back mechanism for bootstrap-executables.,
guix-commits <=
- 27/31: gnu: inetutils: Support for the Hurd., guix-commits, 2020/03/24
- 03/31: gnu: glibc: Add clock patches for the Hurd., guix-commits, 2020/03/24
- 13/31: gnu: commencement: hurd-headers-boot0: Build from tarball., guix-commits, 2020/03/24
- 15/31: gnu: commencement: glibc-intermediate: Build fixes for the Hurd., guix-commits, 2020/03/24
- 20/31: daemon: Do not use clone on the Hurd., guix-commits, 2020/03/24
- 22/31: gnu: less: Build fix for the Hurd., guix-commits, 2020/03/24
- 24/31: gnu: shadow: Add linux-pam dependency for the Hurd., guix-commits, 2020/03/24
- 29/31: gnu: shadow: Build fix for the Hurd., guix-commits, 2020/03/24
- 31/31: llvm: Add support for the Hurd., guix-commits, 2020/03/24
- 07/31: gnu: bootstrap: gcc-static: Use gcc-5., guix-commits, 2020/03/24