diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2009-08-02 19:36:34 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2009-08-02 19:36:34 +0000 |
commit | 789d75c728ef23566a07bf5b9bc2190bf34ff4f1 (patch) | |
tree | dc7540d42fa2d5d7c1c74515e3bdbf6ab842cd17 /www/apache22 | |
parent | d1a9e827c98542eb35619dffa314cba50fb08b58 (diff) |
Notes
Diffstat (limited to 'www/apache22')
-rw-r--r-- | www/apache22/Makefile | 4 | ||||
-rw-r--r-- | www/apache22/files/patch-libtool22 | 122 | ||||
-rw-r--r-- | www/apache22/files/patch-srclib-apr-buildconf | 11 |
3 files changed, 125 insertions, 12 deletions
diff --git a/www/apache22/Makefile b/www/apache22/Makefile index ee10d5fc0246..1f497dbef6ed 100644 --- a/www/apache22/Makefile +++ b/www/apache22/Makefile @@ -36,13 +36,13 @@ CONFLICTS= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* apache+mod_ssl+modsnmp-1.* SCRIPTS_ENV+= LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \ LIBTOOL_VERSION=${LIBTOOL_VERSION} AUTOCONF=${AUTOCONF} \ - LIBTOOL_M4=${LOCALBASE}/share/aclocal/libtool${LIBTOOL_VERSION}.m4 \ + LIBTOOL_M4=${LIBTOOL_M4} \ AUTOHEADER=${AUTOHEADER} USE_APACHE= common22 USE_BZIP2= yes USE_ICONV= yes -USE_AUTOTOOLS= autoconf:262 libtool:15 +USE_AUTOTOOLS= autoconf:262 libtool:22 USE_PERL5= yes USE_RC_SUBR= apache22 htcacheclean LIBTOOLFILES= configure diff --git a/www/apache22/files/patch-libtool22 b/www/apache22/files/patch-libtool22 new file mode 100644 index 000000000000..079843239e13 --- /dev/null +++ b/www/apache22/files/patch-libtool22 @@ -0,0 +1,122 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 025_libtool_2.x_fixes.dpatch by <jsw@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Update build system to work with libtool 2.x +## DP: +## DP: This corresponds to upstream revisions: +## DP: 733052 +## DP: 742752 +## DP: 748902 +## DP: 757363 +diff --git a/buildconf b/buildconf +index bc0e9fd..11554ed 100755 +--- srclib/apr/buildconf ++++ srclib/apr/buildconf +@@ -35,17 +35,20 @@ fi + # Note: APR supplies its own config.guess and config.sub -- we do not + # rely on libtool's versions + # +-echo "Copying libtool helper files ..." ++echo "buildconf: copying libtool helper files using $libtoolize" + + # Remove any libtool files so one can switch between libtool 1.3 + # and libtool 1.4 by simply rerunning the buildconf script. +-(cd build ; rm -f ltconfig ltmain.sh libtool.m4) +- +-$libtoolize --copy --automake +- +-if [ -f libtool.m4 ]; then +- ltfile=`pwd`/libtool.m4 +-else ++(cd build ; rm -f ltconfig ltmain.sh libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4) ++ ++lt_pversion=`$libtoolize --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'` ++lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'` ++IFS=.; set $lt_version; IFS=' ' ++if test "$1" = "1"; then ++ $libtoolize --copy --automake ++ if [ -f libtool.m4 ]; then ++ ltfile=`pwd`/libtool.m4 ++ else + ltfindcmd="`sed -n \"/=[^\\\`]/p;/libtool_m4=/{s/.*=/echo /p;q;}\" \ + < $libtoolize`" + ltfile=${LIBTOOL_M4-`eval "$ltfindcmd"`} +@@ -54,21 +57,21 @@ else + ltpath=`dirname $libtoolize` + ltfile=`cd $ltpath/../share/aclocal ; pwd`/libtool.m4 + fi +-fi +- +-if [ ! -f $ltfile ]; then ++ fi ++ if [ ! -f $ltfile ]; then + echo "$ltfile not found" + exit 1 ++ fi ++ # Do we need this anymore? ++ echo "buildconf: Using libtool.m4 at ${ltfile}." ++ cat $ltfile | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4 + fi +- +-echo "buildconf: Using libtool.m4 at ${ltfile}." +- +-cat $ltfile | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4 +- +-# libtool.m4 from 1.6 requires ltsugar.m4 +-if [ -f ltsugar.m4 ]; then +- rm -f build/ltsugar.m4 +- mv ltsugar.m4 build/ltsugar.m4 ++if test "$1" = "2"; then ++ $libtoolize --copy ++ # Wouldn't it just be better to define top_builddir?? ++ mv build/libtool.m4 build/libtool.m4.$$ ++ cat build/libtool.m4.$$ | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4 ++ rm build/libtool.m4.$$ + fi + + # Clean up any leftovers +diff --git a/configure.in b/configure.in +index 46b4b32..2ac1439 100644 +--- srclib/apr/configure.in ++++ srclib/apr/configure.in +@@ -9,6 +9,7 @@ AC_PREREQ(2.50) + AC_INIT(build/apr_common.m4) + AC_CONFIG_HEADER(include/arch/unix/apr_private.h) + AC_CONFIG_AUX_DIR(build) ++AC_CONFIG_MACRO_DIR(build) + + dnl + dnl Include our own M4 macros along with those for libtool +@@ -20,6 +21,10 @@ sinclude(build/apr_win32.m4) + sinclude(build/apr_hints.m4) + sinclude(build/libtool.m4) + sinclude(build/ltsugar.m4) ++sinclude(build/argz.m4) ++sinclude(build/ltoptions.m4) ++sinclude(build/ltversion.m4) ++sinclude(build/lt~obsolete.m4) + + dnl Hard-coded inclusion at the tail end of apr_private.h: + AH_BOTTOM([ +@@ -117,6 +122,8 @@ dnl can only be used once within a configure script, so this prevents a + dnl preload section from invoking the macro to get compiler info. + AC_PROG_CC + ++AC_PROG_SED ++ + dnl Preload + APR_PRELOAD + +@@ -160,6 +167,11 @@ echo "performing libtool configuration..." + AC_ARG_ENABLE(experimental-libtool,[ --enable-experimental-libtool Use experimental custom libtool], + [experimental_libtool=$enableval],[experimental_libtool=no]) + ++dnl Workarounds for busted Libtool 2.x when we don't call AC_PROG_LIBTOOL ++if test "x$Xsed" = "x"; then ++ Xsed="$SED -e 1s/^X//" ++fi ++ + case $host in + *-os2*) + # Use a custom-made libtool replacement diff --git a/www/apache22/files/patch-srclib-apr-buildconf b/www/apache22/files/patch-srclib-apr-buildconf index 61d311890e74..f8638d7f4634 100644 --- a/www/apache22/files/patch-srclib-apr-buildconf +++ b/www/apache22/files/patch-srclib-apr-buildconf @@ -14,19 +14,10 @@ if [ -z "$ltfile" -o ! -f "$ltfile" ]; then ltpath=`dirname $libtoolize` - ltfile=`cd $ltpath/../share/aclocal ; pwd`/libtool.m4 -+ ltfile=${LIBTOOL_M4-`cd $ltpath/../../share/aclocal ; pwd`/${LIBTOOL_VERSION}.m4} ++ ltfile=${LIBTOOL_M4} fi fi -@@ -61,7 +61,7 @@ - exit 1 - fi - --echo "buildconf: Using libtool.m4 at ${ltfile}." -+echo "buildconf: Using libtool${LIBTOOL_VERSION}.m4 at ${ltfile}." - - cat $ltfile | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4 - @@ -87,8 +87,11 @@ # Remove autoconf 2.5x's cache directory rm -rf autom4te*.cache |