From owner-freebsd-ports@FreeBSD.ORG Thu Dec 27 14:49:06 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A16509BA; Thu, 27 Dec 2012 14:49:06 +0000 (UTC) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Received: from nskntmtas05p.mx.bigpond.com (nskntmtas05p.mx.bigpond.com [61.9.168.149]) by mx1.freebsd.org (Postfix) with ESMTP id 3C7DC8FC08; Thu, 27 Dec 2012 14:49:05 +0000 (UTC) Received: from nskntcmgw07p ([61.9.169.167]) by nskntmtas05p.mx.bigpond.com with ESMTP id <20121227144857.FUYI24726.nskntmtas05p.mx.bigpond.com@nskntcmgw07p>; Thu, 27 Dec 2012 14:48:57 +0000 Received: from hermes.heuristicsystems.com.au ([58.172.113.247]) by nskntcmgw07p with BigPond Outbound id geow1k00E5LKYmq01eowK7; Thu, 27 Dec 2012 14:48:57 +0000 X-Authority-Analysis: v=2.0 cv=IccFqBWa c=1 sm=1 a=YibVxx38Z+cwdCKSMcELyg==:17 a=hJkR5xIvEAEA:10 a=k4yzAXmc-yEA:10 a=kj9zAlcOel0A:10 a=GHIR_BbyAAAA:8 a=DUi8xz_rleMA:10 a=6I5d2MoRAAAA:8 a=86o89rg9hyQWUeH3XhMA:9 a=CjuIK1q_8ugA:10 a=SV7veod9ZcQA:10 a=YibVxx38Z+cwdCKSMcELyg==:117 Received: from black (black.hs [10.0.5.1]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.14.5/8.13.6) with ESMTP id qBREkv5b050784 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Fri, 28 Dec 2012 01:46:57 +1100 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) From: "Dewayne Geraghty" To: "'Kimmo Paasiala'" , "'Olli Hauer'" References: <1TncE1-0005yN-0m@internal.tormail.org> <87r4mdzoog.wl%hskuhra@eumx.net> <826924ADF5944105BFBC01D6A4AA41A8@black> <50DC53C9.7020506@FreeBSD.org> Subject: RE: Problems with devel/apr1 or options_group Date: Fri, 28 Dec 2012 01:46:56 +1100 Message-ID: <2349A8E64C094F499D854D735852D866@black> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac3kPXWOVc9CKMmjTGCBvyWbLFRNnAAAP0Lg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: 'Baptiste Daroussin' , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 14:49:06 -0000 > -----Original Message----- > From: owner-freebsd-ports@freebsd.org > [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Kimmo Paasiala > Sent: Friday, 28 December 2012 1:21 AM > To: Olli Hauer > Cc: Baptiste Daroussin; freebsd-ports@freebsd.org; Dewayne Geraghty > Subject: Re: Problems with devel/apr1 or options_group > > On Thu, Dec 27, 2012 at 3:57 PM, Olli Hauer > wrote: > > On 2012-12-27 09:38, Dewayne Geraghty wrote: > >> While trying to build apache22 with ldap, the dependency > apr1 passes a "--without-ldap" flag to apr-util which results > in apache > >> failing. > >> > >> * Background * > >> Some 450+ packages are built on a 4 monthly cycle, 149 of > these are controlled by ports.conf and built using > portmaster. This is the > >> second time since 2005 that I've been stuck and would > appreciate some advice/guidance whether the problem lies with > something in apr > >> that I am missing, or the use of ${UNIQUENAME}_SET doesn't > work with new OPTIONS_GROUP? > >> > >> We used a script to modify our ports.conf to accommodate > the new optionng _SET and _UNSET which worked nicely last > time ports were > >> built. > >> > >> These are the relevant options from ports.conf > >> devel/apr1: WITH_THREADS | WITH_BDB | WITH_LDAP | > WITHOUT_GDBM | APR1_UNSET=GDBM | APR1_SET=THREADS BDB LDAP > > [...] > > > > I suspect here is the mistake > > $> cd devel/apr1 > > $> make -V UNIQUENAME > > apr (-> not apr1) > > > > I don't work with portmaster (happy tinderbox user ;). > > Can you try the following line in your ports.conf > > > > file ports.conf: devel/apr1: WITH_THREADS | WITH_BDB | > WITH_LDAP | WITHOUT_GDBM | APR_UNSET=GDBM | APR_SET=THREADS BDB LDAP > > > > -- > > Regards, > > olli > > > Is there any particular reason why the UNIQUENAME couldn't just be the > name of the port in all cases? I would make writing the options in > optionsng format lot easier. > > -Kimmo Olli, Thank-you for the suggestion, unfortunately the result was the same, apr-util is built "without-ldap". I tested on two separate runs modifying ports.conf as follows: Run 1: (a desperate try-all run) devel/apr1: WITH_THREADS | WITH_BDB | WITH_LDAP | WITHOUT_GDBM | APR1_UNSET=GDBM | APR1_SET=THREADS BDB LDAP | APR_UNSET=GDBM | APR_SET=THREADS BDB LDAP | APU_UNSET=GDBM | APU_SET=THREADS BDB LDAP Run2: (in case there was a negative interaction between variables, apr and apr1?) devel/apr1: WITH_THREADS | WITH_BDB | WITH_LDAP | WITHOUT_GDBM | APR_UNSET=GDBM | APR_SET=THREADS BDB LDAP With the same unsuccessful result. Kimmo, Good point. In fact my ports.conf is the result of an automated script that "converted" all of the WITH_ and WITHOUT_ statements to UNIQUENAME_SET and _UNSET, until I have to modify it as a result of port maintainers' changes. A logical though clearly wrong assumption which applies to both devel/apr1's and devel/apr2's case, where "make -V UNIQUENAME" returns apr. And probably should be taken up as a separate thread. ;) This might help someone recall their workaround or why. Grepping the output from "make -DBATCH -d vc", the first without-ldap appears as: Global:APU_CONF_ARGS = --with-apr=${APR_WRKDIR} --with-expat=${LOCALBASE} --with-iconv=${LOCALBASE} --with-gdbm=${LOCALBASE} --with-berkeley-db=${BDB_INCLUDE_DIR}:${BDB_LIB_DIR} --without-ndbm --without-ldap ... If this is helpful I'm happy to put forward the full trace, but I fear something else is blocking the build. Regards, Dewayne. Sydney, Australia (GMT+11) So apologies if I might appear a little slow in replying after 1:30am