[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
82/85: gnu: gcc-muslboot0: Apply patches in the package source.
From: |
guix-commits |
Subject: |
82/85: gnu: gcc-muslboot0: Apply patches in the package source. |
Date: |
Tue, 17 Dec 2024 04:08:16 -0500 (EST) |
efraim pushed a commit to branch wip-riscv-bootstrap
in repository guix.
commit 75ccc3586a93d9ee9f458b05eca9d3a08d6f09ab
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Dec 17 09:33:51 2024 +0200
gnu: gcc-muslboot0: Apply patches in the package source.
* gnu/packages/commencement.scm (gcc-muslboot0)[source]: Add patch.
[arguments]: Remove custom phase applying patch.
(gcc-muslboot): Adjust accordingly.
Change-Id: Ie502ac2db65b8928b84ddbcb65e82151156f08e7
---
gnu/packages/commencement.scm | 25 ++++++++++---------------
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 3a4c434f25..c5fff7cd69 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1798,13 +1798,15 @@ ac_cv_c_float_format='IEEE (little-endian)'
(inherit gcc-4.7)
(name "gcc-muslboot0")
(version "4.6.4")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/gcc/gcc-"
- version "/gcc-core-" version ".tar.gz"))
- (sha256
- (base32
- "173kdb188qg79pcz073cj9967rs2vzanyjdjyxy9v0xb0p5sad75"))))
+ (source
+ (bootstrap-origin
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/gcc/gcc-"
+ version "/gcc-core-" version ".tar.gz"))
+ (sha256
+ (base32 "173kdb188qg79pcz073cj9967rs2vzanyjdjyxy9v0xb0p5sad75"))
+ (patches (search-patches "gcc-boot-4.6.4-riscv64-support.patch")))))
(outputs '("out"))
(inputs (list gmp-boot mpfr-boot mpc-boot))
(native-inputs (%boot-tcc-musl-inputs))
@@ -1855,12 +1857,6 @@ ac_cv_c_float_format='IEEE (little-endian)'
"--disable-build-with-cxx"))
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'apply-riscv64-patch
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((patch-file
- #$(local-file
- (search-patch
"gcc-boot-4.6.4-riscv64-support.patch"))))
- (invoke "patch" "--force" "-p1" "-i" patch-file))))
(add-after 'unpack 'fix-alloca
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (list "libiberty/alloca.c"
@@ -1885,7 +1881,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
(format #f "#define ~a_DYNAMIC_LINKER~a \"~a\"~%"
gnu-user suffix
(string-append libc "/lib/libc.so")))))))
- (add-after 'apply-riscv64-patch 'patch-for-modern-libc
+ (add-after 'unpack 'patch-for-modern-libc
(lambda _
(for-each
(lambda (dir)
@@ -2048,7 +2044,6 @@ ac_cv_c_float_format='IEEE (little-endian)'
else
_cpp_define_builtin (pfile, \"__cplusplus 199711L\");
}")))))
- (delete 'apply-riscv64-patch)
(replace 'setenv
(lambda _
(setenv "CC" "musl-gcc")
- 76/85: fixup gcc-muslboot0, (continued)
- 76/85: fixup gcc-muslboot0, guix-commits, 2024/12/17
- 47/85: gnu: Add %boot-muslboot3-inputs., guix-commits, 2024/12/17
- 60/85: gnu: binutils-mesboot: Update to 2.30., guix-commits, 2024/12/17
- 50/85: gnu: %bootstrap-inputs+toolchain: Switch riscv64-linux to full bootstrap., guix-commits, 2024/12/17
- 71/85: gnu: m4-boot0: Downgrade to 1.4.18., guix-commits, 2024/12/17
- 64/85: fixup WIP: musl-boot0: Add fixes for i686 and x86_64., guix-commits, 2024/12/17
- 30/85: gnu: Add m4-boot., guix-commits, 2024/12/17
- 38/85: gnu: Add gcc-muslboot0., guix-commits, 2024/12/17
- 39/85: gnu: Add musl-boot., guix-commits, 2024/12/17
- 44/85: gnu: gawk-mesboot: Support building on riscv64-linux., guix-commits, 2024/12/17
- 82/85: gnu: gcc-muslboot0: Apply patches in the package source.,
guix-commits <=
- 67/85: gnu: musl-boot0: Fix building on riscv64-linux., guix-commits, 2024/12/17
- 83/85: fixup findutils-boot0: Adjust the skipped tests on riscv64-linux., guix-commits, 2024/12/17
- 85/85: Revert "gnu: m4-boot0: Downgrade to 1.4.18.", guix-commits, 2024/12/17
- 56/85: gnu: Add byacc-boot0., guix-commits, 2024/12/17
- 62/85: WIP: musl-boot0: Add fixes for i686 and x86_64., guix-commits, 2024/12/17
- 31/85: gnu: gmp-boot: Update and build package., guix-commits, 2024/12/17
- 73/85: fixup mpfr-boot, guix-commits, 2024/12/17
- 61/85: gnu: musl-boot0: Improve the install phase., guix-commits, 2024/12/17
- 79/85: gnu: gcc-muslboot: Use full gcc sources., guix-commits, 2024/12/17
- 43/85: gnu: Add byacc-mesboot., guix-commits, 2024/12/17