[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
34/60: gnu: gcc-core-mesboot1: Adjust for dependency changes.
From: |
guix-commits |
Subject: |
34/60: gnu: gcc-core-mesboot1: Adjust for dependency changes. |
Date: |
Sun, 24 Nov 2024 02:50:14 -0500 (EST) |
efraim pushed a commit to branch wip-riscv-bootstrap
in repository guix.
commit cb0996fc62ac2304863dd49ebc5aa7935a6cbc5c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 8 08:18:57 2024 +0300
gnu: gcc-core-mesboot1: Adjust for dependency changes.
* gnu/packages/commencement.scm (gcc-core-mesboot1)[inputs]: Replace
gmp-source, mpfr-source and mpc-source with gmp, mpfr and mpc.
[arguments]: Remove the 'unpack-gmp&co and 'setenv phases.
Change-Id: Ie42824696501470a6d1bf3940dc9ed88f2b18131
---
gnu/packages/commencement.scm | 55 +++----------------------------------------
1 file changed, 3 insertions(+), 52 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index b52940672e..c4f1da05a9 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1714,9 +1714,7 @@ ac_cv_c_float_format='IEEE (little-endian)'
(sha256
(base32
"173kdb188qg79pcz073cj9967rs2vzanyjdjyxy9v0xb0p5sad75"))))
- (inputs `(("gmp-source" ,gmp-boot)
- ("mpfr-source" ,mpfr-boot)
- ("mpc-source" ,mpc-boot)))
+ (inputs (list gmp-boot mpfr-boot mpc-boot))
(native-inputs (%boot-mesboot1-inputs))
(arguments
(list #:implicit-inputs? #f
@@ -1774,55 +1772,8 @@ ac_cv_c_float_format='IEEE (little-endian)'
(let ((patch-file
#$(local-file
(search-patch "gcc-boot-4.6.4.patch"))))
- (invoke "patch" "--force" "-p1" "-i" patch-file))))
- ;; c&p from commencement.scm:gcc-boot0
- (add-after 'unpack 'unpack-gmp&co
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((gmp (assoc-ref %build-inputs "gmp-source"))
- (mpfr (assoc-ref %build-inputs "mpfr-source"))
- (mpc (assoc-ref %build-inputs "mpc-source")))
-
- ;; To reduce the set of pre-built bootstrap inputs, build
- ;; GMP & co. from GCC.
- (for-each (lambda (source)
- (or (invoke "tar" "xvf" source)
- (error "failed to unpack tarball"
- source)))
- (list gmp mpfr mpc))
-
- ;; Create symlinks like `gmp' -> `gmp-x.y.z'.
- #$@(map (lambda (lib package)
- ;; Drop trailing letters, as gmp-6.0.0a unpacks
- ;; into gmp-6.0.0.
- #~(symlink #$(string-trim-right
- (basename
- (origin-actual-file-name lib)
- ".tar.gz")
- char-set:letter)
- #$package))
- (list gmp-boot mpfr-boot mpc-boot)
- '("gmp" "mpfr" "mpc")))))
- (add-before 'configure 'setenv
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (binutils (assoc-ref %build-inputs "binutils"))
- (bash (assoc-ref %build-inputs "bash"))
- (gcc (assoc-ref %build-inputs "gcc"))
- (glibc (assoc-ref %build-inputs "libc"))
- (kernel-headers (assoc-ref %build-inputs
"kernel-headers")))
- (setenv "CONFIG_SHELL" (string-append bash "/bin/sh"))
- (setenv "C_INCLUDE_PATH" (string-append
- gcc "/lib/gcc-lib/"
- #$(commencement-build-target)
- "/2.95.3/include"
- ":" kernel-headers "/include"
- ":" glibc "/include"
- ":" (getcwd) "/mpfr/src"))
- (setenv "LIBRARY_PATH" (string-append glibc "/lib"
- ":" gcc "/lib"))
- (format (current-error-port) "C_INCLUDE_PATH=~a\n"
(getenv "C_INCLUDE_PATH"))
- (format (current-error-port) "LIBRARY_PATH=~a\n"
- (getenv "LIBRARY_PATH"))))))))))
+ (invoke "patch" "--force" "-p1" "-i" patch-file)))))))))
+
(define gcc-mesboot1
(package
- 11/60: gnu: binutils-mesboot0: Use commencement-build-target., (continued)
- 11/60: gnu: binutils-mesboot0: Use commencement-build-target., guix-commits, 2024/11/24
- 20/60: gnu: gcc-mesboot1-wrapper: Correctly target more systems., guix-commits, 2024/11/24
- 06/60: gnu: Add commencement-build-target., guix-commits, 2024/11/24
- 27/60: gnu: Add oksh-muslboot0., guix-commits, 2024/11/24
- 12/60: gnu: gcc-core-mesboot0: Use commencement-build-target., guix-commits, 2024/11/24
- 14/60: gnu: gcc-mesboot0: Use commencement-build-target., guix-commits, 2024/11/24
- 15/60: gnu: binutils-mesboot1: Use commencement-build-target., guix-commits, 2024/11/24
- 18/60: gnu: gcc-mesboot: Use commencement-build-target., guix-commits, 2024/11/24
- 22/60: gnu: tcc-boot: Support more architectures., guix-commits, 2024/11/24
- 25/60: gnu: Add tcc-boot-musl., guix-commits, 2024/11/24
- 34/60: gnu: gcc-core-mesboot1: Adjust for dependency changes.,
guix-commits <=
- 38/60: gnu: Add gcc-muslboot0., guix-commits, 2024/11/24
- 42/60: gnu: hello-mesboot: Add support for riscv64-linux., guix-commits, 2024/11/24
- 43/60: gnu: Add byacc-mesboot., guix-commits, 2024/11/24
- 46/60: gnu: Add mawk-mesboot., guix-commits, 2024/11/24
- 49/60: gnu: %boot-mesboot6-inputs: Adjust for riscv64-linux., guix-commits, 2024/11/24
- 48/60: gnu: mesboot-package: Adjust for riscv64-linux builds., guix-commits, 2024/11/24
- 53/60: gnu: file-boot0: Fix building on riscv64-linux., guix-commits, 2024/11/24
- 52/60: gnu: findutils-boot0: Adjust the skipped tests on riscv64-linux., guix-commits, 2024/11/24
- 21/60: gnu: tcc-boot0: Specify the build target., guix-commits, 2024/11/24
- 31/60: gnu: gmp-boot: Update and build package., guix-commits, 2024/11/24