Date: Tue, 27 Feb 2007 18:19:53 +0800 (CST) From: Xin LI <delphij@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: sergei@FreeBSD.org Subject: ports/109594: [PATCH] Make sysutils/cfengine to honour user's PTHREAD_* settings Message-ID: <200702271019.l1RAJrml099969@tarsier.delphij.net> Resent-Message-ID: <200702271050.l1RAo3Cf001902@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109594 >Category: ports >Synopsis: [PATCH] Make sysutils/cfengine to honour user's PTHREAD_* settings >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 27 10:50:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Xin LI >Release: FreeBSD 6.2-RELEASE-p1 i386 >Organization: SINA Corporation >Environment: System: FreeBSD tarsier.delphij.net 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #1: Sat Feb 10 07:03:45 CST 2007 delphij@tarsier.delphij.net:/usr/obj/usr/src/sys/TARSIER i386 >Description: sysutils/cfengine does not honour users' PTHREAD_* settings. >How-To-Repeat: make PTHREAD_LIBS=-lthr >Fix: The following patch adds necessary automated reinplace commands to make the configure script accept system's dictation of PTHREAD_* settings. --- patch-cfengine begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/sysutils/cfengine/Makefile,v retrieving revision 1.36 diff -u -p -u -r1.36 Makefile --- Makefile 24 Jan 2007 22:47:36 -0000 1.36 +++ Makefile 27 Feb 2007 10:09:18 -0000 @@ -7,7 +7,7 @@ PORTNAME= cfengine PORTVERSION= 2.1.21 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.iu.hio.no/pub/cfengine/ \ ${MASTER_SITE_GNU} @@ -21,6 +21,7 @@ USE_OPENSSL= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ARGS= --with-berkeleydb=${LOCALBASE} --with-docs +CONFIGURE_ENV+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} CPPFLAGS+= -I${BDB_INCLUDE_DIR} LDFLAGS+= -L${BDB_LIB_DIR} -l${BDB_LIB_NAME} @@ -33,4 +34,10 @@ MAN8= cfagent.8 cfengine.8 cfenvd.8 cfe cfetoolinfo.8 cfetoolupdate.8 cfexecd.8 cfkey.8 \ cfrun.8 cfservd.8 cfshow.8 +post-patch: + @${REINPLACE_CMD} -e s,-pthread,${PTHREAD_CFLAGS},g \ + -e s,-lpthread,${PTHREAD_LIBS},g \ + -e s,lpthread,${PTHREAD_LIBS},g \ + ${WRKSRC}/configure + .include <bsd.port.mk> --- patch-cfengine ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702271019.l1RAJrml099969>