From 8e8a94ba15d1459e88bdc5315419fbf4dde7c769 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 4 May 2025 14:11:35 +0300 Subject: [PATCH] gnu: slurm-minimal: Only build with openpmix when supported. * gnu/packages/parallel.scm (slurm-minimal)[inputs]: Only include openpmix on systems where it is supported. Change-Id: If8ec32d409eb19bceff61d9f8a9350ec346744a0 --- gnu/packages/parallel.scm | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 4c8fc673b4..c5197fdc78 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013, 2014, 2020 Eric Bavier ;;; Copyright © 2015 Mark H Weaver -;;; Copyright © 2015-2018, 2020-2024 Efraim Flashner +;;; Copyright © 2015-2018, 2020-2025 Efraim Flashner ;;; Copyright © 2016 Pjotr Prins ;;; Copyright © 2016 Andreas Enge ;;; Copyright © 2016, 2020, 2021, 2022, 2023 Ricardo Wurmus @@ -230,14 +230,18 @@ when jobs finish.") (mkdir "contribs") (rename-file "tmp-pmi" "contribs/pmi") (rename-file "tmp-pmi2" "contribs/pmi2"))))) - (inputs (list freeipmi - `(,hwloc-2 "lib") - json-c - linux-pam - openpmix - munge - numactl - readline)) + (inputs + (append + (list freeipmi + `(,hwloc-2 "lib") + json-c + linux-pam) + (if (supported-package? openpmix) + (list openpmix) + '()) + (list munge + numactl + readline))) (native-inputs (list autoconf expect perl pkg-config python-wrapper)) (build-system gnu-build-system)