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:
parent
e789b85841
commit
5f33e9063b
|
@ -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 _
|
||||||
|
|
Loading…
Reference in New Issue