mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
ce7d9c989d
commit
579f5c8a58
1 changed files with 13 additions and 3 deletions
|
@ -55,13 +55,23 @@ (define-public hwloc
|
|||
`(("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
|
||||
|
|
Loading…
Reference in a new issue