[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
55/58: gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd.
From: |
guix-commits |
Subject: |
55/58: gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd. |
Date: |
Sun, 24 Nov 2024 02:50:42 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit d737fb54e21f03833485c35e5dc2a3f96359d4aa
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Nov 19 20:20:50 2024 +0100
gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd.
* gnu/packages/bootstrap.scm (%bootstrap-gcc)[arguments] When building for
thee 64bit Hurd have the #:builder also wrap g++.
Co-authored-by: Efraim Flashner <efraim@flashner.co.il>
Change-Id: I2cdbc6837e1c451f108b309f2608240a7f57b82c
---
gnu/packages/bootstrap.scm | 35 +++++++++++++++++++++--------------
1 file changed, 21 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm
index a6cdda2122..48c7b42cc9 100644
--- a/gnu/packages/bootstrap.scm
+++ b/gnu/packages/bootstrap.scm
@@ -866,29 +866,36 @@ $out/bin/guile --version~%"
(tarball (assoc-ref %build-inputs "tarball")))
(mkdir out)
- (copy-file tarball "binaries.tar.xz")
+ (copy-file tarball "binaries.tar.xz") ;avoid: more than one hard
link
(invoke xz "-d" "binaries.tar.xz")
(let ((builddir (getcwd))
(bindir (string-append out "/bin")))
+
+ (define (wrap-program program)
+ (let ((wrapped (format #f ".~a-wrapped" program)))
+ (rename-file program wrapped)
+ (call-with-output-file program
+ (lambda (p)
+ (format p "#!~a
+exec ~a/bin/~a -B~a/lib \
+ -Wl,-rpath -Wl,~a/lib \
+ -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%"
+ bash
+ out wrapped
+ libc libc libc
+ ,(glibc-dynamic-linker)))))
+ (chmod program #o555))
+
(with-directory-excursion out
(invoke tar "xvf"
(string-append builddir "/binaries.tar")))
(with-directory-excursion bindir
(chmod "." #o755)
- (rename-file "gcc" ".gcc-wrapped")
- (call-with-output-file "gcc"
- (lambda (p)
- (format p "#!~a
-exec ~a/bin/.gcc-wrapped -B~a/lib \
- -Wl,-rpath -Wl,~a/lib \
- -Wl,-dynamic-linker -Wl,~a/~a \"$@\"~%"
- bash
- out libc libc libc
- ,(glibc-dynamic-linker))))
-
- (chmod "gcc" #o555)
- #t))))))
+ (for-each wrap-program
+ ,(if (target-hurd64?)
+ ''("gcc" "g++")
+ ''("gcc")))))))))
(inputs
`(("tar" ,(bootstrap-executable "tar" (%current-system)))
("xz" ,(bootstrap-executable "xz" (%current-system)))
- 24/58: gnu: cross-base: Update %xgcc to gcc-14, to support the 64bit Hurd., (continued)
- 24/58: gnu: cross-base: Update %xgcc to gcc-14, to support the 64bit Hurd., guix-commits, 2024/11/24
- 22/58: gnu: libssh: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/11/24
- 21/58: gnu: libedit: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/11/24
- 30/58: gnu: libgpg-error: Support the 64bit Hurd., guix-commits, 2024/11/24
- 36/58: gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., guix-commits, 2024/11/24
- 40/58: gnu: grub: Fix build for the 64bit Hurd., guix-commits, 2024/11/24
- 48/58: gnu: Add gdb-15.2, with support for the 64bit Hurd., guix-commits, 2024/11/24
- 38/58: gnu: hurd: Build fixes for the 64bit Hurd., guix-commits, 2024/11/24
- 51/58: system: examples: Add devel-hurd64.tmpl., guix-commits, 2024/11/24
- 52/58: gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd., guix-commits, 2024/11/24
- 55/58: gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd.,
guix-commits <=
- 54/58: gnu: hurd: Add refcounts-assert patch., guix-commits, 2024/11/24
- 35/58: gnu: netdde: Support the 64bit Hurd., guix-commits, 2024/11/24
- 43/58: gnu: commencement: gnumach-headers-boot0: Update to 1.8+git20240714., guix-commits, 2024/11/24
- 53/58: gnu: commencement: kernel-headers-boot0: Support the 64bit Hurd., guix-commits, 2024/11/24
- 34/58: gnu: netdde: Update to c0ef248dc7c5ccc1273e2a796f3ece30c5b645df., guix-commits, 2024/11/24
- 37/58: gnu: rumpkernel: Support the 64bit Hurd., guix-commits, 2024/11/24
- 42/58: gnu: m4: Fix build for the 64bit Hurd., guix-commits, 2024/11/24
- 56/58: gnu: commencement: libstdc++-boot0: Support the 64bit Hurd., guix-commits, 2024/11/24
- 31/58: gnu: openssl-3.0: Support the 64bit Hurd., guix-commits, 2024/11/24