diff options
author | Zhai Edwin <edwin.zhai@intel.com> | 2010-12-17 10:00:20 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-20 21:36:57 +0000 |
commit | aa360877348aa325ff9dcd8fd70e502deacffb39 (patch) | |
tree | c28c30b710616064d5479f582f32a0f081355672 /meta/recipes-support/apr/apr | |
parent | 552169e89aea5706100a67f1f1e68a85600e1105 (diff) | |
download | openembedded-core-contrib-aa360877348aa325ff9dcd8fd70e502deacffb39.tar.gz |
apr: Update to 1.4.2
Add buildconf_fix.patch of removing new libtool detection method to avoid config
failure. Handled build/libtool.m4 & apr_rules.mk after configure to take place
of "top_builddir" by "apr_builddir", as these files would be reused by apr-util.
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Diffstat (limited to 'meta/recipes-support/apr/apr')
-rw-r--r-- | meta/recipes-support/apr/apr/buildconf_fix.patch | 25 | ||||
-rw-r--r-- | meta/recipes-support/apr/apr/cleanup.patch | 9 |
2 files changed, 29 insertions, 5 deletions
diff --git a/meta/recipes-support/apr/apr/buildconf_fix.patch b/meta/recipes-support/apr/apr/buildconf_fix.patch new file mode 100644 index 0000000000..641340b2a4 --- /dev/null +++ b/meta/recipes-support/apr/apr/buildconf_fix.patch @@ -0,0 +1,25 @@ +Remove the new libtool detection method to avoid config failure. Poky's libtool +has different format for "aclocaldir", and there is no elegant parsing method, +so fall back to old detection. + +Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> + +Index: apr-1.4.2/buildconf +=================================================================== +--- apr-1.4.2.orig/buildconf 2009-11-13 06:19:49.000000000 +0800 ++++ apr-1.4.2/buildconf 2010-11-29 14:39:19.000000000 +0800 +@@ -50,14 +50,6 @@ + + if [ -f libtool.m4 ]; then + ltfile=`pwd`/libtool.m4 +-elif grep all_pkgmacro_files $libtoolize > /dev/null; then +- # libtool 2.x +- aclocal_dir=`sed -n '/^aclocaldir=/{s/.*=//;p;q;}' < $libtoolize` +- ltfiles=`sed -n '/^all_pkgmacro_files=/{s/.*=//;;s/"//;p;q;}' < $libtoolize` +- for f in $ltfiles; do +- test -f "$aclocal_dir/$f" && cp "$aclocal_dir/$f" build +- done +- ltfile=$aclocal_dir/libtool.m4 + else + ltfindcmd="`sed -n \"/=[^\\\`]/p;/libtool_m4=/{s/.*=/echo /p;q;}\" \ + < $libtoolize`" diff --git a/meta/recipes-support/apr/apr/cleanup.patch b/meta/recipes-support/apr/apr/cleanup.patch index fd74826480..47f1c42c5c 100644 --- a/meta/recipes-support/apr/apr/cleanup.patch +++ b/meta/recipes-support/apr/apr/cleanup.patch @@ -1,7 +1,7 @@ -Index: apr-1.3.3/build/buildcheck.sh +Index: apr-1.4.2/build/buildcheck.sh =================================================================== ---- apr-1.3.3.orig/build/buildcheck.sh 2009-01-15 13:32:33.000000000 +0000 -+++ apr-1.3.3/build/buildcheck.sh 2009-01-15 13:33:06.000000000 +0000 +--- apr-1.4.2.orig/build/buildcheck.sh 2009-11-13 08:27:16.000000000 +0800 ++++ apr-1.4.2/build/buildcheck.sh 2010-11-26 15:44:00.000000000 +0800 @@ -32,35 +32,4 @@ echo "buildconf: autoconf version $ac_version (ok)" fi @@ -12,7 +12,7 @@ Index: apr-1.3.3/build/buildcheck.sh -# output is multiline from 1.5 onwards - -# Require libtool 1.4 or newer --libtool=`build/PrintPath glibtool libtool libtool15 libtool14` +-libtool=`build/PrintPath glibtool1 glibtool libtool libtool15 libtool14` -lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'` -if test -z "$lt_pversion"; then -echo "buildconf: libtool not found." @@ -39,4 +39,3 @@ Index: apr-1.3.3/build/buildcheck.sh - -exit 1 +exit 0 -\ No newline at end of file |