guix-commits
[Top][All Lists]
Advanced

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

45/60: gnu: gawk-mesboot: Remove pre-generated source file.


From: guix-commits
Subject: 45/60: gnu: gawk-mesboot: Remove pre-generated source file.
Date: Sun, 24 Nov 2024 02:50:16 -0500 (EST)

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

commit 6f6eb77bb2dc358b99dfde4b6ed2cbaae151bb4d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Oct 21 14:50:00 2024 +0300

    gnu: gawk-mesboot: Remove pre-generated source file.
    
    * gnu/packages/commencement.scm (gawk-mesboot)[source]: Use
    bootstrap-origin.  Add a snippet to remove a pre-generated source file.
    [native-inputs]: Add byacc-mesboot.
    
    Change-Id: Ic064190ae76677e5473343ba50aaa22a43def462
---
 gnu/packages/commencement.scm | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index b980728e2c..12b454c8da 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2121,17 +2121,21 @@ ac_cv_c_float_format='IEEE (little-endian)'
     (inherit gawk)
     (name "gawk-mesboot")
     (version "3.1.8")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "mirror://gnu/gawk/gawk-"
-                                  version ".tar.gz"))
-              (sha256
-               (base32
-                "03d5y7jabq7p2s7ys9alay9446mm7i5g2wvy8nlicardgb6b6ii1"))))
+    (source (bootstrap-origin
+              (origin
+                (method url-fetch)
+                (uri (string-append "mirror://gnu/gawk/gawk-"
+                                    version ".tar.gz"))
+                (sha256
+                 (base32
+                  "03d5y7jabq7p2s7ys9alay9446mm7i5g2wvy8nlicardgb6b6ii1"))
+                (snippet
+                 #~(begin (delete-file "awkgram.c"))))))
     (native-inputs
-     (if (target-x86?)
-         (%boot-mesboot2-inputs)
-         (%boot-muslboot2-inputs)))
+     (modify-inputs (if (target-x86?)
+                        (%boot-mesboot2-inputs)
+                        (%boot-muslboot2-inputs))
+                    (append byacc-mesboot)))
     (inputs '())
     (propagated-inputs '())
     (arguments



reply via email to

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