[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/15: gnu: hwloc: Move numactl to inputs.
From: |
Eric Bavier |
Subject: |
03/15: gnu: hwloc: Move numactl to inputs. |
Date: |
Tue, 30 Jun 2015 01:29:44 +0000 |
bavier pushed a commit to branch master
in repository guix.
commit 579f5c8a58fef3a29ea3111ebae3177cd273492a
Author: Eric Bavier <address@hidden>
Date: Wed Jun 17 04:17:10 2015 -0500
gnu: hwloc: Move numactl to inputs.
* gnu/packages/mpi.scm (hwloc)[propagated-inputs]: Move numactl from here...
[inputs]: ...to here.
[arguments]: New 'refine-libnuma' phase.
---
gnu/packages/mpi.scm | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm
index 0e1016e..9677c12 100644
--- a/gnu/packages/mpi.scm
+++ b/gnu/packages/mpi.scm
@@ -55,13 +55,23 @@
`(("libx11" ,libx11)
("cairo" ,cairo)
("ncurses" ,ncurses)
+ ("numactl" ,numactl)
("libpciaccess" ,libpciaccess)
("expat" ,expat)))
(native-inputs
`(("pkg-config" ,pkg-config)))
- (propagated-inputs
- ;; 'hwloc.pc' refers to libnuma, hence the propagation.
- `(("numactl" ,numactl)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after
+ 'install 'refine-libnuma
+ ;; Give -L arguments for libraries to avoid propagation
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (numa (assoc-ref inputs "numactl")))
+ (substitute* (map (lambda (f) (string-append out "/" f))
+ '("lib/pkgconfig/hwloc.pc" "lib/libhwloc.la"))
+ (("-lnuma" lib) (string-append "-L" numa "/lib " lib)))))))))
(home-page "http://www.open-mpi.org/projects/hwloc/")
(synopsis "Abstraction of hardware architectures")
(description
- branch master updated (e8df8f4 -> a17d456), Eric Bavier, 2015/06/29
- 01/15: gnu: python-mccabe: Fix license field., Eric Bavier, 2015/06/29
- 04/15: gnu: openmpi: Upgrade to 1.8.5., Eric Bavier, 2015/06/29
- 03/15: gnu: hwloc: Move numactl to inputs.,
Eric Bavier <=
- 06/15: gnu: scotch, pt-scotch: Use modify-phases., Eric Bavier, 2015/06/29
- 08/15: gnu: Add ScaLAPACK., Eric Bavier, 2015/06/29
- 07/15: gnu: scotch, pt-scotch: Build esmumps libraries., Eric Bavier, 2015/06/29
- 09/15: gnu: Add p4est., Eric Bavier, 2015/06/29
- 02/15: gnu: hwloc: Upgrade to 1.10.1., Eric Bavier, 2015/06/29
- 10/15: gnu: Add METIS., Eric Bavier, 2015/06/29
- 05/15: gnu: Update scotch to 6.0.4., Eric Bavier, 2015/06/29
- 11/15: gnu: Add MUMPS., Eric Bavier, 2015/06/29
- 13/15: gnu: Add arpack-ng-openmpi., Eric Bavier, 2015/06/29
- 12/15: gnu: petsc: Upgrade to 3.6.0., Eric Bavier, 2015/06/29