Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From 21a8680b7bd436867ac689a0b4b1b18a3359e208 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 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> |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 15 | [OP: Rebase to 0.9.3] |
| 16 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> |
Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 17 | --- |
| 18 | libdmmp/Makefile | 6 +++--- |
| 19 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 20 | |
| 21 | diff --git a/libdmmp/Makefile b/libdmmp/Makefile |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 22 | index e4589250..34e06425 100644 |
Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 23 | --- a/libdmmp/Makefile |
| 24 | +++ b/libdmmp/Makefile |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 25 | @@ -39,11 +39,11 @@ install: |
Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 26 | $(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 Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 38 | $(INSTALL_PROGRAM) -d 755 $(DESTDIR)$(man3dir) |
| 39 | $(INSTALL_PROGRAM) -m 644 -t $(DESTDIR)$(man3dir) docs/man/*.3 |
Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 40 | -- |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 41 | 2.38.1 |
Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 42 | |