mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: cppawk: Fix build.
* gnu/packages/gawk.scm (cppawk)[arguments]: Don't refer to nonexistent 'build' phase. Fix "/bin/sh" and "/usr/bin/awk" paths in test fails. Change-Id: Id86a78378558592c41f19f15e4c5e4890f995a6c
This commit is contained in:
parent
f79b1fdaed
commit
33d92fd4c7
1 changed files with 10 additions and 2 deletions
|
@ -183,6 +183,7 @@ (define-public cppawk
|
|||
(add-after 'unpack 'fix-paths
|
||||
(lambda _
|
||||
(substitute* "bin/cppawk"
|
||||
(("/bin/sh") (which "sh"))
|
||||
(("/bin/bash") (which "bash"))
|
||||
(("dirname") (which "dirname"))
|
||||
(("mktemp") (which "mktemp"))
|
||||
|
@ -190,13 +191,20 @@ (define-public cppawk
|
|||
(("printf ") (string-append (which "printf") " "))
|
||||
(("rm -f") (string-append (which "rm") " -f"))
|
||||
(("prepro=cpp") (string-append "prepro=" (which "cpp")))
|
||||
(("sed -e") (string-append (which "sed") " -e")))))
|
||||
(("sed -e") (string-append (which "sed") " -e")))
|
||||
(substitute* '("runtests"
|
||||
"testdir/testawk"
|
||||
"testdir/testcpp"
|
||||
"testdir/testdel")
|
||||
(("/bin/sh") (which "sh")))
|
||||
(substitute* "testsuite.awk"
|
||||
(("/usr/bin/awk") (which "awk")))))
|
||||
(add-after 'fix-paths 'fix-awk-paths
|
||||
(lambda _
|
||||
(substitute* "bin/cppawk"
|
||||
(("awk=gawk") (string-append "awk=" (which "gawk")))
|
||||
(("awk '") (string-append (which "gawk") " '")))))
|
||||
(add-after 'build 'check
|
||||
(add-after 'fix-awk-paths 'check
|
||||
(lambda _
|
||||
(invoke "./runtests"))))))
|
||||
(native-inputs
|
||||
|
|
Loading…
Reference in a new issue