mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: libfabric: Depend on PSM2 only on supported systems.
Fixes a regression introduced in
2a6ea3895b
, that would make ‘libfabric’
unsupported on non-x86_64 systems.
* gnu/packages/linux.scm (libfabric)[inputs]: Define ‘if-supported’.
Use it for ‘psm’ and ‘psm2, and remove labels.
[arguments]: Remove ‘--enable-psm2’, which is unnecessary.
Change-Id: I2a52ce6feb52b8773779a401088743491c3ad30b
This commit is contained in:
parent
6dac85c092
commit
1003d62790
1 changed files with 12 additions and 9 deletions
|
@ -8903,17 +8903,20 @@ (define-public libfabric
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1znmw83rmippv0fwz0x7lgylfk17dr9ckll8lrm4z7kclspnqpj8"))))
|
(base32 "1znmw83rmippv0fwz0x7lgylfk17dr9ckll8lrm4z7kclspnqpj8"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("rdma-core" ,rdma-core)
|
(inputs
|
||||||
,@(match (%current-system)
|
(let ((if-supported ;XXX: copied from openmpi
|
||||||
((member (package-supported-systems psm))
|
(lambda (package)
|
||||||
`(("psm" ,psm)))
|
(if (and (not (%current-target-system))
|
||||||
(_ `()))
|
(member (%current-system)
|
||||||
("psm2" ,psm2)
|
(package-supported-systems package)))
|
||||||
("libnl" ,libnl)))
|
(list package)
|
||||||
|
'()))))
|
||||||
|
(append (list rdma-core libnl)
|
||||||
|
(if-supported psm)
|
||||||
|
(if-supported psm2))))
|
||||||
(arguments
|
(arguments
|
||||||
(list #:configure-flags
|
(list #:configure-flags
|
||||||
#~(list "--enable-psm2"
|
#~(list "--enable-efa"
|
||||||
"--enable-efa"
|
|
||||||
"--enable-verbs")))
|
"--enable-verbs")))
|
||||||
(home-page "https://ofiwg.github.io/libfabric/")
|
(home-page "https://ofiwg.github.io/libfabric/")
|
||||||
(synopsis "Open Fabric Interfaces")
|
(synopsis "Open Fabric Interfaces")
|
||||||
|
|
Loading…
Reference in a new issue