Need help debugging apr port

Craig Rodrigues rodrigc at crodrigues.org
Wed Mar 31 16:17:49 PST 2004


Hi,

I am looking more into the apr port.

During the building of the port, the following command is run:


================================================================================
cd /usr/ports/devel/apr/work/apr-0.9.4; /usr/bin/env PORTOBJFORMAT=elf PATH=/usr/local/libexec/libtool15:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin BSD_INSTALL_PROGRAM="install  -s -o root -g wheel -m 555"  BSD_INSTALL_SCRIPT="install  -o root -g wheel -m 555"  BSD_INSTALL_DATA="install  -o root -g wheel -m 444"  BSD_INSTALL_MAN="install  -o root -g wheel -m 444" CURDIR=/usr/ports/devel/apr DISTDIR=/usr/ports/distfiles  WRKDIR=/usr/ports/devel/apr/work WRKSRC=/usr/ports/devel/apr/work PATCHDIR=/usr/ports/devel/apr/files  SCRIPTDIR=/usr/ports/devel/apr/scripts FILESDIR=/usr/ports/devel/apr/files  PORTSDIR=/usr/ports DEPENDS=""  PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/X11R6 ./buildconf
================================================================================

This command is kicked off by this rule in the apr port's Makefile:

pre-configure:
	cd ${WRKDIR}/apr-${PORTVERSION}; ${SETENV} ${SCRIPTS_ENV} ./buildconf
	cd ${WRKDIR}/apr-util-${PORTVERSION} ; \
	${RM} -fr xml/expat
	cd ${WRKDIR}/apr-util-${PORTVERSION} ; \
		${SH} ./buildconf \
		--with-apr=../apr-${PORTVERSION}


I need to export the AUTOCONF variable in addition to all the other
variables (X11BASE, etc.)  Would it be appropriate for me to do something like
this:


pre-configure:
	cd ${WRKDIR}/apr-${PORTVERSION}; ${SETENV} ${SCRIPTS_ENV} \
          ${AUTOCONF_ENV} ${AUTOCONF} ${AUTOCONF_ARGS} ./buildconf

          .....


Or is there another variable I should be using?

Thanks.

-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc at crodrigues.org


More information about the freebsd-ports mailing list