diff options
-rw-r--r-- | meta-oe/recipes-support/multipath-tools/files/0032-libdmmp-Makefile-replace-perl-with-sed-in-install-ta.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-support/multipath-tools/multipath-tools_0.8.4.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0032-libdmmp-Makefile-replace-perl-with-sed-in-install-ta.patch b/meta-oe/recipes-support/multipath-tools/files/0032-libdmmp-Makefile-replace-perl-with-sed-in-install-ta.patch new file mode 100644 index 0000000000..b35d67cf59 --- /dev/null +++ b/meta-oe/recipes-support/multipath-tools/files/0032-libdmmp-Makefile-replace-perl-with-sed-in-install-ta.patch | |||
@@ -0,0 +1,40 @@ | |||
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 | |||
diff --git a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.8.4.bb b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.8.4.bb index 48a348d801..331c0cd018 100644 --- a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.8.4.bb +++ b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.8.4.bb | |||
@@ -43,6 +43,7 @@ SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http \ | |||
43 | file://0029-multipath-tools-modify-Makefile.inc-for-cross-compil.patch \ | 43 | file://0029-multipath-tools-modify-Makefile.inc-for-cross-compil.patch \ |
44 | file://0030-Always-use-devmapper.patch \ | 44 | file://0030-Always-use-devmapper.patch \ |
45 | file://0031-Always-use-devmapper-for-kpartx.patch \ | 45 | file://0031-Always-use-devmapper-for-kpartx.patch \ |
46 | file://0032-libdmmp-Makefile-replace-perl-with-sed-in-install-ta.patch \ | ||
46 | file://0001-fix-bug-of-do_compile-and-do_install.patch \ | 47 | file://0001-fix-bug-of-do_compile-and-do_install.patch \ |
47 | file://0001-add-explicit-dependency-on-libraries.patch \ | 48 | file://0001-add-explicit-dependency-on-libraries.patch \ |
48 | file://0001-fix-boolean-value-with-json-c-0.14.patch \ | 49 | file://0001-fix-boolean-value-with-json-c-0.14.patch \ |