Subject: [PATCH v2] gnu: varnish: Fix varnish failed to start

From: Nazar Klovanych <[email-masked]>
Date: Mon, 24 Mar 2025 13:41:19 +0200

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 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 54f2f75097..37acd2d617 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -6825,7 +6825,9 @@ (define-public varnish
                  (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

base-commit: 9879a7d75279762c7634f1a585794442ea2f0503
-- 
2.48.1