[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/211: gnu: binutils-boot0: Inject AR, LD from bootstrap-binaries.
From: |
Jan Nieuwenhuizen |
Subject: |
98/211: gnu: binutils-boot0: Inject AR, LD from bootstrap-binaries. |
Date: |
Sat, 8 Sep 2018 11:09:36 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit fe74bd11ab0671967a96a79b745c7a5b8a91ebde
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sat Jun 23 14:28:55 2018 +0200
gnu: binutils-boot0: Inject AR,LD from bootstrap-binaries.
* gnu/packages/mes.scm (binutils-boot0): Inject AR,LD from bootstrap
binaries.
---
gnu/packages/mes.scm | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 9405d29..50b29d1 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -44,7 +44,6 @@
#:use-module (guix gexp))
(define %fake-bootstrap? #f) ; cheat using Guile instead of Mes for speed-up?
-(define %cheat-binutils? #t) ; cheat using binutils-boot0 compiled with
current tool-chain
(define %mescc-tools-seed
(let ((commit"29aae8c72e195cbb2f965f05a997b984a4f158fb"))
@@ -634,11 +633,10 @@ standard.")
(system* "./configure"
(string-append "--prefix=" out)))))))))))
-(define-public binutils-boot0-real
+(define-public binutils-boot0
(package
(inherit binutils)
- (name (if %cheat-binutils? "binutils-boot0-real"
- "binutils-boot0"))
+ (name "binutils-boot0")
(version "2.20.1a")
(source (origin
(method url-fetch)
@@ -709,15 +707,20 @@ standard.")
"--disable-werror"
"--host=i386-unknown-linux"
"--target=i386-unknown-linux"
- (string-append "--prefix=" out))))))))))))
+ (string-append "--prefix=" out)))))))
+ (add-after 'build 'cheat:inject-AR,LD
+ (lambda* _
+ (let ((binutils (assoc-ref %build-inputs "binutils")))
+ ;; cheat: AR and LD are buggy in bootstrap build
+ (copy-file (string-append binutils "/bin/ar") "binutils/ar")
+ (copy-file (string-append binutils "/bin/ld")
"ld/ld-new")))))))))
(define-public binutils-boot0-cheat
(let* ((triplet "i686-unknown-linux-gnu")
(tool-prefix (string-append triplet "-")))
(package
(inherit binutils-boot0-real)
- (name (if %cheat-binutils? "binutils-boot0"
- "binutils-boot0-cheat"))
+ (name "binutils-boot0-cheat")
(supported-systems '("i686-linux"))
(native-inputs `(("flex" ,flex) ; cheat
("binutils" ,(cross-binutils triplet))
@@ -793,13 +796,9 @@ standard.")
"--target=i386-unknown-linux"
(string-append "--prefix="
out)))))))))))))
-(define-public binutils-boot0
- (if %cheat-binutils? binutils-boot0-cheat
- binutils-boot0-real))
-
(define-public binutils-boot
(package
- (inherit binutils-boot0-real)
+ (inherit binutils-boot0)
(name "binutils-boot")
(native-inputs `(("flex" ,flex) ; cheat
("glibc" ,glibc-boot)
- 142/211: gnu: Add %linux-libre-headers-stripped, %linux-libre-headers-bootstrap-tarball., (continued)
- 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
- 129/211: gnu: %mes-seed: Update for mes 0.17., Jan Nieuwenhuizen, 2018/09/08
- 110/211: Revert "REMOVEME: %fake-bootstrap => #t.", Jan Nieuwenhuizen, 2018/09/08
- 104/211: gnu: gcc-mesboot: Rename from gcc-boot., Jan Nieuwenhuizen, 2018/09/08
- 98/211: gnu: binutils-boot0: Inject AR, LD from bootstrap-binaries.,
Jan Nieuwenhuizen <=
- 94/211: gnu: tcc-boot0: Update for mes 0.16., Jan Nieuwenhuizen, 2018/09/08
- 93/211: gnu: Add tcc-boot 0.9.27., Jan Nieuwenhuizen, 2018/09/08
- 100/211: gnu: m4:mesboot: Rename from m4-boot., Jan Nieuwenhuizen, 2018/09/08
- 63/211: gnu: binutils-boot: Update to 2.10.1., Jan Nieuwenhuizen, 2018/09/08
- 88/211: gnu: mes-boot: Update to 0.16., Jan Nieuwenhuizen, 2018/09/08
- 75/211: Revert "gnu: gcc-boot: Update to 3.4.0.", Jan Nieuwenhuizen, 2018/09/08
- 85/211: gnu: mes-boot: Update for linux-4.17 elf32-header fix., Jan Nieuwenhuizen, 2018/09/08
- 69/211: gnu: gcc-boot: Update to 2.6.3., Jan Nieuwenhuizen, 2018/09/08
- 70/211: gnu: linux-libre-headers-boot0: Export., Jan Nieuwenhuizen, 2018/09/08
- 57/211: gnu: %mes-seed: Update for 0.15., Jan Nieuwenhuizen, 2018/09/08