The APR port introduces a dependency upon Python which isn't always needed. Python is needed to run
the buildconf script. This script is needed to build APR from CVS. The port is using an APR distribution
tarball and because of this running buildconf is unnecessary. See the README.dev file in apr-1.0.1.tar.gz
for additional information.
The attached patch uses the WITH_PYTHON directive to introduce the Python dependency and run buildconf.
WITH_PYTHON brings the APR port Makefile in line with the Subversion Makefile which installs Python only
when this directive is defined.
Install APR from the ports tree.
Over to Maintainer
This change causes the apr ports to install libtool archives (libapr-1.la and
libaprutil.la) in the WITH_PYTHON case.
On Thursday, 9. June 2005 21:15, Michael Nottebrock wrote:
> This change causes the apr ports to install libtool archives (libapr-1.la
> and libaprutil.la) in the WITH_PYTHON case.
Typo: In the non-WITH_PYTHON case, i.e., if buildconf isn't run.
The fix has issues, reopening.
On Saturday, 11. June 2005 15:06, Brian Minard <email@example.com> wrote:
> Is the intallation of .la files a bad thing?
Not per se, but if they are installed, they need to be installed in *all*
possible cases, otherwise there's a chance of other stuff referencing the
archives and causing build failures when the libtool archives are suddenly
gone (for example because somebody recompiled apr WITH_PYTHON set).
Most importantly, they need to be added to pkg-plist and PORTREVISION needs to
be bumped again to get them registered in users' pkgdbs.
FWIW, the USE_PYTHON_BUILD knob has been fixed for a while now, so it's
possible to use that instead of the kludge in the port - this would also
avoid a runtime-dependency on python even when WITH_PYTHON is defined.
This patch caused different pkg-plists to be produced
in the WITH_PYTHON=yes and WITH_PYTHON=no cases, causing the
ports build to complain. I reverted this patch.
It is not worth fixing this issue, since it will involve
descending into the autoconf mess of APR's makefiles.