[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/35: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so.
From: |
guix-commits |
Subject: |
22/35: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so. |
Date: |
Tue, 3 Dec 2024 02:45:51 -0500 (EST) |
janneke pushed a commit to branch master
in repository guix.
commit 204fe1b1f05f4438d1cf72c568b45696e55e54c9
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sun Nov 17 12:27:48 2024 +0100
gnu: bootstrap: %bootstrap-glibc: Also fix libm.so.
On the 64bit Hurd, glibc-2.39's libm.so is also a linker script. This fixes
having it refer to
/gnu/store/eee...-glibc-cross-x86_64-pc-gnu-2.39/lib/libm.so.6
/gnu/store/eee...-glibc-cross-x86_64-pc-gnu-2.39/lib/libmvec.so.1
* gnu/packages/bootstrap.scm (%bootstrap-glibc)[arguments]: When building
for
the 64bit Hurd, also substitute libm.so linker script. Update the regexp to
also cater for libh[urduser] and libm[achuser].
Change-Id: I878e63d18f1012b6e186e90eb68cb97bec5ae94c
---
gnu/packages/bootstrap.scm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm
index 8027918323..a6cdda2122 100644
--- a/gnu/packages/bootstrap.scm
+++ b/gnu/packages/bootstrap.scm
@@ -774,12 +774,12 @@ $out/bin/guile --version~%"
"/binaries.tar"))
(chmod "lib" #o755)
- ;; Patch libc.so so it refers to the right path.
- (substitute* "lib/libc.so"
- (("/[^ ]+/lib/(libc|ld)" _ prefix)
- (string-append out "/lib/" prefix)))
-
- #t))))))
+ ;; Patch linker scripts so they refer to the right file-names.
+ (substitute* ,(if (target-hurd64?)
+ ''("lib/libc.so" "lib/libm.so")
+ "lib/libc.so")
+ (("/[^ ]+/lib/(libc|libm|libh|ld)" _ prefix)
+ (string-append out "/lib/" prefix)))))))))
(inputs
`(("tar" ,(bootstrap-executable "tar" (%current-system)))
("xz" ,(bootstrap-executable "xz" (%current-system)))
- 09/35: gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., (continued)
- 09/35: gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., guix-commits, 2024/12/03
- 08/35: gnu: netdde: Support the 64bit Hurd., guix-commits, 2024/12/03
- 10/35: gnu: rumpkernel: Support the 64bit Hurd., guix-commits, 2024/12/03
- 12/35: gnu: inetutils: Fix build for the 64bit Hurd., guix-commits, 2024/12/03
- 01/35: gnu: bootstrap: Add support for x86_64-gnu, aka the 64bit Hurd., guix-commits, 2024/12/03
- 07/35: gnu: netdde: Update to c0ef248dc7c5ccc1273e2a796f3ece30c5b645df., guix-commits, 2024/12/03
- 02/35: system: image: Add hurd64 image types., guix-commits, 2024/12/03
- 13/35: gnu: grub: Fix build for the 64bit Hurd., guix-commits, 2024/12/03
- 28/35: gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd., guix-commits, 2024/12/03
- 17/35: gnu: commencement: mig-boot0: Update to 1.8+git20231217.., guix-commits, 2024/12/03
- 22/35: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so.,
guix-commits <=
- 27/35: gnu: hurd: Add refcounts-assert patch., guix-commits, 2024/12/03
- 29/35: gnu: commencement: libstdc++-boot0: Support the 64bit Hurd., guix-commits, 2024/12/03
- 31/35: gnu: commencement: gcc-final: Support the 64bit Hurd., guix-commits, 2024/12/03
- 24/35: system: examples: Add devel-hurd64.tmpl., guix-commits, 2024/12/03
- 16/35: gnu: commencement: gnumach-headers-boot0: Update to 1.8+git20240714., guix-commits, 2024/12/03
- 20/35: gnu: gettext: Fix cross-build shebangs., guix-commits, 2024/12/03
- 15/35: gnu: m4: Fix build for the 64bit Hurd., guix-commits, 2024/12/03
- 19/35: gnu: commencement: libstdc++-boot0-gcc7: Replace by make-libstdc++-boot0., guix-commits, 2024/12/03
- 26/35: gnu: commencement: kernel-headers-boot0: Support the 64bit Hurd., guix-commits, 2024/12/03
- 35/35: gnu: m4: Fix build of tests on the 64bit Hurd., guix-commits, 2024/12/03