[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
169/211: bootstrap: Evaluate %bootstrap-inputs+toolchain at build time.
From: |
Jan Nieuwenhuizen |
Subject: |
169/211: bootstrap: Evaluate %bootstrap-inputs+toolchain at build time. |
Date: |
Sat, 8 Sep 2018 11:09:51 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 8fd0e35b504de7cf6d474cfc7c67f4d4fc0d6ab4
Author: Jan Nieuwenhuizen <address@hidden>
Date: Fri Aug 31 15:29:50 2018 +0200
bootstrap: Evaluate %bootstrap-inputs+toolchain at build time.
Turn '%bootstrap-inputs+toolchain' into a thunk so that (%current-system)
is evaluated at the right time.
---
gnu/packages/commencement.scm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 3642c00..2cf86ba 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1686,7 +1686,7 @@ exec " gcc "/bin/" program
(system* "./configure"
(string-append "--prefix=" out))))))))))))
-(define %bootstrap-inputs+toolchain
+(define (%bootstrap-inputs+toolchain)
(append (match (%current-system)
("i686-linux" `(;;("libc" ,glibc-mesboot) ; FIXME: make usable for
unpatched gnu-make-boot0, *-boot0
("libc" ,%bootstrap-glibc)
@@ -1719,13 +1719,13 @@ exec " gcc "/bin/" program
(install-file "make" bin)
#t))))))))
(native-inputs '()) ; no need for 'pkg-config'
- (inputs %bootstrap-inputs+toolchain))))
+ (inputs (%bootstrap-inputs+toolchain)))))
(define diffutils-boot0
(package-with-bootstrap-guile
(let ((p (package-with-explicit-inputs diffutils
`(("make" ,gnu-make-boot0)
- ,@%bootstrap-inputs+toolchain)
+ ,@(%bootstrap-inputs+toolchain))
#:guile %bootstrap-guile)))
(package (inherit p)
(name "diffutils-boot0")
@@ -1739,7 +1739,7 @@ exec " gcc "/bin/" program
(name "findutils-boot0"))
`(("make" ,gnu-make-boot0)
("diffutils" ,diffutils-boot0) ; for tests
- ,@%bootstrap-inputs+toolchain)
+ ,@(%bootstrap-inputs+toolchain))
(current-source-location)
#:guile %bootstrap-guile)))
@@ -1747,7 +1747,7 @@ exec " gcc "/bin/" program
(package-with-bootstrap-guile
(let ((p (package-with-explicit-inputs file
`(("make" ,gnu-make-boot0)
- ,@%bootstrap-inputs+toolchain)
+ ,@(%bootstrap-inputs+toolchain))
#:guile %bootstrap-guile)))
(package
(inherit p)
@@ -1779,7 +1779,7 @@ exec " gcc "/bin/" program
("diffutils" ,diffutils-boot0)
("findutils" ,findutils-boot0)
("file" ,file-boot0)
- ,@%bootstrap-inputs+toolchain))
+ ,@(%bootstrap-inputs+toolchain)))
(define* (boot-triplet #:optional (system (%current-system)))
;; Return the triplet used to create the cross toolchain needed in the
- 114/211: gnu: gcc-core-mesboot: Package with bootstrap-guile., (continued)
- 114/211: gnu: gcc-core-mesboot: Package with bootstrap-guile., Jan Nieuwenhuizen, 2018/09/08
- 128/211: gnu: gcc-mesboot: Revise dependencies., Jan Nieuwenhuizen, 2018/09/08
- 77/211: Revert "gnu: gcc-boot: Update to 3.0.", Jan Nieuwenhuizen, 2018/09/08
- 157/211: Revert "gnu: Add %make-static, %make-static-stripped, %make-bootstrap-tarball.", Jan Nieuwenhuizen, 2018/09/08
- 150/211: gnu: Add make-mesboot 3.79., Jan Nieuwenhuizen, 2018/09/08
- 119/211: gnu: %mes-seed: Update for mes 0.16.1., Jan Nieuwenhuizen, 2018/09/08
- 153/211: bootstrap: Remove dependency on %bootstrap-make, %bootstrap-diffutils., Jan Nieuwenhuizen, 2018/09/08
- 137/211: gnu: tcc-boot: Use gnu-build-system., Jan Nieuwenhuizen, 2018/09/08
- 188/211: gnu: binutils-mesboot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 184/211: gnu: mesboot-headers: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 169/211: bootstrap: Evaluate %bootstrap-inputs+toolchain at build time.,
Jan Nieuwenhuizen <=
- 165/211: Revert "gnu: make-boot0: Set LOADLIBES for i686-linux.", Jan Nieuwenhuizen, 2018/09/08
- 120/211: gnu: mes-boot: Update to 0.16.1; revise dependencies., Jan Nieuwenhuizen, 2018/09/08
- 123/211: gnu: binutils-mesboot0: Revise dependencies., Jan Nieuwenhuizen, 2018/09/08
- 142/211: gnu: Add %linux-libre-headers-stripped, %linux-libre-headers-bootstrap-tarball., Jan Nieuwenhuizen, 2018/09/08
- 155/211: Revert "gnu: Add %diffutils-static, %diffutils-static-stripped, %diffutils-bootstrap-tarball.", Jan Nieuwenhuizen, 2018/09/08
- 130/211: gnu: %tinycc-seed: Update for mes 0.17., Jan Nieuwenhuizen, 2018/09/08
- 141/211: gnu: Add %bootstrap-diffutils., Jan Nieuwenhuizen, 2018/09/08
- 112/211: gnu: tcc-boot: Package with bootstrap-guile., Jan Nieuwenhuizen, 2018/09/08
- 159/211: gcc-mesboot: use package-full-name "-" :-), Jan Nieuwenhuizen, 2018/09/08
- 140/211: gnu: Add %diffutils-static, %diffutils-static-stripped, %diffutils-bootstrap-tarball., Jan Nieuwenhuizen, 2018/09/08