pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/zlib zlib: Quote BUILDLINK_PREFIX.zlib with `:Q'...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6659714ec899
branches:  trunk
changeset: 381487:6659714ec899
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Jun 08 07:51:33 2018 +0000

description:
zlib: Quote BUILDLINK_PREFIX.zlib with `:Q' operator in fake-zlib-pc target

Properly quote BUILDLINK_PREFIX.zlib via the `:Q' operator.

Pointed out by <prlw1> via pkgsrc-changes@ and discussed with
<joerg>, thanks!

diffstat:

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

diffs (36 lines):

diff -r b1824787e08f -r 6659714ec899 devel/zlib/builtin.mk
--- a/devel/zlib/builtin.mk     Fri Jun 08 01:41:15 2018 +0000
+++ b/devel/zlib/builtin.mk     Fri Jun 08 07:51:33 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.13 2017/04/04 08:57:33 adam Exp $
+# $NetBSD: builtin.mk,v 1.14 2018/06/08 07:51:33 leot Exp $
 
 BUILTIN_PKG:=  zlib
 
@@ -93,7 +93,7 @@
 fake-zlib-pc:
        ${RUN}  \
        sedsrc=../../devel/zlib/files/zlib.pc.in;       \
-       src=${BUILDLINK_PREFIX.zlib}/lib${LIBABISUFFIX}/pkgconfig/zlib.pc;\
+       src=${BUILDLINK_PREFIX.zlib:Q}/lib${LIBABISUFFIX}/pkgconfig/zlib.pc;\
        dst=${_FAKE_ZLIB_PC};                                   \
        ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig;\
        if [ ! -f $${dst} ]; then       \
@@ -102,12 +102,12 @@
                        ${LN} -sf $${src} $${dst};                      \
                else    \
                        ${ECHO_BUILDLINK_MSG} "Creating $${dst}";       \
-                       ${SED}  -e s,@prefix@,${BUILDLINK_PREFIX.zlib},\
-                                       -e s,@exec_prefix@,${BUILDLINK_PREFIX.zlib},\
-                                       -e s,@libdir@,${BUILDLINK_PREFIX.zlib}/lib${LIBABISUFFIX},\
+                       ${SED}  -e s,@prefix@,${BUILDLINK_PREFIX.zlib:Q},\
+                                       -e s,@exec_prefix@,${BUILDLINK_PREFIX.zlib:Q},\
+                                       -e s,@libdir@,${BUILDLINK_PREFIX.zlib:Q}/lib${LIBABISUFFIX},\
                                        -e s,@VERSION@,${BUILTIN_VERSION.zlib},\
-                                       -e s,@includedir@,${BUILDLINK_PREFIX.zlib}/include,\
-                                       -e s,@sharedlibdir@,${BUILDLINK_PREFIX.zlib}/lib,\
+                                       -e s,@includedir@,${BUILDLINK_PREFIX.zlib:Q}/include,\
+                                       -e s,@sharedlibdir@,${BUILDLINK_PREFIX.zlib:Q}/lib,\
                                $${sedsrc} > $${dst};                   \
                fi      \
        fi



Home | Main Index | Thread Index | Old Index