From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Oct 20 10:50:22 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F0AA16A4CE for ; Wed, 20 Oct 2004 10:50:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1729143D55 for ; Wed, 20 Oct 2004 10:50:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i9KAoLfE034143 for ; Wed, 20 Oct 2004 10:50:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9KAoLux034142; Wed, 20 Oct 2004 10:50:21 GMT (envelope-from gnats) Resent-Date: Wed, 20 Oct 2004 10:50:21 GMT Resent-Message-Id: <200410201050.i9KAoLux034142@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Simon Barner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4CBD16A4CE for ; Wed, 20 Oct 2004 10:43:54 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id DB13A43D53 for ; Wed, 20 Oct 2004 10:43:53 +0000 (GMT) (envelope-from barner@gmx.de) Received: (qmail 7516 invoked by uid 65534); 20 Oct 2004 10:43:52 -0000 Received: from unknown (EHLO zi025.glhnet.mhn.de) (129.187.19.157) by mail.gmx.net (mp002) with SMTP; 20 Oct 2004 12:43:52 +0200 Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id B1AA3C0ED; Wed, 20 Oct 2004 12:44:46 +0200 (CEST) Message-Id: <20041020104446.B1AA3C0ED@zi025.glhnet.mhn.de> Date: Wed, 20 Oct 2004 12:44:46 +0200 (CEST) From: Simon Barner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/72916: textproc/xerces-c: fix PTHREAD_* handling X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Simon Barner List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 10:50:22 -0000 >Number: 72916 >Category: ports >Synopsis: textproc/xerces-c: fix PTHREAD_* handling >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 20 10:50:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Simon Barner >Release: FreeBSD 5.3-BETA6 i386 >Organization: >Environment: FreeBSD zi025.glhnet.mhn.de 5.3-BETA6 FreeBSD 5.3-BETA6#0: Mon Aug 23 14:34:13 CEST 2004 root@zi025.glhnet.mhn.de:/mnt/fbsd521/usr/src/sys/i386/compile/KIS TE i386 >Description: This port is currently marked FORBIDDEN since it does not respect PTHREAD_{CFLAGS, LIBS}. The attached patch fixes this issue. >How-To-Repeat: Try to build port... >Fix: --- xerces-c.patch begins here --- diff -ruN xerces-c.orig/Makefile xerces-c/Makefile --- xerces-c.orig/Makefile Tue Feb 17 10:57:41 2004 +++ xerces-c/Makefile Wed Oct 20 12:31:26 2004 @@ -30,7 +30,9 @@ HAS_CONFIGURE= yes CONFIGURE_SCRIPT= runConfigure -CONFIGURE_ENV+= XERCESCROOT=${WRKSRC} TRANSCODER="IconvFBSD" +CONFIGURE_ENV+= XERCESCROOT=${WRKSRC} TRANSCODER="IconvFBSD" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" CONFIGURE_ARGS= -p freebsd -n socket -P ${PREFIX} .if defined(NO_THREADS) CONFIGURE_ARGS+= -r none @@ -39,10 +41,6 @@ PLIST_SUB+= XERCESC_VER=${PORTVERSION:S/./_/g} \ .include - -.if ${OSVERSION} >= 502102 -FORBIDDEN= "Does not respect PTHREAD_{CFLAGS,LIBS}" -.endif pre-configure: ${CHMOD} 700 ${CONFIGURE_WRKSRC}/runConfigure diff -ruN xerces-c.orig/files/patch-src::xercesc::runConfigure xerces-c/files/patch-src::xercesc::runConfigure --- xerces-c.orig/files/patch-src::xercesc::runConfigure Thu Jan 1 01:00:00 1970 +++ xerces-c/files/patch-src::xercesc::runConfigure Wed Oct 20 12:27:08 2004 @@ -0,0 +1,13 @@ +--- src/xercesc/runConfigure.orig Wed Oct 20 12:25:47 2004 ++++ src/xercesc/runConfigure Wed Oct 20 12:26:33 2004 +@@ -294,8 +294,8 @@ + ;; + esac + elif test $platform = "freebsd"; then +- threadingLibs="-pthread -lc_r" +- threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS" ++ threadingLibs="${PTHREAD_LIBS}" ++ threadingDefines="${PTHREAD_CFLAGS} -DXML_USE_PTHREADS" + elif test $platform = "aix"; then + aix_version=`./config.guess`; + echo Found host system to be $aix_version --- xerces-c.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: