summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-12-17 19:15:47 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-07-28 10:00:02 +0300
commit52a42ef591a21c2313f2bf367426d1ebc48ea124 (patch)
tree3d3400e5f3044c14177cdd79c80a2fdf7055efa4 /gnu
parent744120d0b7ccc3c1b0c00f022adf557e84b66156 (diff)
Revert "gnu: gcc-muslboot0: Apply patches in the package source."
This reverts commit 75ccc3586a93d9ee9f458b05eca9d3a08d6f09ab. The source fails to unpack in the 'unpack phase
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/commencement.scm25
1 files changed, 15 insertions, 10 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 3672211a75d..7964d35a2dd 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1823,15 +1823,13 @@ ac_cv_c_float_format='IEEE (little-endian)'
1823 (inherit gcc-4.7) 1823 (inherit gcc-4.7)
1824 (name "gcc-muslboot0") 1824 (name "gcc-muslboot0")
1825 (version "4.6.4") 1825 (version "4.6.4")
1826 (source 1826 (source (origin
1827 (bootstrap-origin 1827 (method url-fetch)
1828 (origin 1828 (uri (string-append "mirror://gnu/gcc/gcc-"
1829 (method url-fetch) 1829 version "/gcc-core-" version ".tar.gz"))
1830 (uri (string-append "mirror://gnu/gcc/gcc-" 1830 (sha256
1831 version "/gcc-core-" version ".tar.gz")) 1831 (base32
1832 (sha256 1832 "173kdb188qg79pcz073cj9967rs2vzanyjdjyxy9v0xb0p5sad75"))))
1833 (base32 "173kdb188qg79pcz073cj9967rs2vzanyjdjyxy9v0xb0p5sad75"))
1834 (patches (search-patches "gcc-boot-4.6.4-riscv64-support.patch")))))
1835 (outputs '("out")) 1833 (outputs '("out"))
1836 (inputs (list gmp-boot mpfr-boot mpc-boot)) 1834 (inputs (list gmp-boot mpfr-boot mpc-boot))
1837 (native-inputs (%boot-tcc-musl-inputs)) 1835 (native-inputs (%boot-tcc-musl-inputs))
@@ -1882,6 +1880,12 @@ ac_cv_c_float_format='IEEE (little-endian)'
1882 "--disable-build-with-cxx")) 1880 "--disable-build-with-cxx"))
1883 #:phases 1881 #:phases
1884 #~(modify-phases %standard-phases 1882 #~(modify-phases %standard-phases
1883 (add-after 'unpack 'apply-riscv64-patch
1884 (lambda* (#:key inputs #:allow-other-keys)
1885 (let ((patch-file
1886 #$(local-file
1887 (search-patch "gcc-boot-4.6.4-riscv64-support.patch"))))
1888 (invoke "patch" "--force" "-p1" "-i" patch-file))))
1885 (add-after 'unpack 'fix-alloca 1889 (add-after 'unpack 'fix-alloca
1886 (lambda* (#:key inputs #:allow-other-keys) 1890 (lambda* (#:key inputs #:allow-other-keys)
1887 (substitute* (list "libiberty/alloca.c" 1891 (substitute* (list "libiberty/alloca.c"
@@ -1906,7 +1910,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
1906 (format #f "#define ~a_DYNAMIC_LINKER~a \"~a\"~%" 1910 (format #f "#define ~a_DYNAMIC_LINKER~a \"~a\"~%"
1907 gnu-user suffix 1911 gnu-user suffix
1908 (string-append libc "/lib/libc.so"))))))) 1912 (string-append libc "/lib/libc.so")))))))
1909 (add-after 'unpack 'patch-for-modern-libc 1913 (add-after 'apply-riscv64-patch 'patch-for-modern-libc
1910 (lambda _ 1914 (lambda _
1911 (for-each 1915 (for-each
1912 (lambda (dir) 1916 (lambda (dir)
@@ -2069,6 +2073,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
2069 else 2073 else
2070 _cpp_define_builtin (pfile, \"__cplusplus 199711L\"); 2074 _cpp_define_builtin (pfile, \"__cplusplus 199711L\");
2071 }"))))) 2075 }")))))
2076 (delete 'apply-riscv64-patch)
2072 (replace 'setenv 2077 (replace 'setenv
2073 (lambda _ 2078 (lambda _
2074 (setenv "CC" "musl-gcc") 2079 (setenv "CC" "musl-gcc")