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

commit 96277ff48dc7670d76266e710c100594853f6c5f
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Mon Jul 28 09:53:48 2025 +0300

    gnu: Add mpfr-boot1.
    
    * gnu/packages/commencement.scm (mpfr-boot1): New variable.
    
    Change-Id: Ibae291199d0a3c4307026be906754bda552fc667
---
 gnu/packages/commencement.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index e35ab6370c..ba5359346a 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2553,6 +2553,34 @@ exec " gcc "/bin/" program
                "--disable-assembly")
        ;; Gash crashes on mkdir called through install creating 
%output/share/info
        #:make-flags #~(list "MKDIRPROG=mkdir -p")))))
+
+(define mpfr-boot1
+  (package
+    (inherit mpfr)
+    (outputs '("out"))
+    (name "mpfr-boot1")
+    (source (bootstrap-origin (package-source mpfr)))
+    (native-inputs (if (target-x86?)
+                       `(("gcc-wrapper" ,gcc-mesboot1-wrapper)
+                         ("headers" ,glibc-headers-mesboot)
+                         ,@(%boot-mesboot4-inputs))
+                       (%boot-tcc-musl-inputs)))
+    (inputs '())
+    (propagated-inputs (list gmp-boot1))
+    (arguments
+     (list
+       #:guile %bootstrap-guile
+       #:tests? #f
+       #:implicit-inputs? #f
+       #:parallel-build? #f
+       #:configure-flags
+       #~(list #$@(if (target-x86?)
+                      #~()
+                      #~("CC=tcc"))
+               (string-append "--build=" #$(commencement-build-target))
+               (string-append "--host=" #$(commencement-build-target))
+               "--enable-static"
+               "--disable-shared")))))
 (define gcc-mesboot
   (package
     (inherit gcc-mesboot1)

Reply via email to