guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

33/60: gnu: mpc-boot: Update and build package.


From: guix-commits
Subject: 33/60: gnu: mpc-boot: Update and build package.
Date: Sun, 24 Nov 2024 02:50:14 -0500 (EST)

efraim pushed a commit to branch wip-riscv-bootstrap
in repository guix.

commit 50800fe0062ff9ad8c20ba0478f7a301f24f8164
Author: Ekaitz Zarraga <ekaitz@elenq.tech>
AuthorDate: Mon Oct 7 18:58:01 2024 +0300

    gnu: mpc-boot: Update and build package.
    
    * gnu/packages/commencement.scm (mpc-boot): Update to 1.2.1.  Replace
    with a full package.
    
    Co-authored-by: Efraim Flashner <efraim@flashner.co.il>
    Change-Id: I827adfbcd3eb8d98b52da2931f3e435bfaec5096
---
 gnu/packages/commencement.scm | 36 ++++++++++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 169a48e053..b52940672e 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1667,12 +1667,36 @@ ac_cv_c_float_format='IEEE (little-endian)'
                "--disable-shared")))))
 
 (define mpc-boot
-  (let ((version "1.0.3"))
-    (origin
-      (method url-fetch)
-      (uri (string-append "mirror://gnu/mpc/mpc-" version ".tar.gz"))
-      (sha256
-       (base32 "1hzci2zrrd7v3g1jk35qindq05hbl0bhjcyyisq9z209xb3fqzb1")))))
+  (package
+    (inherit mpc)
+    (outputs '("out"))
+    (name "mpc-boot")
+    (version "1.2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnu/mpc/mpc-" version ".tar.gz"))
+              (sha256
+               (base32 
"0n846hqfqvmsmim7qdlms0qr86f1hck19p12nq3g3z2x74n3sl0p"))))
+    (native-inputs (if (target-x86?)
+                       (%boot-mesboot1-inputs)
+                       (%boot-tcc-musl-inputs)))
+    (inputs '())
+    (propagated-inputs (list gmp-boot mpfr-boot))
+    (arguments
+     (list
+       #:guile %bootstrap-guile
+       #:tests? #f
+       #:implicit-inputs? #f
+       #:parallel-build? (target-x86?)
+       #:configure-flags
+       #~(list #$@(if (target-x86?)
+                      #~()
+                      #~("CC=tcc"
+                         "CFLAGS=-DHAVE_ALLOCA_H"))
+               (string-append "--build=" #$(commencement-build-target))
+               (string-append "--host=" #$(commencement-build-target))
+               "--enable-static"
+               "--disable-shared")))))
 
 (define gcc-core-mesboot1
   ;; GCC 4.6.4 is the latest modular distribution.  This package is not



reply via email to

[Prev in Thread] Current Thread [Next in Thread]