devel/apr1 removal of python27 and perl5 dependencies
Andre Oppermann
andre at freebsd.org
Fri Dec 7 18:19:06 UTC 2012
The devel/apr1 port currently has dependencies on python27 and perl5.
This makes it a royal pain to build for example subversion from source.
A closer inspection of why python and perl5 are included results in
the following:
python27: the port patch modifies the build environment to test for
modern, that is > 480000 and > 502102, versions of FreeBSD. I think
it is safe to assume that the port is indeed running on more modern
than that. During the re-run of buildconf python would be needed.
However the buildconf is already pre-populated in the distribution
tarball and a re-run is no longer required. That removes the python27
dependency.
perl5: the port doesn't depend on perl5 in any way. There are some
perl scripts in the tarball to convert from unix line ending to win32
line endings. Again, this is only needed for generating a distribution
tarball, if at all. That removes the perl5 dependency.
I've compiled devel/apr1 just fine without python27 and perl5 on a
10-CURRENT from this week.
The diff is below.
--
Andre
/usr/ports/devel/apr1# diff -u Makefile.old Makefile
--- Makefile.old 2012-12-07 19:15:41.000000000 +0100
+++ Makefile 2012-12-07 19:18:46.000000000 +0100
@@ -36,8 +36,6 @@
USE_ICONV= yes
USE_AUTOTOOLS= automake autoconf libtool:env
-USE_PERL5_BUILD= yes
-USE_PYTHON_BUILD= -2.7
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
@@ -172,13 +170,8 @@
${REINPLACE_CMD} -e 's|sql = apr_palloc|sql = apr_pcalloc|' ${APU_WRKDIR}/dbd/apr_dbd_freetds.c
run-autotools::
- cd ${APR_WRKDIR} ; \
- ${SETENV} ${CONFIGURE_ENV} ${SH} ./buildconf
cd ${APU_WRKDIR} ; \
${RM} -fr xml/expat
- cd ${APU_WRKDIR} ; \
- ${SETENV} ${CONFIGURE_ENV} ${SH} ./buildconf \
- --with-apr=${APR_WRKDIR}
${REINPLACE_CMD} -e 's/ gsed//g' \
${APR_WRKDIR}/build/libtool.m4 \
${APR_WRKDIR}/configure
More information about the freebsd-apache
mailing list