From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 6 05:50:01 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5709916A41A for ; Sat, 6 Oct 2007 05:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3970013C448 for ; Sat, 6 Oct 2007 05:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l965o1SW094014 for ; Sat, 6 Oct 2007 05:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l965o1Gp094013; Sat, 6 Oct 2007 05:50:01 GMT (envelope-from gnats) Resent-Date: Sat, 6 Oct 2007 05:50:01 GMT Resent-Message-Id: <200710060550.l965o1Gp094013@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, "Cory R. King" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE1B516A417 for ; Sat, 6 Oct 2007 05:42:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id E65D513C447 for ; Sat, 6 Oct 2007 05:42:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l965gu3B048667 for ; Sat, 6 Oct 2007 05:42:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l965guf8048666; Sat, 6 Oct 2007 05:42:56 GMT (envelope-from nobody) Message-Id: <200710060542.l965guf8048666@www.freebsd.org> Date: Sat, 6 Oct 2007 05:42:56 GMT From: "Cory R. King" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/116968: [patch] textproc/libxml2 with options X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2007 05:50:01 -0000 >Number: 116968 >Category: ports >Synopsis: [patch] textproc/libxml2 with options >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Oct 06 05:50:00 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Cory R. King >Release: FreeBSD 6.2-RELEASE-p3 >Organization: Mozi Media Group, LLC. >Environment: >Description: I've added options support for libxml2. Please make sure to keep that whole WITHOUT_THREADS business. It gets tricky trying to undefined WITH_THREADS in tinderbuild. I usually leave it defined and this port is the only that, as advertised, breaks other ports when built with threads. >How-To-Repeat: >Fix: --- Makefile.old Fri Oct 5 22:10:56 2007 +++ Makefile Fri Oct 5 22:30:00 2007 @@ -13,7 +13,7 @@ PORTNAME= libxml2 PORTVERSION= 2.6.30 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES?= textproc gnome MASTER_SITES= ftp://xmlsoft.org/libxml2/ \ ftp://fr.rpmfind.net/pub/libxml/ @@ -36,12 +36,25 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +OPTIONS= THREADS "Threadsafe (WILL BREAK PORTS LIKE PHP!)" off \ + SCHEMA "Add XML schema support" on \ + XMLLINT_HIST "Add history support xmllint tool" off \ + THREAD_ALLOC "Per-thread memory (DEVELOPERS ONLY!)" off \ + MEM_DEBUG "Memory debugging (DEVELOPERS ONLY!)" off + .if !defined(MASTERDIR) MAN1= xml2-config.1 xmllint.1 xmlcatalog.1 MAN3= libxml.3 .endif -.if defined(WITH_THREADS) + +.include + + +# We go through this !defined() because some people +# add WITH_THREADS to make.conf (or tinderbuild, where +# this is the only port that breaks with it enabled...) +.if defined(WITH_THREADS) && !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --with-threads .else CONFIGURE_ARGS+= --without-threads @@ -74,6 +87,6 @@ s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' ${WRKSRC}/${f} .endfor -.include +.include .endif >Release-Note: >Audit-Trail: >Unformatted: