guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/08: gnu: munge: Pass '--localstatedir=/var'.


From: guix-commits
Subject: 04/08: gnu: munge: Pass '--localstatedir=/var'.
Date: Tue, 14 May 2019 06:15:57 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 8d080506f4957e67d4e6d969f2743870db168abf
Author: Ludovic Courtès <address@hidden>
Date:   Tue May 14 11:42:17 2019 +0200

    gnu: munge: Pass '--localstatedir=/var'.
    
    Previously, Munge users such as Slurm would fail with:
    
      squeue: error: Munge encode failed: Failed to access 
"/gnu/store/…-munge-0.5.13/var/run/munge/munge.socket.2": No such file or 
directory
      squeue: error: authentication: Socket communication error
    
    * gnu/packages/admin.scm (munge)[source](modules, snippet): New fields.
    [arguments]: New field.
---
 gnu/packages/admin.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index b6aba4c..f485ea9 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1972,11 +1972,20 @@ displays a table of current bandwidth usage by pairs of 
hosts.")
                                   version ".tar.xz"))
               (sha256
                (base32
-                "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
+                "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  ;; Don't insist on write access to /var.
+                  (substitute* "src/etc/Makefile.in"
+                    (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
+                     (string-append "-$(INSTALL)" middle "localstatedir")))
+                  #t))))
     (inputs
      `(("openssl" ,openssl)
        ("libgcrypt" ,libgcrypt)))
     (build-system gnu-build-system)
+    (arguments '(#:configure-flags '("--localstatedir=/var")))
     (home-page "https://dun.github.io/munge/";)
     (synopsis "Cluster computing authentication service")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]