pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libevent libevent: fix PR pkg/54983



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb649d442723
branches:  trunk
changeset: 423503:fb649d442723
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Wed Feb 19 15:21:34 2020 +0000

description:
libevent: fix PR pkg/54983

Remove symlinks before faking .pc files.

diffstat:

 devel/libevent/builtin.mk |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r fff638722828 -r fb649d442723 devel/libevent/builtin.mk
--- a/devel/libevent/builtin.mk Wed Feb 19 14:33:00 2020 +0000
+++ b/devel/libevent/builtin.mk Wed Feb 19 15:21:34 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.19 2019/11/03 10:39:16 rillig Exp $
+# $NetBSD: builtin.mk,v 1.20 2020/02/19 15:21:34 triaxx Exp $
 
 BUILTIN_PKG:=  libevent
 
@@ -153,6 +153,7 @@
 override-libevent-pkgconfig:
        ${RUN}                                          \
        ${MKDIR} ${BLKDIR_PKGCFG};                      \
+       ${RM} -f ${BLKDIR_PKGCFG}/${LIBEVENT_PKGCFGF};  \
        {                                               \
        ${ECHO} "prefix=${LIBEVENT_PREFIX}";            \
        ${ECHO} "exec_prefix=\$${prefix}";              \
@@ -164,8 +165,9 @@
        ${ECHO} "Version: ${BUILTIN_VERSION.libevent}"; \
        ${ECHO} "Libs: ${COMPILER_RPATH_FLAG}\$${libdir} -L\$${libdir} -levent";        \
        ${ECHO} "Cflags: -I\$${includedir}";            \
-       } >> ${BLKDIR_PKGCFG}/${LIBEVENT_PKGCFGF};
+       } > ${BLKDIR_PKGCFG}/${LIBEVENT_PKGCFGF};
        ${RUN}                                          \
+       ${RM} -f ${BLKDIR_PKGCFG}/${LIBEVENT_OPENSSL_PKGCFGF};  \
        {                                               \
        ${ECHO} "prefix=${LIBEVENT_PREFIX}";            \
        ${ECHO} "exec_prefix=\$${prefix}";              \
@@ -178,8 +180,9 @@
        ${ECHO} "Requires: libevent";   \
        ${ECHO} "Libs: ${COMPILER_RPATH_FLAG}\$${libdir} -L\$${libdir} -levent_openssl";        \
        ${ECHO} "Cflags: -I\$${includedir}";            \
-       } >> ${BLKDIR_PKGCFG}/${LIBEVENT_OPENSSL_PKGCFGF};
+       } > ${BLKDIR_PKGCFG}/${LIBEVENT_OPENSSL_PKGCFGF};
        ${RUN}                                          \
+       ${RM} -f ${BLKDIR_PKGCFG}/${LIBEVENT_PTHREADS_PKGCFGF}; \
        {                                               \
        ${ECHO} "prefix=${LIBEVENT_PREFIX}";            \
        ${ECHO} "exec_prefix=\$${prefix}";              \
@@ -192,6 +195,6 @@
        ${ECHO} "Requires: libevent";   \
        ${ECHO} "Libs: ${COMPILER_RPATH_FLAG}\$${libdir} -L\$${libdir} -levent_pthreads";       \
        ${ECHO} "Cflags: -I\$${includedir} -pthread";           \
-       } >> ${BLKDIR_PKGCFG}/${LIBEVENT_PTHREADS_PKGCFGF};
+       } > ${BLKDIR_PKGCFG}/${LIBEVENT_PTHREADS_PKGCFGF};
 .  endif
 .endif



Home | Main Index | Thread Index | Old Index