From e31ece97517312e9b054767c18c6f38d8d5d8618 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludovic.courtes@inria.fr>
Date: Tue, 16 Apr 2019 17:27:18 +0200
Subject: [PATCH] gnu: slurm: Configure with a "standard" syslogdir.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Until now, we were using syslogdir=$prefix/etc, which did not exist.
Thus, commands would always fail like this:

  $ guix environment --ad-hoc slurm --pure -- squeue -u $USER
  squeue: error: s_p_parse_file: unable to status file /gnu/store/…-slurm-17.11.3/etc/slurm.conf: No such file or directory, retrying in 1sec up to 60sec

* gnu/packages/parallel.scm (slurm)[arguments]: Pass --sysconfdir.
---
 gnu/packages/parallel.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm
index 167d03b9541..ceedae2e610 100644
--- a/gnu/packages/parallel.scm
+++ b/gnu/packages/parallel.scm
@@ -136,7 +136,7 @@ (define-public slurm
    (build-system gnu-build-system)
    (arguments
     `(#:configure-flags
-      (list "--enable-pam"
+      (list "--enable-pam" "--sysconfdir=/etc/slurm"
             (string-append "--with-freeipmi=" (assoc-ref %build-inputs "freeipmi"))
             (string-append "--with-hwloc=" (assoc-ref %build-inputs "hwloc"))
             (string-append "--with-json=" (assoc-ref %build-inputs "json-c"))
-- 
GitLab