gnu: gawk: Patch /usr/bin/file in extension/configure on MIPS.

* gnu/packages/gawk.scm (gawk): When building for MIPS, patch /usr/bin/file in
  extension/configure.
This commit is contained in:
Mark H Weaver 2014-08-29 18:28:50 -04:00
parent b5ef82e064
commit 6646747c02

View file

@ -55,6 +55,14 @@ (define-public gawk
'((substitute* "extension/Makefile.in"
(("^.*: check-for-shared-lib-support" match)
(string-append "### " match))))
'())
;; XXX FIXME prerelease libtool fails on MIPS in the
;; absence of /usr/bin/file.
,@(if (equal? "mips64el-linux" (or (%current-target-system)
(%current-system)))
'((substitute* "extension/configure"
(("/usr/bin/file") (which "file"))))
'())))
%standard-phases)))
(inputs `(("libsigsegv" ,libsigsegv)