[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/64: gnu: commencement: glibc-headers-mesboot: Use Gash instead of cor
From: |
guix-commits |
Subject: |
36/64: gnu: commencement: glibc-headers-mesboot: Use Gash instead of coreutils&co. |
Date: |
Tue, 18 Feb 2020 01:18:10 -0500 (EST) |
janneke pushed a commit to branch core-updates
in repository guix.
commit c8a2128a1ffa5934b407c5ebdc2fbe749e9ee199
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Fri Nov 22 22:10:16 2019 +0100
gnu: commencement: glibc-headers-mesboot: Use Gash instead of coreutils&co.
* gnu/packages/commencement.scm (glibc-headers-mesboot): Use Gash instead of
coreutils&co.
---
gnu/packages/commencement.scm | 70 ++++++++++++++++++++++++-------------------
1 file changed, 40 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 5f34d5b..9a20add 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2394,17 +2394,8 @@ exec " gcc "/bin/" program
(sha256
(base32
"0vlz4x6cgz7h54qq4528q526qlhnsjzbsvgc4iizn76cb0bfanx7")))))
- (native-inputs `(("binutils" ,binutils-mesboot)
- ("libc" ,glibc-mesboot0)
- ("gcc" ,gcc-mesboot1)
- ("headers" ,mesboot-headers)
-
- ("bash" ,%bootstrap-coreutils&co)
- ("coreutils" ,%bootstrap-coreutils&co)
- ("diffutils" ,diffutils-mesboot)
- ("kernel-headers" ,%bootstrap-linux-libre-headers)
- ("make" ,make-mesboot)))
-
+ (native-inputs `(("headers" ,mesboot-headers)
+ ,@(%boot-mesboot3-inputs)))
(arguments
(substitute-keyword-arguments (package-arguments glibc-mesboot0)
((#:configure-flags configure-flags)
@@ -2419,13 +2410,21 @@ exec " gcc "/bin/" program
"--with-pthread"
"--without-cvs"
"--without-gd"
- "--enable-add-ons=nptl")))
+ "--enable-add-ons=nptl"
+ ;; avoid: configure: error: confusing output from nm -u
+ "libc_cv_predef_stack_protector=no")))
((#:make-flags make-flags)
- `(let ((bash (assoc-ref %build-inputs "bash")))
- (list (string-append "SHELL=" bash "/bin/sh")
- "install-bootstrap-headers=yes" "install-headers")))
+ '(list "install-bootstrap-headers=yes" "install-headers"))
((#:phases phases)
`(modify-phases ,phases
+ (delete 'apply-boot-patch)
+ (delete 'fixup-configure)
+ (delete 'set-path)
+ (replace 'unpack
+ (lambda* (#:key source #:allow-other-keys)
+ (invoke "tar" "xvf" source)
+ (chdir (string-append "glibc-" ,version))
+ #t))
(replace 'setenv
(lambda* (#:key inputs #:allow-other-keys)
(let* ((headers (assoc-ref inputs "headers"))
@@ -2442,6 +2441,7 @@ exec " gcc "/bin/" program
(setenv "CPP" (string-append gcc "/bin/gcc -E " cppflags))
(setenv "CC" (string-append gcc "/bin/gcc " cppflags cflags))
+ (setenv "LD" "gcc")
;; avoid -fstack-protector
(setenv "libc_cv_ssp" "false")
@@ -2452,9 +2452,9 @@ exec " gcc "/bin/" program
(lambda* (#:key outputs make-flags #:allow-other-keys)
(let ((kernel-headers (assoc-ref %build-inputs
"kernel-headers"))
(out (assoc-ref outputs "out")))
- (apply invoke "make" make-flags)
- (copy-recursively kernel-headers out)
- #t)))
+ (and (apply invoke "make" make-flags)
+ (copy-recursively kernel-headers out)
+ #t))))
(replace 'configure
(lambda* (#:key configure-flags #:allow-other-keys)
(format (current-error-port) "running ../configure ~a\n"
(string-join configure-flags))
@@ -2463,18 +2463,28 @@ exec " gcc "/bin/" program
(apply invoke "../configure" configure-flags)))
(add-after 'configure 'remove-sunrpc
(lambda _
- (invoke "make" (string-append (getcwd) "/sysd-sorted" )
- (string-append "SHELL=" (getenv "CONFIG_SHELL")))
- (substitute* "sysd-sorted"
- ((" sunrpc") " ")
- ((" nis") " "))
- ;; 'rpcgen' needs native libc headers to be built.
- (substitute* "../Makefile"
- (("^SHELL := /bin/sh") (string-append "SHELL := " (getenv
"CONFIG_SHELL"))))
- (substitute* "../Makeconfig"
- (("^SHELL := /bin/sh") (string-append "SHELL := " (getenv
"CONFIG_SHELL"))))
- (substitute* "../elf/Makefile"
- (("^SHELL := /bin/sh") (string-append "SHELL := " (getenv
"CONFIG_SHELL"))))))))))))
+ (let* ((out (assoc-ref %outputs "out"))
+ (bash (assoc-ref %build-inputs "bash"))
+ (shell (string-append bash "/bin/bash")))
+
+ (let ((Makefile (open-file "Makefile" "a")))
+ (display (string-append "
+
+SHELL := " shell "
+")
+ Makefile)
+ (close Makefile))
+ (substitute* "../Makefile"
+ (("^SHELL := /bin/sh") (string-append "SHELL := " shell)))
+ (substitute* "../Makeconfig"
+ (("^SHELL := /bin/sh") (string-append "SHELL := " shell)))
+ (substitute* "../elf/Makefile"
+ (("^SHELL := /bin/sh") (string-append "SHELL := " shell)))
+ (invoke "make" (string-append (getcwd) "/sysd-sorted" ))
+ (substitute* "sysd-sorted"
+ ((" sunrpc") " ")
+ ((" nis") " "))
+ #t)))))))))
(define glibc-mesboot
(package
- 30/64: gnu: commencement: Add gcc-core-mesboot1., (continued)
- 30/64: gnu: commencement: Add gcc-core-mesboot1., guix-commits, 2020/02/18
- 35/64: gnu: commencement: binutils-mesboot: Use Gash instead of coreutils&co., guix-commits, 2020/02/18
- 26/64: gnu: commencement: Add coreutils-mesboot0., guix-commits, 2020/02/18
- 29/64: gnu: commencement: Add sed-mesboot., guix-commits, 2020/02/18
- 33/64: gnu: commencement: Add xz-mesboot., guix-commits, 2020/02/18
- 34/64: gnu: commencement: Add hello-mesboot., guix-commits, 2020/02/18
- 38/64: gnu: commencement: gcc-mesboot1-wrapper: Use Gash instead of coreutils&co., guix-commits, 2020/02/18
- 39/64: gnu: commencement: gcc-mesboot: Use Gash instead of coreutils&co., guix-commits, 2020/02/18
- 42/64: gnu: commencement: Remove m4-mesboot., guix-commits, 2020/02/18
- 45/64: gnu: commencement: Add gawk-boot0., guix-commits, 2020/02/18
- 36/64: gnu: commencement: glibc-headers-mesboot: Use Gash instead of coreutils&co.,
guix-commits <=
- 40/64: gnu: commencement: gcc-mesboot-wrapper: Use Gash instead of coreutils&co., guix-commits, 2020/02/18
- 41/64: gnu: commencement: Add coreutils-mesboot., guix-commits, 2020/02/18
- 61/64: Add (guix build gnu-bootstrap)., guix-commits, 2020/02/18
- 47/64: gnu: commencement: Add patch-boot0., guix-commits, 2020/02/18
- 44/64: gnu: commencement: file: Build file without bzip2., guix-commits, 2020/02/18
- 48/64: gnu: commencement: Add bzip2-boot0., guix-commits, 2020/02/18
- 49/64: gnu: commencement: Add tar-boot0., guix-commits, 2020/02/18
- 50/64: gnu: commencement: Add coreutils-boot0., guix-commits, 2020/02/18
- 53/64: gnu: bootstrap: Remove %bootstrap-coreutils&co, %bootstrap-bash., guix-commits, 2020/02/18
- 59/64: gnu: commencement: glibc-boot0: Remove gash, use bash-mesboot0 only., guix-commits, 2020/02/18