[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74290] [PATCH v4 49/58] gnu: bootstrap: %bootstrap-glibc: Also fix
From: |
Janneke Nieuwenhuizen |
Subject: |
[bug#74290] [PATCH v4 49/58] gnu: bootstrap: %bootstrap-glibc: Also fix libm.so. |
Date: |
Sun, 24 Nov 2024 08:55:12 +0100 |
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 @@ (define %bootstrap-glibc
"/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)))
--
2.46.0
- [bug#74290] [PATCH v4 22/58] gnu: libssh: Fix [cross-]build with gcc-14 for 32bit., (continued)
- [bug#74290] [PATCH v4 22/58] gnu: libssh: Fix [cross-]build with gcc-14 for 32bit., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 28/58] DRAFT gnu: bootstrap: Add support for x86_64-gnu, aka the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 26/58] gnu: glibc/hurd: Add patch for the 64bit Hurd, fixing "raise"., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 27/58] gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 30/58] gnu: libgpg-error: Support the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 33/58] gnu: libpciaccess: Support the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 20/58] gnu: netdde: Fix build with gcc-14., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 24/58] gnu: cross-base: Update %xgcc to gcc-14, to support the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 43/58] gnu: commencement: gnumach-headers-boot0: Update to 1.8+git20240714., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 46/58] gnu: commencement: libstdc++-boot0-gcc7: Replace by make-libstdc++-boot0., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 49/58] gnu: bootstrap: %bootstrap-glibc: Also fix libm.so.,
Janneke Nieuwenhuizen <=
- [bug#74290] [PATCH v4 54/58] gnu: hurd: Add refcounts-assert patch., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 23/58] gnu: guile-lzlib: Support [cross-]build with gcc-14 and the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 29/58] system: image: Add hurd64 image types., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 31/58] gnu: openssl-3.0: Support the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 32/58] gnu: pciutils: Support the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 34/58] gnu: netdde: Update to c0ef248dc7c5ccc1273e2a796f3ece30c5b645df., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 35/58] gnu: netdde: Support the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 36/58] gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 41/58] gnu: guile-fibers: Fix build for the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24
- [bug#74290] [PATCH v4 25/58] gnu: gcc-14: Force libdir /lib instead of /lib64 for the 64bit Hurd., Janneke Nieuwenhuizen, 2024/11/24