[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
185/210: gnu: glibc-mesboot0: Cleanup.
From: |
Jan Nieuwenhuizen |
Subject: |
185/210: gnu: glibc-mesboot0: Cleanup. |
Date: |
Sat, 8 Sep 2018 10:36:32 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 583ab62f6bc7edf5a53f8d216a2ad139dba93576
Author: Jan Nieuwenhuizen <address@hidden>
Date: Mon Sep 3 14:19:37 2018 +0200
gnu: glibc-mesboot0: Cleanup.
* gnu/packages/commencement.scm (glibc-mesboot0): Cleanup.
---
gnu/packages/commencement.scm | 48 +++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 74dc042..306ed33 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -881,6 +881,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
(native-inputs `(("binutils" ,binutils-mesboot0)
("gcc" ,gcc-core-mesboot)
+ ("bash" ,%bootstrap-coreutils&co)
("coreutils" ,%bootstrap-coreutils&co)
("diffutils" ,diffutils-mesboot)
("headers" ,mesboot-headers)
@@ -894,7 +895,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
#:parallel-build? #f ; gcc-2.95.3 ICEs on massively parallel builds
#:make-flags (list (string-append
"SHELL="
- (assoc-ref %build-inputs "coreutils")
+ (assoc-ref %build-inputs "bash")
"/bin/sh"))
#:configure-flags
(let ((out (assoc-ref %outputs "out"))
@@ -911,47 +912,44 @@ ac_cv_c_float_format='IEEE (little-endian)'
"--without-cvs"
"--without-gd"
"--without-tls"
- ;; Build Sun/ONC RPC support. In particular,
- ;; install rpc/*.h.
- "--enable-obsolete-rpc"
(string-append "--prefix=" out)))
#:phases
(modify-phases %standard-phases
(add-before 'configure 'setenv
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
- (headers (assoc-ref %build-inputs "headers"))
+ (bash (assoc-ref %build-inputs "bash"))
(gcc (assoc-ref %build-inputs "gcc"))
+ (headers (assoc-ref %build-inputs "headers"))
(cppflags (string-append
- " -D __STDC__=1"
+ ;;" -D __STDC__=1"
" -D MES_BOOTSTRAP=1"
" -D BOOTSTRAP_GLIBC=1"))
(cflags (string-append " -L " (getcwd))))
- (setenv "CONFIG_SHELL" (string-append
- (assoc-ref %build-inputs "coreutils")
- "/bin/sh"))
+ (setenv "CONFIG_SHELL" (string-append bash "/bin/sh"))
(setenv "SHELL" (getenv "CONFIG_SHELL"))
- (format (current-error-port) "CONFIG_SHELL=~s\n" (getenv
"CONFIG_SHELL"))
-
- (setenv "PATH"
- (string-append
- (assoc-ref %build-inputs "coreutils") "/bin"
- ":" (assoc-ref %build-inputs "binutils") "/bin"
- ":" (assoc-ref %build-inputs "gcc") "/bin"
- ":" (assoc-ref %build-inputs "diffutils") "/bin"
- ":" (assoc-ref %build-inputs "make") "/bin"))
-
(setenv "CPP" (string-append gcc "/bin/gcc -E " cppflags))
(setenv "CC" (string-append gcc "/bin/gcc " cppflags cflags))
- (unsetenv "C_INCLUDE_PATH")
- (unsetenv "LIBRARY_PATH"))))
- ;; glibc-2.2.5 needs a slightly more classical invocation of
configure
+ #t)))
+ ;; glibc-2.2.5 needs a more classic invocation of configure
;; configure: warning:
CONFIG_SHELL=/gnu/store/kpxi8h3669afr9r1bgvaf9ij3y4wdyyn-bash-minimal-4.4.12/bin/bash:
invalid host type
(replace 'configure
(lambda* (#:key configure-flags #:allow-other-keys)
- (format (current-error-port) "running ./configure ~a\n"
(string-join configure-flags))
- (zero?
- (apply system* "./configure" configure-flags))))))))))
+ (format (current-error-port)
+ "running ./configure ~a\n" (string-join configure-flags))
+ (apply invoke "./configure" configure-flags))))))
+ (native-search-paths
+ ;; Use the language-specific variables rather than 'CPATH' because they
+ ;; are equivalent to '-isystem' whereas 'CPATH' is equivalent to '-I'.
+ ;; The intent is to allow headers that are in the search path to be
+ ;; treated as "system headers" (headers exempt from warnings) just like
+ ;; the typical /usr/include headers on an FHS system.
+ (list (search-path-specification
+ (variable "C_INCLUDE_PATH")
+ (files '("include")))
+ (search-path-specification
+ (variable "LIBRARY_PATH")
+ (files '("lib"))))))))
(define-public gcc-mesboot0
(package-with-bootstrap-guile
- 183/210: gnu: gcc-core-mesboot: Cleanup., (continued)
- 183/210: gnu: gcc-core-mesboot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 199/210: gnu: diffutils-boot0: Remove bootstrap leaks., Jan Nieuwenhuizen, 2018/09/08
- 177/210: gnu: mes-boot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 204/210: gnu: gcc-boot0: Workaround libtool install bug., Jan Nieuwenhuizen, 2018/09/08
- 205/210: gnu: perl-boot0: Remove bootstrap leaks., Jan Nieuwenhuizen, 2018/09/08
- 187/210: gnu: make-mesboot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 208/210: gnu: nyacc: Update to 0.86.0., Jan Nieuwenhuizen, 2018/09/08
- 202/210: gnu: libstdc++-boot0: Copy libstdc++.so.6.0.20 to pass install., Jan Nieuwenhuizen, 2018/09/08
- 206/210: gnu: m4-boot0: New variable., Jan Nieuwenhuizen, 2018/09/08
- 188/210: gnu: binutils-mesboot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 185/210: gnu: glibc-mesboot0: Cleanup.,
Jan Nieuwenhuizen <=
- 180/210: gnu: make-mesboot0: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 176/210: mescc-tools-boot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 207/210: gnu: bison-boot0: Remove bootstrap leaks., Jan Nieuwenhuizen, 2018/09/08
- 181/210: gnu: diffutils-mesboot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 172/210: copy-linux-headers: Update for glibc-2.16.0., Jan Nieuwenhuizen, 2018/09/08
- 190/210: gnu: gcc-mesboot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 186/210: gnu: gcc-mesboot0: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 189/210: gnu: make-mesboot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 194/210: oops: fixup glibc-bootstrap-system-2.16.0.patch name., Jan Nieuwenhuizen, 2018/09/08
- 209/210: gnu: nyacc-boot: Update to 0.86.0., Jan Nieuwenhuizen, 2018/09/08