gnu: varnish: Use absolute file name of "rm".

* gnu/packages/web.scm (varnish)[arguments]: Rename 'patch-bin-sh-phase to
'use-absolute-file-names and add substitution.
This commit is contained in:
Marius Bakke 2018-08-26 23:31:10 +02:00
parent e789b85841
commit 5f33e9063b
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 3 additions and 1 deletions

View File

@ -5019,12 +5019,14 @@ deployments.")
"--localstatedir=/var") "--localstatedir=/var")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch-/bin/sh (add-after 'unpack 'use-absolute-file-names
(lambda _ (lambda _
(substitute* '("bin/varnishtest/vtc_varnish.c" (substitute* '("bin/varnishtest/vtc_varnish.c"
"bin/varnishtest/vtc_process.c" "bin/varnishtest/vtc_process.c"
"bin/varnishd/mgt/mgt_vcc.c") "bin/varnishd/mgt/mgt_vcc.c")
(("/bin/sh") (which "sh"))) (("/bin/sh") (which "sh")))
(substitute* "bin/varnishd/mgt/mgt_shmem.c"
(("rm -rf") (string-append (which "rm") " -rf")))
#t)) #t))
(add-before 'install 'patch-Makefile (add-before 'install 'patch-Makefile
(lambda _ (lambda _