[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47/51: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so.
From: |
guix-commits |
Subject: |
47/51: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so. |
Date: |
Mon, 18 Nov 2024 18:13:27 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 4e01ce178d90d822ff9853ee2bf6922d397a4547
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: I399d8f3ad9be6b8892955c2cbe59a10093120c77
---
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 301ee3ca12..f8490ce56c 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")
+ "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)))
- 36/51: gnu: inetutils: Fix build for the 64bit Hurd., (continued)
- 36/51: gnu: inetutils: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 37/51: gnu: grub: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 50/51: system: examples: Add devel-hurd64.tmpl., guix-commits, 2024/11/18
- 08/51: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 31/51: gnu: netdde: Update to c0ef248dc7c5ccc1273e2a796f3ece30c5b645df., guix-commits, 2024/11/18
- 42/51: gnu: commencement: hurd-headers-boot0: Update to 0.9.git20240714., guix-commits, 2024/11/18
- 12/51: gnu: glibc/hurd: Add patches for the 64bit Hurd., guix-commits, 2024/11/18
- 43/51: gnu: commencement: libstdc++-boot0-gcc7: Replace by make-libstdc++-boot0., guix-commits, 2024/11/18
- 27/51: gnu: libgpg-error: Support the 64bit Hurd., guix-commits, 2024/11/18
- 41/51: gnu: commencement: mig-boot0: Update to 1.8+git20231217.., guix-commits, 2024/11/18
- 47/51: gnu: bootstrap: %bootstrap-glibc: Also fix libm.so.,
guix-commits <=
- 40/51: gnu: commencement: gnumach-headers-boot0: Update to 1.8+git20240714., guix-commits, 2024/11/18
- 49/51: system: examples: Add bare-hurd64.tmpl., guix-commits, 2024/11/18