blob: b35d67cf5940e92f2726e8662b4beb90057c00d5 [file] [log] [blame]
Andrew Geisslera2681d92020-10-16 10:17:07 -05001From 35421d03898ac1b38f97a76241e6a29086d0c9f1 Mon Sep 17 00:00:00 2001
2From: Geoff Parker <geoffrey.parker@arthrex.com>
3Date: Fri, 9 Oct 2020 17:48:47 +0000
4Subject: [PATCH] libdmmp/Makefile: replace perl with sed in install target to
5 work with pseudo
6
7The multipath-tools libdmmp/Makefile install target uses 'perl -i' instead
8of 'sed -i' for string substitutions. The perl method creates a temporary file
9and overwrites the original which changes the inodes and corrupts the pseudo
10db. Changes to pseduo cause a build abort rather than allow possible bad
11ownership or permissions settings on the files. 'sed -i' is compatible
12with pseudo.
13
14Signed-off-by: Geoff Parker <geoffrey.parker@arthrex.com>
15---
16 libdmmp/Makefile | 6 +++---
17 1 file changed, 3 insertions(+), 3 deletions(-)
18
19diff --git a/libdmmp/Makefile b/libdmmp/Makefile
20index 1dd3f340..8166075c 100644
21--- a/libdmmp/Makefile
22+++ b/libdmmp/Makefile
23@@ -34,11 +34,11 @@ install:
24 $(LN) $(LIBS) $(DESTDIR)$(usrlibdir)/$(DEVLIB)
25 $(INSTALL_PROGRAM) -m 644 -D \
26 $(PKGFILE).in $(DESTDIR)$(pkgconfdir)/$(PKGFILE)
27- perl -i -pe 's|__VERSION__|$(LIBDMMP_VERSION)|g' \
28+ sed -i 's|__VERSION__|$(LIBDMMP_VERSION)|g' \
29 $(DESTDIR)$(pkgconfdir)/$(PKGFILE)
30- perl -i -pe 's|__LIBDIR__|$(usrlibdir)|g' \
31+ sed -i 's|__LIBDIR__|$(usrlibdir)|g' \
32 $(DESTDIR)$(pkgconfdir)/$(PKGFILE)
33- perl -i -pe 's|__INCLUDEDIR__|$(includedir)|g' \
34+ sed -i 's|__INCLUDEDIR__|$(includedir)|g' \
35 $(DESTDIR)$(pkgconfdir)/$(PKGFILE)
36 @for file in docs/man/*.3.gz; do \
37 $(INSTALL_PROGRAM) -m 644 -D \
38--
392.20.1
40