ports/63533: mail/dcc-dccd, respect PTHREAD_LIBS
Craig Rodrigues
rodrigc at crodrigues.org
Sun Feb 29 16:50:19 UTC 2004
>Number: 63533
>Category: ports
>Synopsis: mail/dcc-dccd, respect PTHREAD_LIBS
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 29 08:50:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Craig Rodrigues
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dibbler.crodrigues.org 5.2-CURRENT FreeBSD 5.2-CURRENT #37
>Description:
This port currently does not respect PTHREAD_LIBS. This patch fixes it
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/dcc-dccd/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile 29 Feb 2004 04:17:51 -0000 1.8
+++ Makefile 29 Feb 2004 16:38:00 -0000
@@ -6,7 +6,7 @@
#
PORTNAME= dcc-dccd
-PORTVERSION= 1.2.28
+PORTVERSION= 1.2.32
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.rhyolite.com/anti-spam/dcc/source/ \
@@ -34,14 +34,11 @@
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502102
-FORBIDDEN= "Links against conflicting thread libraries"
-.endif
-
post-patch:
${FIND} ${WRKSRC} -type f -exec \
${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g' {} \;
- ${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' \
- ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e 's,PTHREAD_LDFLAGS="$$PTHREAD_LDFLAGS -pthread,PTHREAD_LDFLAGS="$$PTHREAD_LDFLAGS,g' ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e 's,FreeBSD)\n\tPTHREAD_LDFLAGS,FreeBSD)\n\tDCC_CFLAGS="${PTHREAD_CFLAGS} $$DCC_CFLAGS"\n\tPTHREAD_LDFLAGS,g' ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e 's,PTHREAD_LIBS="$$PTHREAD_LIBS -lc_r,PTHREAD_LIBS=" ${PTHREAD_LIBS},g' ${WRKSRC}/configure
.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/mail/dcc-dccd/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo 24 Jan 2004 09:42:24 -0000 1.3
+++ distinfo 29 Feb 2004 16:38:00 -0000
@@ -1 +1,2 @@
-MD5 (dcc-dccd-1.2.28.tar.Z) = 10a8402de107e81a028664cf4b93ec97
+MD5 (dcc-dccd-1.2.32.tar.Z) = 7cb772a9f128ce79c23f5961e1954698
+SIZE (dcc-dccd-1.2.32.tar.Z) = 1137819
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list