Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 1 | From 35421d03898ac1b38f97a76241e6a29086d0c9f1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Geoff Parker <geoffrey.parker@arthrex.com> |
| 3 | Date: Fri, 9 Oct 2020 17:48:47 +0000 |
| 4 | Subject: [PATCH] libdmmp/Makefile: replace perl with sed in install target to |
| 5 | work with pseudo |
| 6 | |
| 7 | The multipath-tools libdmmp/Makefile install target uses 'perl -i' instead |
| 8 | of 'sed -i' for string substitutions. The perl method creates a temporary file |
| 9 | and overwrites the original which changes the inodes and corrupts the pseudo |
| 10 | db. Changes to pseduo cause a build abort rather than allow possible bad |
| 11 | ownership or permissions settings on the files. 'sed -i' is compatible |
| 12 | with pseudo. |
| 13 | |
| 14 | Signed-off-by: Geoff Parker <geoffrey.parker@arthrex.com> |
| 15 | --- |
| 16 | libdmmp/Makefile | 6 +++--- |
| 17 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 18 | |
| 19 | diff --git a/libdmmp/Makefile b/libdmmp/Makefile |
| 20 | index 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 | -- |
| 39 | 2.20.1 |
| 40 | |