gnu: ascii2binary: Fix cross-compilation.

* gnu/packages/textutils.scm (ascii2binary): Fix cross-compilation.
[native-inputs]: Add autoconf, automake.
[arguments]: Add fix-rpl_malloc phase.

Change-Id: Iefaca353490a17f9263431f60db33218a22e914c
This commit is contained in:
Zheng Junjie 2024-08-29 11:11:12 +08:00
parent de25a21433
commit 579fc61689
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -441,7 +441,18 @@ (define-public ascii2binary
(base32 "0dc9fxcdmppbs9s06jvq61zbk552laxps0xyk098gj41697ihd96")))) (base32 "0dc9fxcdmppbs9s06jvq61zbk552laxps0xyk098gj41697ihd96"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
(list gettext-minimal)) (list gettext-minimal autoconf automake))
(arguments (list #:phases
#~(modify-phases %standard-phases
;; AC_FUNC_MALLOC and AC_FUNC_REALLOC usually unneeded
;; see https://lists.gnu.org/archive/html/autoconf/2003-02/msg00017.html
(add-after 'unpack 'fix-rpl_malloc
(lambda _
(substitute* "configure.ac"
(("AC_FUNC_MALLOC") "")
(("AC_FUNC_REALLOC") ""))
;; let bootstrap phase run.
(delete-file "./configure"))))))
(home-page "https://billposer.org/Software/a2b.html") (home-page "https://billposer.org/Software/a2b.html")
(synopsis "Convert between ASCII, hexadecimal and binary representations") (synopsis "Convert between ASCII, hexadecimal and binary representations")
(description "The two programs are useful for generating test data, for (description "The two programs are useful for generating test data, for