gnu: binutils-mesboot: Update to 2.30.

* gnu/packages/commencement.scm (binutils-mesboot): Update to 2.30.
[arguments]: Don't inherit from binutils-mesboot1.  Update
configure-flags.
[native-inputs]: When building for not i686 or x86_64 use
%boot-muslboot2-inputs.
[supported-systems]: Support all supported systems.

Change-Id: I52740e2c87fbb31da05a0f3fd5016edf4e94bd41
This commit is contained in:
Efraim Flashner 2024-11-05 11:18:22 +02:00
parent a3de05be85
commit 8589970b66
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2074,7 +2074,50 @@ (define binutils-mesboot
(package
(inherit binutils-mesboot1)
(name "binutils-mesboot")
(native-inputs (%boot-mesboot2-inputs))))
(version "2.30")
(source (bootstrap-origin
(origin
(method url-fetch)
(uri (string-append "mirror://gnu/binutils/binutils-"
version ".tar.gz"))
(sha256
(base32
"1sp9g7zrrcsl25hxiqzmmcrdlbm7rbmj0vki18lks28wblcm0f4c")))))
(arguments
(list #:implicit-inputs? #f
#:guile %bootstrap-guile
#:tests? #f ; runtest: command not found
#:parallel-build? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'configure 'fix-build
(lambda _
;; bfd/po doesn't have a Makefile, so the recursive calls just
;; fail. We add files with the same name Make targets have, to
;; trick Make into thinking there's nothing to do.
(call-with-output-file "bfd/po/install"
(lambda (p) (display "" p)))
(call-with-output-file "bfd/po/all"
(lambda (p) (display "" p)))
(call-with-output-file "bfd/po/info"
(lambda (p) (display "" p))))))
#:configure-flags
#~(list
(string-append "CONFIG_SHELL="
(search-input-file %build-inputs "/bin/bash"))
(string-append "SHELL="
(search-input-file %build-inputs "/bin/bash"))
"--enable-64-bit-bfd"
"--disable-nls"
"--disable-shared"
"--disable-plugins"
"--enable-deterministic-archives"
(string-append "--build=" #$(commencement-build-target))
(string-append "--host=" #$(commencement-build-target)))))
(native-inputs (if (target-x86?)
(%boot-mesboot2-inputs)
(%boot-muslboot2-inputs)))
(supported-systems %supported-systems)))
;; We need to introduce byacc in order to process some pre-generated
;; files in gawk and possibly elsewhere.