gnu: multipath-tools: Set prefix instead of DESTDIR.

This is necessary to avoid having multipath look for its plugins in /lib
instead of /gnu/store/...-multipath-tools-.../lib.

* gnu/packages/linux.scm (multipath-tools)[arguments]: Replace DESTDIR with
prefix in make flags; override configdir to look up stateful configurations in
global /etc directory.
This commit is contained in:
Ricardo Wurmus 2022-11-14 22:50:27 +01:00
parent a570b4e1ee
commit 2a58ddb6da
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -5203,7 +5203,7 @@ (define-public multipath-tools
(list
#:test-target "test"
#:make-flags #~(list (string-append "CC=" #$(cc-for-target))
(string-append "DESTDIR=" #$output)
(string-append "prefix=" #$output)
;; Install Udev rules below this directory, relative
;; to the prefix.
"SYSTEMDPATH=lib")
@ -5218,6 +5218,8 @@ (define-public multipath-tools
(substitute* "Makefile.inc"
(("/bin/echo") "echo")
(("\\$\\(prefix\\)/usr") "$(prefix)")
(("configdir.*:= \\$\\(prefix\\)/etc/multipath/conf.d")
"configdir := /etc/multipath/conf.d")
;; Do not save timestamp to avoid gzip "timestamp
;; out-of-range" warnings.
(("gzip -9") "gzip -9n"))