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

commit fd1bdd52ca419d0eace6d7cff806728a50bf79ef
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Tue Nov 5 11:14:40 2024 +0200

    gnu: glibc-headers-mesboot: Remove unused C macro.
    
    * gnu/packages/commencement.scm (glibc-headers-mesboot)[source]: Add
    snippet to remove an exported unused pre-GNU C macro.
    
    Change-Id: I8622eeaea819ca8b3abbee36e2a14214ec97be07
---
 gnu/packages/commencement.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index ff3a218680..59819e2df0 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2213,6 +2213,13 @@ ac_cv_c_float_format='IEEE (little-endian)'
                                    ".tar.gz"))
                (patches (search-patches "glibc-boot-2.16.0.patch"
                                         "glibc-bootstrap-system-2.16.0.patch"))
+               (modules '((guix build utils)))
+               (snippet
+                ;; No one should need obstack_compat, it's an unused pre-GNU C 
macro.
+                ;; Removing this lets us use binutils-2.30.
+                '(begin (substitute* "malloc/obstack.c"
+                          ((".*obstack_compat" all)
+                           (string-append "// " all)))))
                (sha256
                 (base32
                  "0vlz4x6cgz7h54qq4528q526qlhnsjzbsvgc4iizn76cb0bfanx7")))))

Reply via email to