[bug#77100,v2] gnu: varnish: Fix varnish failed to start

Message ID 20250324114127.2163-1-nazarn96@gmail.com
State New
Headers
Series [bug#77100,v2] gnu: varnish: Fix varnish failed to start |

Commit Message

Nazar Klovanych March 24, 2025, 11:41 a.m. UTC
  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(-)


base-commit: 9879a7d75279762c7634f1a585794442ea2f0503
  

Patch

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