From delphij@tarsier.delphij.net  Tue Feb 27 10:42:18 2007
Return-Path: <delphij@tarsier.delphij.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B3D2816A40A;
	Tue, 27 Feb 2007 10:42:18 +0000 (UTC)
	(envelope-from delphij@tarsier.delphij.net)
Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229])
	by mx1.freebsd.org (Postfix) with ESMTP id 5F45E13C474;
	Tue, 27 Feb 2007 10:42:18 +0000 (UTC)
	(envelope-from delphij@tarsier.delphij.net)
Received: from localhost (tarsier.geekcn.org [210.51.165.229])
	by tarsier.geekcn.org (Postfix) with ESMTP id EA3FEEB6B63;
	Tue, 27 Feb 2007 18:20:08 +0800 (CST)
Received: from tarsier.geekcn.org ([210.51.165.229])
	by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024)
	with ESMTP id zhboefcvnqlC; Tue, 27 Feb 2007 18:20:01 +0800 (CST)
Received: from tarsier.delphij.net (tarsier.geekcn.org [210.51.165.229])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by tarsier.geekcn.org (Postfix) with ESMTP id 8D845EB0AFB;
	Tue, 27 Feb 2007 18:19:59 +0800 (CST)
Received: from tarsier.delphij.net (localhost [127.0.0.1])
	by tarsier.delphij.net (8.13.8/8.13.8) with ESMTP id l1RAJxuq099970;
	Tue, 27 Feb 2007 18:19:59 +0800 (CST)
	(envelope-from delphij@tarsier.delphij.net)
Received: (from delphij@localhost)
	by tarsier.delphij.net (8.13.8/8.13.8/Submit) id l1RAJrml099969;
	Tue, 27 Feb 2007 18:19:53 +0800 (CST)
	(envelope-from delphij)
Message-Id: <200702271019.l1RAJrml099969@tarsier.delphij.net>
Date: Tue, 27 Feb 2007 18:19:53 +0800 (CST)
From: Xin LI <delphij@freebsd.org>
Reply-To: Xin LI <delphij@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sergei@freebsd.org
Subject: [PATCH] Make sysutils/cfengine to honour user's PTHREAD_* settings
X-Send-Pr-Version: 3.113
X-GNATS-Notify: delphij@FreeBSD.org

>Number:         109594
>Category:       ports
>Synopsis:       [PATCH] Make sysutils/cfengine to honour user's PTHREAD_* settings
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sergei
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 27 10:50:03 GMT 2007
>Closed-Date:    Thu Mar 01 06:28:05 GMT 2007
>Last-Modified:  Thu Mar 01 06:28:05 GMT 2007
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->sergei 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Feb 27 10:50:13 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109594 
State-Changed-From-To: open->closed 
State-Changed-By: delphij 
State-Changed-When: Thu Mar 1 06:27:37 UTC 2007 
State-Changed-Why:  
Superceded by ports/109707 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109594 
>Unformatted:
