gnu: slurm: Link plugins with libslurm.

* gnu/packages/parallel.scm (slurm)[arguments]: Add phase
patch-plugin-linker-flags to link plugins with libslurm; run autoconf phase
after this new phase.
This commit is contained in:
Ricardo Wurmus 2021-04-28 10:17:01 +02:00
parent ffd5bc9600
commit d027637026
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -198,7 +198,12 @@ (define-public slurm
,@(if (target-64bit?) '() '("--enable-deprecated")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'autoconf
(add-after 'unpack 'patch-plugin-linker-flags
(lambda _
(substitute* (find-files "src/plugins/" "Makefile.in")
(("_la_LDFLAGS = ")
"_la_LDFLAGS = ../../../api/libslurm.la "))))
(add-after 'patch-plugin-linker-flags 'autoconf
(lambda _ (invoke "autoconf"))) ;configure.ac was patched
(add-after 'install 'install-libpmi
(lambda _