[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/84: squash! gnu: Add libc-for-target and glibc/hurd.
From: |
guix-commits |
Subject: |
06/84: squash! gnu: Add libc-for-target and glibc/hurd. |
Date: |
Wed, 14 Jun 2023 06:23:53 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit 81455d49bac2c8cf3f0f1663773a95b22e6ebc7d
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Jun 1 23:39:50 2023 +0200
squash! gnu: Add libc-for-target and glibc/hurd.
* gnu/packages/commencement.scm (glibc-final-with-bootstrap-bash)[outputs,
source, arguments]: Use (libc-for-target) instead of glibc.
(glibc-final)[source]: Use libc (libc-for-target), instead of glibc.
Co-authored-by: Janneke Nieuwenhuizen <janneke@gnu.org>
---
gnu/packages/commencement.scm | 105 +++++++++++++++++++++---------------------
1 file changed, 53 insertions(+), 52 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 755af08fa8..97a6f392ba 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2827,59 +2827,60 @@ memoized as a function of '%current-system'."
;; store path has no dependencies. Actually, the really-final libc is
;; built just below; the only difference is that this one uses the
;; bootstrap Bash.
- (package
- (inherit (libc-for-target))
- (name "glibc-intermediate")
- (outputs (delete "debug" (package-outputs glibc)))
- (source (bootstrap-origin (package-source glibc)))
- (arguments
- `(#:guile ,%bootstrap-guile
- #:implicit-inputs? #f
-
- ,@(substitute-keyword-arguments (package-arguments glibc)
- ((#:configure-flags flags)
- `(append (list ,(string-append "--host=" (boot-triplet))
- ,(string-append "--build="
- (nix-system->gnu-triplet))
- ,(if (hurd-system?) "--disable-werror"
- ""))
- ,flags))
- ((#:phases phases)
- `(modify-phases ,phases
- (add-before 'configure 'pre-configure
- (lambda* (#:key inputs #:allow-other-keys)
- ;; Don't clobber include paths with the bootstrap libc.
- (unsetenv "C_INCLUDE_PATH")
- (unsetenv "CPLUS_INCLUDE_PATH")
-
- ;; Tell 'libpthread' where to find 'libihash' on Hurd
systems.
- ,@(if (hurd-system?)
- '((substitute* '("sysdeps/mach/Makefile"
- "sysdeps/mach/hurd/Makefile")
- (("LDLIBS-pthread.so =.*")
- (string-append "LDLIBS-pthread.so = "
- (assoc-ref %build-inputs
"kernel-headers")
- "/lib/libihash.a\n"))))
- '()))))))))
- (propagated-inputs `(("kernel-headers" ,(kernel-headers-boot0))))
- (native-inputs
- `(("bison" ,bison-boot0)
- ("texinfo" ,texinfo-boot0)
- ("perl" ,perl-boot0)
- ("python" ,python-boot0)))
- (inputs
- `( ;; The boot inputs. That includes the bootstrap libc. We don't want
- ;; it in $CPATH, hence the 'pre-configure' phase above.
- ,@(%boot1-inputs)
+ (let ((libc (libc-for-target)))
+ (package
+ (inherit libc)
+ (name "glibc-intermediate")
+ (outputs (delete "debug" (package-outputs libc)))
+ (source (bootstrap-origin (package-source libc)))
+ (arguments
+ `(#:guile ,%bootstrap-guile
+ #:implicit-inputs? #f
- ;; A native MiG is needed to build Glibc on Hurd.
- ,@(if (hurd-system?)
- `(("mig" ,mig-boot0))
- '())
+ ,@(substitute-keyword-arguments (package-arguments libc)
+ ((#:configure-flags flags)
+ `(append (list ,(string-append "--host=" (boot-triplet))
+ ,(string-append "--build="
+ (nix-system->gnu-triplet))
+ ,(if (hurd-system?) "--disable-werror"
+ ""))
+ ,flags))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'configure 'pre-configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Don't clobber include paths with the bootstrap libc.
+ (unsetenv "C_INCLUDE_PATH")
+ (unsetenv "CPLUS_INCLUDE_PATH")
+
+ ;; Tell 'libpthread' where to find 'libihash' on Hurd
systems.
+ ,@(if (hurd-system?)
+ '((substitute* '("sysdeps/mach/Makefile"
+ "sysdeps/mach/hurd/Makefile")
+ (("LDLIBS-pthread.so =.*")
+ (string-append "LDLIBS-pthread.so = "
+ (assoc-ref %build-inputs
"kernel-headers")
+ "/lib/libihash.a\n"))))
+ '()))))))))
+ (propagated-inputs `(("kernel-headers" ,(kernel-headers-boot0))))
+ (native-inputs
+ `(("bison" ,bison-boot0)
+ ("texinfo" ,texinfo-boot0)
+ ("perl" ,perl-boot0)
+ ("python" ,python-boot0)))
+ (inputs
+ `( ;; The boot inputs. That includes the bootstrap libc. We don't want
+ ;; it in $CPATH, hence the 'pre-configure' phase above.
+ ,@(%boot1-inputs)
+
+ ;; A native MiG is needed to build Glibc on Hurd.
+ ,@(if (hurd-system?)
+ `(("mig" ,mig-boot0))
+ '())
- ;; Here, we use the bootstrap Bash, which is not satisfactory
- ;; because we don't want to depend on bootstrap tools.
- ("static-bash" ,@(assoc-ref (%boot0-inputs) "bash"))))))
+ ;; Here, we use the bootstrap Bash, which is not satisfactory
+ ;; because we don't want to depend on bootstrap tools.
+ ("static-bash" ,@(assoc-ref (%boot0-inputs) "bash")))))))
(define (cross-gcc-wrapper gcc binutils glibc bash)
"Return a wrapper for the pseudo-cross toolchain GCC/BINUTILS/GLIBC
@@ -3003,7 +3004,7 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a
\"$@\"~%"
(let ((libc (libc-for-target)))
(package/inherit libc
(name "glibc")
- (source (bootstrap-origin (package-source glibc)))
+ (source (bootstrap-origin (package-source libc)))
(inputs `(("static-bash" ,static-bash-for-glibc)
,@(alist-delete
"static-bash"
- 26/84: hurd-boot: Cater for netdde., (continued)
- 26/84: hurd-boot: Cater for netdde., guix-commits, 2023/06/14
- 31/84: gnu: commencement: Add automake-boot0., guix-commits, 2023/06/14
- 38/84: gnu: coreutils: Skip hanging and failing test for the Hurd., guix-commits, 2023/06/14
- 53/84: gnu: libgpg-error: Skip failing test for the Hurd., guix-commits, 2023/06/14
- 74/84: gnu: glib: Disable tests for the Hurd., guix-commits, 2023/06/14
- 64/84: gnu: openssl-1.1: Fix shared build for the Hurd., guix-commits, 2023/06/14
- 67/84: gnu: swig: Skip tests when building for the Hurd., guix-commits, 2023/06/14
- 75/84: gnu: ghostscript: Fix build for the Hurd., guix-commits, 2023/06/14
- 69/84: gnu: cmake-bootstrap: Fix build for the Hurd., guix-commits, 2023/06/14
- 08/84: gnu: gnumach: Update to 1.8+git20221224., guix-commits, 2023/06/14
- 06/84: squash! gnu: Add libc-for-target and glibc/hurd.,
guix-commits <=
- 05/84: gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/14
- 10/84: gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/14
- 16/84: gnu: Add rumpkernel., guix-commits, 2023/06/14
- 01/84: hurd-boot: Add urandom and default-pager translators., guix-commits, 2023/06/14
- 24/84: gnu: gnumach: Support "noide" argument., guix-commits, 2023/06/14
- 12/84: gnu: hurd: Update to v0.9.git20230216., guix-commits, 2023/06/14
- 28/84: services: static-networking: Support netdde for the Hurd., guix-commits, 2023/06/14
- 09/84: gnu: Add libc-locales-for-target and glibc-locales/hurd., guix-commits, 2023/06/14
- 19/84: gnu: hurd: Add rumpkernel., guix-commits, 2023/06/14
- 34/84: gnu: commencement: hurd-headers-boot0: Update to 0.9.git20230216., guix-commits, 2023/06/14