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
This commit is contained in:
Efraim Flashner 2024-11-05 11:14:40 +02:00
parent fe166ad06c
commit bd7220ee3f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2238,6 +2238,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")))))