civodul pushed a commit to branch master
in repository guix.
commit 6a440c842b5c221cddf96a7bce92d61faac563ac
Author: Nazar Klovanych <[email protected]>
AuthorDate: Mon Mar 24 13:41:19 2025 +0200
gnu: varnish: Fix varnish startup failure.
This fixes the error on varnish startup:
2025-03-18 08:16:48 localhost shepherd[1]: [varnishd] Info: Working
directory not mounted on tmpfs partition
2025-03-18 08:16:48 localhost shepherd[1]: [varnishd] sh: line 1: rm:
command not found
2025-03-18 08:16:48 localhost shepherd[1]: [varnishd] Assert error in
main(), mgt/mgt_main.c line 876:
* gnu/packages/web.scm (varnish)[arguments]: In
‘use-absolute-file-names’ phase, modify ‘mgt_main.c’.
Change-Id: Ifdb3b1fe7d36819f5289d80995c4670672a59819
Signed-off-by: Ludovic Courtès <[email protected]>
---
gnu/packages/web.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index f37584503a..90297db555 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -6825,7 +6825,9 @@ deployments.")
(substitute* "bin/varnishd/mgt/mgt_shmem.c"
(("rm -rf") (string-append rm " -rf")))
(substitute* "bin/varnishtest/vtc_main.c"
- (("/bin/rm") rm)))
+ (("/bin/rm") rm))
+ (substitute* "bin/varnishd/mgt/mgt_main.c"
+ (("rm -rf") (string-append rm " -rf"))))
(substitute* "bin/varnishtest/tests/u00000.vtc"
(("/bin/echo") (which "echo")))))
(add-after 'unpack 'remove-failing-tests