all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#72734] [PATCH] gnu: libfabric: Depend on PSM2 only on supported systems.
@ 2024-08-20 14:58 Ludovic Courtès
  2024-08-26 12:07 ` Marcel van der Boom
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2024-08-20 14:58 UTC (permalink / raw)
  To: 72734; +Cc: Ludovic Courtès, Leo Famulari, Wilko Meyer

From: Ludovic Courtès <ludovic.courtes@inria.fr>

Fixes a regression introduced in
2a6ea3895bf554a70c699a1013d75ffa5407bcad, 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
---
 gnu/packages/linux.scm | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index a2a3601246..fecae036fb 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -8928,17 +8928,20 @@ (define-public libfabric
        (sha256
         (base32 "1znmw83rmippv0fwz0x7lgylfk17dr9ckll8lrm4z7kclspnqpj8"))))
     (build-system gnu-build-system)
-    (inputs `(("rdma-core" ,rdma-core)
-              ,@(match (%current-system)
-                       ((member (package-supported-systems psm))
-                        `(("psm" ,psm)))
-                       (_ `()))
-              ("psm2" ,psm2)
-              ("libnl" ,libnl)))
+    (inputs
+     (let ((if-supported                          ;XXX: copied from openmpi
+            (lambda (package)
+              (if (and (not (%current-target-system))
+                       (member (%current-system)
+                               (package-supported-systems package)))
+                  (list package)
+                  '()))))
+       (append (list rdma-core libnl)
+               (if-supported psm)
+               (if-supported psm2))))
     (arguments
      (list #:configure-flags
-           #~(list "--enable-psm2"
-                   "--enable-efa"
+           #~(list "--enable-efa"
                    "--enable-verbs")))
     (home-page "https://ofiwg.github.io/libfabric/")
     (synopsis "Open Fabric Interfaces")

base-commit: ce40b1c655edab622b4ad9ff49f948bd65753662
-- 
2.45.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#72734] [PATCH] gnu: libfabric: Depend on PSM2 only on supported systems.
  2024-08-20 14:58 [bug#72734] [PATCH] gnu: libfabric: Depend on PSM2 only on supported systems Ludovic Courtès
@ 2024-08-26 12:07 ` Marcel van der Boom
  2024-08-31 16:34   ` bug#72734: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel van der Boom @ 2024-08-26 12:07 UTC (permalink / raw)
  To: 72734

Can this patch be merged? my powerpc64le machine is affected by this bug.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#72734: [PATCH] gnu: libfabric: Depend on PSM2 only on supported systems.
  2024-08-26 12:07 ` Marcel van der Boom
@ 2024-08-31 16:34   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2024-08-31 16:34 UTC (permalink / raw)
  To: Marcel van der Boom; +Cc: 72734-done

Hi Marcel,

Marcel van der Boom <marcel@van-der-boom.nl> skribis:

> Can this patch be merged? my powerpc64le machine is affected by this bug.

Sure, will push in a moment.  The best way to get a patch applied is to
review it, which you sorta did indirectly, so thanks!

  https://guix.gnu.org/manual/devel/en/html_node/Reviewing-the-Work-of-Others.html

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-31 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20 14:58 [bug#72734] [PATCH] gnu: libfabric: Depend on PSM2 only on supported systems Ludovic Courtès
2024-08-26 12:07 ` Marcel van der Boom
2024-08-31 16:34   ` bug#72734: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.