guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/07: gnu: hwloc: Skip 'linux-libnuma' test.


From: Ludovic Courtès
Subject: 01/07: gnu: hwloc: Skip 'linux-libnuma' test.
Date: Tue, 10 Apr 2018 11:44:39 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 10de06bd07eca266bdd59333cb671682af70fdcc
Author: Ludovic Courtès <address@hidden>
Date:   Tue Apr 10 14:29:33 2018 +0200

    gnu: hwloc: Skip 'linux-libnuma' test.
    
    That test would fail on some machines, for instance build machines
    behind berlin.guixsd.org.
    
    * gnu/packages/mpi.scm (hwloc)[arguments]: Add 'skip-linux-libnuma-test'
    phase.
    (hwloc-2.0)[arguments]: Replace it.
---
 gnu/packages/mpi.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm
index e4c1a49..5dfb26a 100644
--- a/gnu/packages/mpi.scm
+++ b/gnu/packages/mpi.scm
@@ -79,6 +79,14 @@
      `(#:configure-flags '("--localstatedir=/var")
        #:phases
        (modify-phases %standard-phases
+         (add-before 'check 'skip-linux-libnuma-test
+           (lambda _
+             ;; Arrange to skip 'tests/linux-libnuma', which fails on some
+             ;; machines: <https://github.com/open-mpi/hwloc/issues/213>.
+             (substitute* "tests/linux-libnuma.c"
+               (("numa_available\\(\\)")
+                "-1"))
+             #t))
          (add-after 'install 'refine-libnuma
            ;; Give -L arguments for libraries to avoid propagation
            (lambda* (#:key inputs outputs #:allow-other-keys)
@@ -128,7 +136,19 @@ bind processes, and much more.")
                 "0jf0krj1h95flmb784ifv9vnkdnajjz00p4zbhmja7vm4v67axdr"))))
 
     ;; libnuma is no longer needed.
-    (inputs (alist-delete "numactl" (package-inputs hwloc)))))
+    (inputs (alist-delete "numactl" (package-inputs hwloc)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments hwloc)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (replace 'skip-linux-libnuma-test
+             (lambda _
+               ;; Arrange to skip 'tests/hwloc/linux-libnuma', which fails on
+               ;; some machines: 
<https://github.com/open-mpi/hwloc/issues/213>.
+               (substitute* "tests/hwloc/linux-libnuma.c"
+                 (("numa_available\\(\\)")
+                  "-1"))
+               #t))))))))
 
 (define-public openmpi
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]