diff options
author | Ludovic Courtès <ludovic.courtes@inria.fr> | 2019-05-14 11:42:17 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-05-14 12:11:04 +0200 |
commit | 8d080506f4957e67d4e6d969f2743870db168abf (patch) | |
tree | 0a6a51570ddf1523b209f76456d5a744d6f8cfe0 /gnu/packages | |
parent | 05d907ac6fc6e139389a91ab5540c0dc573a8ce7 (diff) | |
download | patches-8d080506f4957e67d4e6d969f2743870db168abf.tar patches-8d080506f4957e67d4e6d969f2743870db168abf.tar.gz |
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/admin.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index b6aba4c38b..f485ea9bfe 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 |