gnu: openpmix: Fix indentation.

* gnu/packages/parallel.scm (openpmix): Fix indentation.

Change-Id: I05751408847343ac593e666afc5f1efbbef94a79
This commit is contained in:
Maxim Cournoyer 2024-11-27 11:42:51 +09:00
parent d818d073df
commit de94238b3a
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -696,61 +696,61 @@ (define-public psimd
(define-public openpmix (define-public openpmix
(package (package
(name "openpmix") (name "openpmix")
(version "4.2.8") (version "4.2.8")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
"https://github.com/openpmix/openpmix/releases/download/v" "https://github.com/openpmix/openpmix/releases/download/v"
version "/pmix-" version ".tar.bz2")) version "/pmix-" version ".tar.bz2"))
(sha256 (sha256
(base32 (base32
"1j9xlhqrrmgjdkwakamn78y5gj756adi53hn25zksgr3is3l5d09")))) "1j9xlhqrrmgjdkwakamn78y5gj756adi53hn25zksgr3is3l5d09"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:configure-flags (list
#~(list (string-append "--with-hwloc=" #:configure-flags
(ungexp (this-package-input "hwloc") "lib")) #~(list (string-append "--with-hwloc="
"--enable-python-bindings") ;disabled by default (ungexp (this-package-input "hwloc") "lib"))
"--enable-python-bindings") ;disabled by default
;; Don't keep a reference to GCC. ;; Don't keep a reference to GCC.
#:disallowed-references (and (not (%current-target-system)) #:disallowed-references (and (not (%current-target-system))
(list (canonical-package gcc))) (list (canonical-package gcc)))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'set-LDFLAGS (add-after 'unpack 'set-LDFLAGS
(lambda _ (lambda _
;; The Cython-compiled shared library would fail the ;; The Cython-compiled shared library would fail the
;; validate-runpath phase otherwise. ;; validate-runpath phase otherwise.
(setenv "LDFLAGS" (setenv "LDFLAGS"
(string-append "-Wl,-rpath=" #$output "/lib")))) (string-append "-Wl,-rpath=" #$output "/lib"))))
(add-before 'configure 'strip-pmix-cc-absolute (add-before 'configure 'strip-pmix-cc-absolute
(lambda _ (lambda _
;; The 'pmix_info' program prints the 'configure' command ;; The 'pmix_info' program prints the 'configure' command line,
;; line, compiler absolute file name, etc., which causes it ;; compiler absolute file name, etc., which causes it to keep
;; to keep references to many build-time packages. Scrub ;; references to many build-time packages. Scrub these.
;; these. (substitute* "configure"
(substitute* "configure" (("PMIX_CC_ABSOLUTE=\"(.*)\"" _ cc)
(("PMIX_CC_ABSOLUTE=\"(.*)\"" _ cc) (string-append "PMIX_CC_ABSOLUTE=\"$(basename \""
(string-append "PMIX_CC_ABSOLUTE=\"$(basename \"" cc "\")\"\n")))))
cc "\")\"\n"))))) (add-after 'configure 'strip-pmix-config-header
(add-after 'configure 'strip-pmix-config-header (lambda _
(lambda _ (substitute* "src/include/pmix_config.h"
(substitute* "src/include/pmix_config.h" (("#define PMIX_CONFIGURE_CLI .*")
(("#define PMIX_CONFIGURE_CLI .*") "#define PMIX_CONFIGURE_CLI \"[scrubbed]\"\n")))))))
"#define PMIX_CONFIGURE_CLI \"[scrubbed]\"\n"))))))) (inputs (list libevent `(,hwloc "lib") zlib))
(inputs (list libevent `(,hwloc "lib") zlib)) (native-inputs (list perl python python-cython))
(native-inputs (list perl python python-cython)) (synopsis "PMIx library")
(synopsis "PMIx library") (description
(description "PMIx is an application programming interface standard that provides
"PMIx is an application programming interface standard that provides
libraries and programming models with portable and well-defined access to libraries and programming models with portable and well-defined access to
commonly needed services in distributed and parallel computing systems.") commonly needed services in distributed and parallel computing systems.")
(home-page "https://pmix.org/") (home-page "https://pmix.org/")
;; configure: WARNING: PMIx does not support 32 bit builds. ;; configure: WARNING: PMIx does not support 32 bit builds.
(supported-systems %64bit-supported-systems) (supported-systems %64bit-supported-systems)
;; The provided license is kind of BSD-style but specific. ;; The provided license is kind of BSD-style but specific.
(license (license:fsf-free "https://github.com/openpmix/openpmix?tab=License-1-ov-file#License-1-ov-file")))) (license (license:fsf-free "https://github.com/openpmix/openpmix?tab=License-1-ov-file#License-1-ov-file"))))
(define-public prrte (define-public prrte
(package (package