blob: 407dff507adfb0780dbf3f028d83d943c30a8958 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 21a8680b7bd436867ac689a0b4b1b18a3359e208 Mon Sep 17 00:00:00 2001
Andrew Geisslera2681d92020-10-16 10:17:07 -05002From: 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>
Andrew Geissler517393d2023-01-13 08:55:19 -060015[OP: Rebase to 0.9.3]
16Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Andrew Geisslera2681d92020-10-16 10:17:07 -050017---
18 libdmmp/Makefile | 6 +++---
19 1 file changed, 3 insertions(+), 3 deletions(-)
20
21diff --git a/libdmmp/Makefile b/libdmmp/Makefile
Andrew Geissler517393d2023-01-13 08:55:19 -060022index e4589250..34e06425 100644
Andrew Geisslera2681d92020-10-16 10:17:07 -050023--- a/libdmmp/Makefile
24+++ b/libdmmp/Makefile
Andrew Geissler517393d2023-01-13 08:55:19 -060025@@ -39,11 +39,11 @@ install:
Andrew Geisslera2681d92020-10-16 10:17:07 -050026 $(LN) $(LIBS) $(DESTDIR)$(usrlibdir)/$(DEVLIB)
27 $(INSTALL_PROGRAM) -m 644 -D \
28 $(PKGFILE).in $(DESTDIR)$(pkgconfdir)/$(PKGFILE)
29- perl -i -pe 's|__VERSION__|$(LIBDMMP_VERSION)|g' \
30+ sed -i 's|__VERSION__|$(LIBDMMP_VERSION)|g' \
31 $(DESTDIR)$(pkgconfdir)/$(PKGFILE)
32- perl -i -pe 's|__LIBDIR__|$(usrlibdir)|g' \
33+ sed -i 's|__LIBDIR__|$(usrlibdir)|g' \
34 $(DESTDIR)$(pkgconfdir)/$(PKGFILE)
35- perl -i -pe 's|__INCLUDEDIR__|$(includedir)|g' \
36+ sed -i 's|__INCLUDEDIR__|$(includedir)|g' \
37 $(DESTDIR)$(pkgconfdir)/$(PKGFILE)
Andrew Geissler517393d2023-01-13 08:55:19 -060038 $(INSTALL_PROGRAM) -d 755 $(DESTDIR)$(man3dir)
39 $(INSTALL_PROGRAM) -m 644 -t $(DESTDIR)$(man3dir) docs/man/*.3
Andrew Geisslera2681d92020-10-16 10:17:07 -050040--
Andrew Geissler517393d2023-01-13 08:55:19 -0600412.38.1
Andrew Geisslera2681d92020-10-16 10:17:07 -050042