pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/libarchive libarchive: Quote all sed command...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a5771e6f159
branches:  trunk
changeset: 381439:7a5771e6f159
user:      leot <leot%pkgsrc.org@localhost>
date:      Thu Jun 07 11:47:58 2018 +0000

description:
libarchive: Quote all sed commands in fake-libarchive-pc target

At least the last `-e' contains whitespaces and can be problematic.
Avoid that by quoting all commands.

Should fix PR pkg/53347.

diffstat:

 archivers/libarchive/builtin.mk |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (28 lines):

diff -r 332424ef4f17 -r 7a5771e6f159 archivers/libarchive/builtin.mk
--- a/archivers/libarchive/builtin.mk   Thu Jun 07 07:39:13 2018 +0000
+++ b/archivers/libarchive/builtin.mk   Thu Jun 07 11:47:58 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.7 2018/06/06 14:21:09 prlw1 Exp $
+# $NetBSD: builtin.mk,v 1.8 2018/06/07 11:47:58 leot Exp $
 
 BUILTIN_PKG:=  libarchive
 
@@ -113,12 +113,12 @@
                        ${LN} -sf $${src} $${dst};                                      \
                else                                                                    \
                        ${ECHO_BUILDLINK_MSG} "Creating $${dst}";                       \
-                       ${SED}  -e s,@prefix@,${BUILDLINK_PREFIX.libarchive},           \
-                                       -e s,@exec_prefix@,${BUILDLINK_PREFIX.libarchive},\
-                                       -e s,@libdir@,${BUILDLINK_PREFIX.libarchive}/lib${LIBABISUFFIX},\
-                                       -e s,@includedir@,${BUILDLINK_PREFIX.libarchive}/include,\
-                                       -e s,@VERSION@,${BUILTIN_VERSION.libarchive},   \
-                                       -e s,@LIBS@,-llzma -lbz2 -lz,                   \
+                       ${SED}  -e 's,@prefix@,${BUILDLINK_PREFIX.libarchive},'         \
+                                       -e 's,@exec_prefix@,${BUILDLINK_PREFIX.libarchive},'\
+                                       -e 's,@libdir@,${BUILDLINK_PREFIX.libarchive}/lib${LIBABISUFFIX},'\
+                                       -e 's,@includedir@,${BUILDLINK_PREFIX.libarchive}/include,'\
+                                       -e 's,@VERSION@,${BUILTIN_VERSION.libarchive},' \
+                                       -e 's,@LIBS@,-llzma -lbz2 -lz,'                 \
                                $${sedsrc} > $${dst};                                   \
                fi                                                                      \
        fi



Home | Main Index | Thread Index | Old Index