From owner-freebsd-ports@FreeBSD.ORG Thu Dec 27 10:31:13 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 5831DD08; Thu, 27 Dec 2012 10:31:13 +0000 (UTC) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Received: from nschwqsrv03p.mx.bigpond.com (nschwqsrv03p.mx.bigpond.com [61.9.189.237]) by mx1.freebsd.org (Postfix) with ESMTP id 36F2F8FC12; Thu, 27 Dec 2012 10:31:12 +0000 (UTC) Received: from nschwcmgw07p ([61.9.190.167]) by nschwmtas03p.mx.bigpond.com with ESMTP id <20121227084334.CMCC11739.nschwmtas03p.mx.bigpond.com@nschwcmgw07p>; Thu, 27 Dec 2012 08:43:34 +0000 Received: from hermes.heuristicsystems.com.au ([58.172.113.247]) by nschwcmgw07p with BigPond Outbound id gYjZ1k00H5LKYmq01YjZhE; Thu, 27 Dec 2012 08:43:34 +0000 X-Authority-Analysis: v=2.0 cv=BKIxXSsG c=1 sm=1 a=YibVxx38Z+cwdCKSMcELyg==:17 a=5anjIsZ_QvsA:10 a=k4yzAXmc-yEA:10 a=kj9zAlcOel0A:10 a=GHIR_BbyAAAA:8 a=-79fawLZPY0A:10 a=6I5d2MoRAAAA:8 a=ABiME7_sEUw_IrvO0F4A:9 a=CjuIK1q_8ugA:10 a=1qnIBCsI6BAA: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 qBR8cdDi044610 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Thu, 27 Dec 2012 19:38:41 +1100 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) From: "Dewayne Geraghty" To: References: <1TncE1-0005yN-0m@internal.tormail.org> <87r4mdzoog.wl%hskuhra@eumx.net> Subject: Problems with devel/apr1 or options_group Date: Thu, 27 Dec 2012 19:38:39 +1100 Message-ID: <826924ADF5944105BFBC01D6A4AA41A8@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: <87r4mdzoog.wl%hskuhra@eumx.net> Thread-Index: Ac3i/YgBUiJuNeMqSM2YyPOlb0f/AABCRNfg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: 'Baptiste Daroussin' 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 10:31:13 -0000 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 * Problem * Invoking the build of apr1 using this command: make -DBATCH -d vc >/tmp/apr-make 2>&1 Completes successfully however examing the debug output reveals (--without-ldap) is passed to it, below: cd /var/ports/usr/ports/devel/apr1/work/apr-util-1.4.1; /usr/bin/env CC="cc" TMPDIR="/tmp" ... ./configure --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --with-apr=/var/ports/usr/ports/devel/apr1/work/apr-1.4.6 --with-expat=/usr/local --with-iconv=/usr/local --with-gdbm=/usr/local --with-berkeley-db=/usr/local/include/db5:/usr/local/lib/db5 --without-ndbm --without-ldap --without-mysql --without-pgsql --without-sqlite3 --with-crypto --with-openssl=/usr The end result, from portmaster, is ===> apache22-2.2.23_3 LDAP and AUTHNZ_LDAP requires APR-util to have LDAP support built in. Please rebuild APR with LDAP support. I've reviewed: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-options.html To no avail; and taken Baptiste's summary advise of: - OPTIONS_SET: globally enable some options - OPTIONS_UNSET: globally disable some options - ${UNIQUENAME}_SET: enable per-port choice of options - ${UNIQUENAME}_UNSET: disable per-port choice of options * Platform * FreeBSD 9.1Stable as of 27th Dec (amd64 and i386 architectures). Ports are also portsnapped today, and before a build: all workareas, and /var/db/ports/* are rm'ed. * Solution * Unknown. We also added to ports.conf "APR_SET=LDAP | APU_SET=LDAP" with the same failure, I guess frustration had set in. However manually running "make clean; make config; make" does build apr1 with ldap. Is there a magician out there? Regards, Dewayne.