gnu: multipath-tools: Don't install to /usr sub-folders.

* gnu/packages/linux.scm (multipath-tools)<#:make-flags>: Add SYSTEMDPATH entry.
<#:phases>: Add new 'patch-source' phase.
master
Marius Bakke 2017-04-18 15:30:22 +02:00
parent 2b3b745c00
commit b5fb9430ba
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 6 additions and 0 deletions

View File

@ -2630,11 +2630,17 @@ arrays when needed.")
'(#:tests? #f ; No tests.
#:make-flags (list (string-append "DESTDIR="
(assoc-ref %outputs "out"))
"SYSTEMDPATH=lib"
(string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out")
"/lib"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda _
(substitute* "Makefile.inc"
(("\\$\\(prefix\\)/usr") "$(prefix)"))
#t))
(delete 'configure)
(add-before 'build 'set-CC
(lambda _