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