[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: multipath-tools: Set prefix instead of DESTDIR.
From: |
guix-commits |
Subject: |
03/03: gnu: multipath-tools: Set prefix instead of DESTDIR. |
Date: |
Mon, 14 Nov 2022 16:56:24 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 2a58ddb6da700978109f97a05157b6f9c758038c
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Nov 14 22:50:27 2022 +0100
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.
---
gnu/packages/linux.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 42a724b2c8..a879dcba8d 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -5203,7 +5203,7 @@ arrays when needed.")
(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 @@ arrays when needed.")
(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"))