diff options
author | Olli Hauer <ohauer@FreeBSD.org> | 2013-07-06 08:43:48 +0000 |
---|---|---|
committer | Olli Hauer <ohauer@FreeBSD.org> | 2013-07-06 08:43:48 +0000 |
commit | d770675cdfe477cda03a5ef82d7b9643ea67b0dd (patch) | |
tree | 5fc7d6c9531544baa8b3b000b68b5d4ef82818d0 /devel/apr1 | |
parent | 4f9800667d99407d8cb4c5f3559bf58909996988 (diff) | |
download | ports-d770675cdfe477cda03a5ef82d7b9643ea67b0dd.tar.gz ports-d770675cdfe477cda03a5ef82d7b9643ea67b0dd.zip |
Notes
Diffstat (limited to 'devel/apr1')
-rw-r--r-- | devel/apr1/Makefile | 102 | ||||
-rw-r--r-- | devel/apr1/distinfo | 8 | ||||
-rw-r--r-- | devel/apr1/files/patch-apr-util__dbd__apr_dbd_freetds.c | 14 | ||||
-rw-r--r-- | devel/apr1/files/patch-apr__configure | 28 | ||||
-rw-r--r-- | devel/apr1/files/patch-apr_hints.m4 | 15 |
5 files changed, 69 insertions, 98 deletions
diff --git a/devel/apr1/Makefile b/devel/apr1/Makefile index 80dd392f78ce..584e97d8dc7e 100644 --- a/devel/apr1/Makefile +++ b/devel/apr1/Makefile @@ -3,7 +3,6 @@ PORTNAME= apr PORTVERSION= ${APR_VERSION}.${APU_VERSION} -PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_APACHE} MASTER_SITE_SUBDIR= apr @@ -16,12 +15,11 @@ LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 MAKE_JOBS_SAFE= yes -NO_OPTIONS_SORT=yes OPTIONS_GROUP= APR APU OPTIONS_GROUP_APR= THREADS IPV6 DEVRANDOM OPTIONS_GROUP_APU= BDB GDBM LDAP MYSQL NDBM PGSQL SQLITE FREETDS OPTIONS_RADIO= CRYPTO -OPTIONS_RADIO_CRYPTO= SSL +OPTIONS_RADIO_CRYPTO= SSL NSS OPTIONS_DEFAULT= THREADS IPV6 DEVRANDOM BDB GDBM SSL DEVRANDOM_DESC= Use /dev/random or compatible @@ -29,18 +27,12 @@ NDBM_DESC= NDBM support SSL_DESC= OpenSSL crypto driver NSS_DESC= NSS crypto driver -.include <bsd.port.options.mk> - -APR_VERSION= 1.4.6 -APU_VERSION= 1.4.1 +APR_VERSION= 1.4.8 +APU_VERSION= 1.5.2 -USES= iconv -USE_AUTOTOOLS= automake autoconf libtool:env -USE_PYTHON_BUILD= -2.7 -USE_LDCONFIG= yes -GNU_CONFIGURE= yes - -CONFIGURE_ENV= CC="${CC}" +USES= iconv pathfix +USE_LDCONFIG= yes +GNU_CONFIGURE= yes NO_WRKSUBDIR= yes APR_WRKDIR= ${WRKDIR}/apr-${APR_VERSION} @@ -48,13 +40,15 @@ APU_WRKDIR= ${WRKDIR}/apr-util-${APU_VERSION} PLIST_SUB= SHLIB_APR_MAJOR="${SHLIB_APR_MAJOR}" SHLIB_APU_MAJOR="${SHLIB_APU_MAJOR}" SHLIB_APR_MAJOR= 4 -SHLIB_APU_MAJOR= 4 +SHLIB_APU_MAJOR= 5 APR_CONF_ARGS= --with-installbuilddir=${DATADIR}/build-1 APU_CONF_ARGS= --with-apr=${APR_WRKDIR} \ --with-expat=${LOCALBASE} \ --with-iconv=${LOCALBASE} +.include <bsd.port.options.mk> + ########## APR Options .if ${PORT_OPTIONS:MTHREADS} APR_CONF_ARGS+= --enable-threads @@ -131,7 +125,7 @@ PLIST_SUB+= MYSQL="" USE_MYSQL= YES APU_CONF_ARGS+= --with-mysql=${LOCALBASE} CONFIGURE_ENV+= LIBS="${LIBS}" -CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/mysql -DHAVE_MYSQL_H +CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/mysql -DHAVE_MYSQL_H LDFLAGS+= -L${LOCALBASE}/lib/mysql .else PLIST_SUB+= MYSQL="@comment " @@ -168,7 +162,7 @@ APU_CONF_ARGS+= --with-crypto APU_EXTRAS= yes USE_OPENSSL= yes PLIST_SUB+= SSL="" -CFLAGS+= -I${OPENSSLINC} +CPPFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} APU_CONF_ARGS+= --with-openssl=${OPENSSLBASE} .else @@ -176,85 +170,55 @@ PLIST_SUB+= SSL="@comment " APU_CONF_ARGS+= --without-openssl .endif -# TODO figure out why nss flag is ignored if ssl is set -# this works on other OS as expected .if ${PORT_OPTIONS:MNSS} APU_EXTRAS= yes PLIST_SUB+= NSS="" LIB_DEPENDS+= nss3:${PORTSDIR}/security/nss -CFLAGS+= -I${LOCALBASE}/include/nss +CPPFLAGS+= -I${LOCALBASE}/include/nss LDFLAGS+= -L${LOCALBASE}/lib/nss APU_CONF_ARGS+= --with-nss=${LOCALBASE} .else PLIST_SUB+= NSS="@comment " .endif +CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" + .if defined(APU_EXTRAS) PLIST_SUB+= APU_EXTRAS="" .else PLIST_SUB+= APU_EXTRAS="@comment " .endif -post-patch: .SILENT - ${REINPLACE_CMD} -e 's/OSVERSION/${OSVERSION}/g' \ - ${APR_WRKDIR}/build/apr_hints.m4 - ${FIND} ${APR_WRKDIR} ${APU_WRKDIR} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \ - 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' - ${REINPLACE_CMD} -e '1 s/python/${PYTHON_VERSION}/' \ - ${APR_WRKDIR}/build/gen-build.py - ${REINPLACE_CMD} -e 's/void main/int main/' ${APR_WRKDIR}/build/apr_network.m4 +post-patch: + @${REINPLACE_CMD} -e 's/OSVERSION/${OSVERSION}/g' \ + ${APR_WRKDIR}/configure + @${REINPLACE_CMD} -e '/recursive:/s/$$/ .MAKE/' \ + ${APR_WRKDIR}/build/apr_rules.mk.in # Fix pthread: Please do not remove, else apr-1-config returns wrong values - ${REINPLACE_CMD} -e 's/-lpthread/-pthread/g' \ - ${APR_WRKDIR}/build/apr_threads.m4 ${APR_WRKDIR}/build/apr_hints.m4 \ - ${APU_WRKDIR}/build/apu-conf.m4 - -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 \ + @${REINPLACE_CMD} -e 's/-lpthread/-pthread/g' \ ${APR_WRKDIR}/configure - cd ${APR_WRKDIR}; \ - ${SETENV} ${CONFIGURE_ENV} ${SH} \ - ./configure ${CONFIGURE_ARGS} ${APR_CONF_ARGS} - cd ${APU_WRKDIR}; \ - ${SETENV} ${CONFIGURE_ENV} CFLAGS="${CFLAGS}" ${SH} \ - ./configure ${CONFIGURE_ARGS} ${APU_CONF_ARGS} do-configure: - ${DO_NADA} + @(cd ${APR_WRKDIR} && \ + ${SETENV} ${CONFIGURE_ENV} \ + ./configure ${CONFIGURE_ARGS} ${APR_CONF_ARGS}) + @(cd ${APU_WRKDIR} && \ + ${SETENV} ${CONFIGURE_ENV} \ + ./configure ${CONFIGURE_ARGS} ${APU_CONF_ARGS}) do-build: - cd ${APR_WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE} - cd ${APU_WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE} + @(cd ${APR_WRKDIR} && ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS}) + @(cd ${APU_WRKDIR} && ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS}) do-install: - cd ${APR_WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET} - cd ${APU_WRKDIR}; ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET} + @(cd ${APR_WRKDIR} && ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET}) + @(cd ${APU_WRKDIR} && ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET}) test: build - -@(cd ${APR_WRKDIR}; ${MAKE} test) - -@(cd ${APU_WRKDIR}; ${MAKE} test) + -@(cd ${APR_WRKDIR} && ${SETENV} ${MAKE_ENV} ${MAKE} test) + -@(cd ${APU_WRKDIR} && ${SETENV} ${MAKE_ENV} ${MAKE} test) #regression-test: test -debug_autoconf: - @${ECHO} "LIBTOOL: ${LIBTOOL_VERSION}" - @${ECHO} "AUTOCONF: dev ${dev_acver} cur ${cur_acver} use ${use_acver}" - @${ECHO} "AUTOMAKE: dev ${dev_amver} cur ${cur_amver} use ${use_amver}" - @${ECHO} "AUTOCONF_DIR: ${AUTOCONF_DIR}" - @${ECHO} "BUILD_DEPENDS: ${BUILD_DEPENDS}" - @${ECHO} "ACLOCAL_DIR: ${ACLOCAL_DIR}" - @${ECHO} "LIBTOOLFILES: ${LIBTOOLFILES}" - @${ECHO} "LIBTOOL_SHAREDIR: ${LIBTOOL_SHAREDIR}" - @${ECHO} "LIBTOOL_LIBEXECDIR: ${LIBTOOL_LIBEXECDIR}" - @${ECHO} "LIBTOOL_M4: ${LIBTOOL_M4}" - @${ECHO} "${SETENV} ${CONFIGURE_ENV} ${SH} ./configure ${CONFIGURE_ARGS} ${APR_CONF_ARGS}" - @${ECHO} "${SETENV} ${CONFIGURE_ENV} CFLAGS="${CFLAGS}" ${SH} ./configure ${CONFIGURE_ARGS} ${APR_UTIL_CONF_ARGS}" - .include <bsd.port.mk> diff --git a/devel/apr1/distinfo b/devel/apr1/distinfo index e21c84c561f7..69408204cd1b 100644 --- a/devel/apr1/distinfo +++ b/devel/apr1/distinfo @@ -1,4 +1,4 @@ -SHA256 (apr-1.4.6.tar.gz) = 538d593d805c36985fc6d200d31bf6c1b5f90df2a50b917902743a13bbc10e05 -SIZE (apr-1.4.6.tar.gz) = 982243 -SHA256 (apr-util-1.4.1.tar.gz) = d636d9ef95c6e50e47fc338d532aa375edd11e5d7a3c30dee48beb38ddf4ab4c -SIZE (apr-util-1.4.1.tar.gz) = 774770 +SHA256 (apr-1.4.8.tar.gz) = 1689e415bdfab6aaa41f07836b5dd9ed4901d22ddeb99feffdb2cee3124adf49 +SIZE (apr-1.4.8.tar.gz) = 979397 +SHA256 (apr-util-1.5.2.tar.gz) = a1ec5025373815795d2fa5bfac40c0984675feffc88e049be9a162c408c2f613 +SIZE (apr-util-1.5.2.tar.gz) = 867573 diff --git a/devel/apr1/files/patch-apr-util__dbd__apr_dbd_freetds.c b/devel/apr1/files/patch-apr-util__dbd__apr_dbd_freetds.c index b1ca50ebfd11..343eebcfb2c9 100644 --- a/devel/apr1/files/patch-apr-util__dbd__apr_dbd_freetds.c +++ b/devel/apr1/files/patch-apr-util__dbd__apr_dbd_freetds.c @@ -4,8 +4,8 @@ # I've made the FreeTDS-driver work again -- and submitted the patch to Apache: # https://issues.apache.org/bugzilla/show_bug.cgi?id=53666 =================================================================================== ---- ./apr-util-1.4.1/dbd/apr_dbd_freetds.c.orig 2009-02-13 07:04:00.000000000 +0100 -+++ ./apr-util-1.4.1/dbd/apr_dbd_freetds.c 2013-01-13 22:17:09.000000000 +0100 +--- ./apr-util-1.5.2/dbd/apr_dbd_freetds.c.orig 2012-08-05 23:09:15.000000000 +0200 ++++ ./apr-util-1.5.2/dbd/apr_dbd_freetds.c 2013-07-04 22:55:08.000000000 +0200 @@ -40,12 +40,12 @@ #include <freetds/sybdb.h> #endif @@ -196,7 +196,6 @@ case SUCCEED: return 0; case REG_ROW: return 0; case NO_MORE_ROWS: -- apr_pool_cleanup_run(pool, res->proc, clear_result); + if (dbisopt(res->proc, DBBUFFER, NULL) || sequential) { + sql->lasterror = apr_pstrcat(sql->pool, + "NO_MORE_ROWS (count: ", apr_itoa(sql->pool, DBCOUNT(res->proc)), @@ -208,7 +207,7 @@ + sql->lasterror = "NO_MORE_ROWS (DBBUFFER option must be on " + "for dbgetrow() to work)"; + } -+ apr_pool_cleanup_run(res->pool, res->proc, clear_result); + apr_pool_cleanup_run(res->pool, res->proc, clear_result); *rowp = NULL; return -1; - case FAIL: return 1; @@ -429,12 +428,7 @@ --key; ++klen; } -@@ -627,10 +568,11 @@ - if (process == NULL) { - return NULL; - } -- sql = apr_palloc (pool, sizeof (apr_dbd_t)); -+ sql = apr_pcalloc(pool, sizeof (apr_dbd_t)); +@@ -631,6 +572,7 @@ sql->pool = pool; sql->proc = process; sql->params = params; diff --git a/devel/apr1/files/patch-apr__configure b/devel/apr1/files/patch-apr__configure new file mode 100644 index 000000000000..45cc997a0cec --- /dev/null +++ b/devel/apr1/files/patch-apr__configure @@ -0,0 +1,28 @@ +--- ./apr-1.4.8/configure.orig 2013-06-30 12:29:38.000000000 +0200 ++++ ./apr-1.4.8/configure 2013-06-30 12:32:04.000000000 +0200 +@@ -6642,11 +6642,7 @@ + apr_lock_method="USE_FLOCK_SERIALIZE" + fi + +- if test -x /sbin/sysctl; then +- os_version=`/sbin/sysctl -n kern.osreldate` +- else +- os_version=000000 +- fi ++ os_version="OSVERSION" + # 502102 is when libc_r switched to libpthread (aka libkse). + if test $os_version -ge "502102"; then + apr_cv_pthreads_cflags="none" +@@ -18784,11 +18780,7 @@ + # comparisons. + case $host in + *freebsd*) +- if test -x /sbin/sysctl; then +- os_version=`/sbin/sysctl -n kern.osreldate` +- else +- os_version=000000 +- fi ++ os_version="OSVERSION" + ;; + *linux*) + os_version=`uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/'` diff --git a/devel/apr1/files/patch-apr_hints.m4 b/devel/apr1/files/patch-apr_hints.m4 deleted file mode 100644 index 0664cafe4baa..000000000000 --- a/devel/apr1/files/patch-apr_hints.m4 +++ /dev/null @@ -1,15 +0,0 @@ ---- apr-1.4.6/build/apr_hints.m4.orig Wed Oct 27 11:12:28 2004 -+++ apr-1.4.6/build/apr_hints.m4 Wed Oct 27 11:25:32 2004 -@@ -159,11 +159,7 @@ - ;; - *-freebsd*) - APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE]) -- if test -x /sbin/sysctl; then -- os_version=`/sbin/sysctl -n kern.osreldate` -- else -- os_version=000000 -- fi -+ os_version="OSVERSION" - # 502102 is when libc_r switched to libpthread (aka libkse). - if test $os_version -ge "502102"; then - apr_cv_pthreads_cflags="none" |