Problems with devel/apr1 or options_group

Dewayne Geraghty dewayne.geraghty at
Thu Dec 27 10:31:13 UTC 2012

While trying to build apache22 with ldap, the dependency apr1 passes a "--without-ldap" flag to apr-util which results in apache

* 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

These are the relevant options from ports.conf

* 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:
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.

More information about the freebsd-ports mailing list