[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
173/210: gnu: Add mesboot-headers.
From: |
Jan Nieuwenhuizen |
Subject: |
173/210: gnu: Add mesboot-headers. |
Date: |
Sat, 8 Sep 2018 10:36:30 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit bacf48f2078ac0c24c15e142e194c27946cd9f37
Author: Jan Nieuwenhuizen <address@hidden>
Date: Mon Sep 3 00:30:49 2018 +0200
gnu: Add mesboot-headers.
* gnu/packages/commencement.scm (mesboot-headers): Add mesboot-headers.
Update users.
---
gnu/packages/commencement.scm | 60 ++++++++++++++++++++++++++-----------------
1 file changed, 37 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 588bf7d..2d4ead3 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -852,6 +852,35 @@ ac_cv_c_float_format='IEEE (little-endian)'
(copy-recursively (string-append tcc "/include")
(string-append out "/include"))))))))))))
+(define-public mesboot-headers
+ (package-with-bootstrap-guile
+ (package
+ (inherit mes-boot)
+ (name "mesboot-headers")
+ (supported-systems '("i686-linux"))
+ (inputs '())
+ (propagated-inputs '())
+ (native-inputs `(("coreutils" ,%bootstrap-coreutils&co)
+ ("headers" ,%bootstrap-linux-libre-headers)))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:guile ,%bootstrap-guile
+ #:tests? #f
+ #:strip-binaries? #f
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'build)
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (include (string-append out "/include"))
+ (headers (assoc-ref %build-inputs "headers" )))
+ (mkdir-p include)
+ (copy-recursively "include" out)
+ (copy-recursively headers out)
+ #t)))))))))
+
(define-public glibc-mesboot0
(package-with-bootstrap-guile
(package
@@ -875,7 +904,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
("coreutils" ,%bootstrap-coreutils&co)
("diffutils" ,diffutils-mesboot)
- ("kernel-headers" ,%bootstrap-linux-libre-headers)
+ ("headers" ,mesboot-headers)
("make" ,make-mesboot0)))
(outputs '("out"))
(arguments
@@ -890,7 +919,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
"/bin/sh"))
#:configure-flags
(let ((out (assoc-ref %outputs "out"))
- (headers (assoc-ref %build-inputs "kernel-headers")))
+ (headers (assoc-ref %build-inputs "headers")))
(list
"--disable-shared"
"--enable-static"
@@ -912,7 +941,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
(add-before 'configure 'setenv
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
- (headers (assoc-ref %build-inputs "kernel-headers"))
+ (headers (assoc-ref %build-inputs "headers"))
(gcc (assoc-ref %build-inputs "gcc"))
(cppflags (string-append
" -D __STDC__=1"
@@ -1445,6 +1474,7 @@ exec " gcc "/bin/" program
(native-inputs `(("binutils" ,binutils-mesboot)
("libc" ,glibc-mesboot0)
("gcc" ,gcc-mesboot)
+ ("headers" ,mesboot-headers)
("coreutils" ,%bootstrap-coreutils&co)
("diffutils" ,diffutils-mesboot)
@@ -1464,7 +1494,7 @@ exec " gcc "/bin/" program
"install-bootstrap-headers=yes" "install-headers")
#:configure-flags
(let ((out (assoc-ref %outputs "out"))
- (headers (assoc-ref %build-inputs "kernel-headers")))
+ (headers (assoc-ref %build-inputs "headers")))
(list
;;"--disable-shared"
;;"--enable-static"
@@ -1489,19 +1519,13 @@ exec " gcc "/bin/" program
(add-before 'configure 'setenv
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
- (headers (assoc-ref %build-inputs "kernel-headers"))
+ (headers (assoc-ref %build-inputs "headers"))
(coreutils (assoc-ref %build-inputs "coreutils"))
(libc (assoc-ref %build-inputs "libc"))
(gcc (assoc-ref %build-inputs "gcc"))
(cppflags (string-append
- ;;" -v"
" -I " libc "/include"
- ;; " -I " (getcwd) "/include"
" -I " headers "/include"
- ;;; ../include/limits.h:124:26: fatal error:
limits.h: No such file or directory
- " -I " headers "/include/linux" ;; limits.h
- ;; " -D __STDC__=1"
- ;;" -D MES_BOOTSTRAP=1"
" -D BOOTSTRAP_GLIBC=1"
" -Dsize_t=int -Dwchar_t=int"
))
@@ -1611,18 +1635,8 @@ exec " gcc "/bin/" program
(libc (assoc-ref %build-inputs "libc"))
(gcc (assoc-ref %build-inputs "gcc"))
(cppflags (string-append
- ;;" -v"
- ;; " -I " (getcwd) "/include"
- " -I " libc "/include"
- " -I " headers "/include"
- ;;" -I " headers "/include/linux"
- " -I " kernel-headers "/include/linux"
-;;; ../include/limits.h:124:26: fatal error: limits.h: No such file or
directory
-;;; " -I " headers "/include/linux" ;; limits.h
- ;; " -D __STDC__=1"
- ;;" -D MES_BOOTSTRAP=1"
- " -D BOOTSTRAP_GLIBC=1"
- ))
+ " -I " (getcwd) "/nptl/sysdeps/pthread/bits"
+ " -D BOOTSTRAP_GLIBC=1"))
(cflags (string-append " -L " (getcwd)
" -L " libc "/lib")))
(setenv "CONFIG_SHELL" (string-append
- 210/210: gnu: mes-boot0: Support Nyacc 0.86.0., (continued)
- 210/210: gnu: mes-boot0: Support Nyacc 0.86.0., Jan Nieuwenhuizen, 2018/09/08
- 200/210: gnu: findutils-boot0: Remove bootstrap leaks., Jan Nieuwenhuizen, 2018/09/08
- 191/210: gnu: glibc-headers-mesboot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 195/210: glibc-mesboot: do not validate runpath, Jan Nieuwenhuizen, 2018/09/08
- 184/210: gnu: mesboot-headers: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 197/210: Oops, libstdc++ build fixes WIP, Jan Nieuwenhuizen, 2018/09/08
- 175/210: gnu: glibc-mesboot: Remove %bootstrap-glibc., Jan Nieuwenhuizen, 2018/09/08
- 170/210: gnu: make-mesboot: Update to 3.82., Jan Nieuwenhuizen, 2018/09/08
- 178/210: gnu: tcc-boot0: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 179/210: gnu: tcc-boot: Cleanup., Jan Nieuwenhuizen, 2018/09/08
- 173/210: gnu: Add mesboot-headers.,
Jan Nieuwenhuizen <=
- 169/210: bootstrap: Evaluate %bootstrap-inputs+toolchain at build time., Jan Nieuwenhuizen, 2018/09/08
- 166/210: gnu: file-boot0: Do not strip binaries or validate-runpath., Jan Nieuwenhuizen, 2018/09/08
- 198/210: gnu: Add gcc-mesboot-4.9.4., Jan Nieuwenhuizen, 2018/09/08
- 145/210: bootstrap: Integrate mes bootstrap for i686-linux., Jan Nieuwenhuizen, 2018/09/08
- 66/210: gnu: binutils-boot: Update to 2.30., Jan Nieuwenhuizen, 2018/09/08
- 160/210: gnu: Add mpc-boot 1.0.3., Jan Nieuwenhuizen, 2018/09/08
- 155/210: Revert "gnu: Add %diffutils-static, %diffutils-static-stripped, %diffutils-bootstrap-tarball.", Jan Nieuwenhuizen, 2018/09/08
- 156/210: Revert "gnu: Add %bootstrap-make.", Jan Nieuwenhuizen, 2018/09/08
- 150/210: gnu: Add make-mesboot 3.79., Jan Nieuwenhuizen, 2018/09/08
- 193/210: gnu: glibc-mesboot: Oops, install everything., Jan Nieuwenhuizen, 2018/09/08