From: "Zhai, Edwin" <edwin.zhai@intel.com>
To: Saul Wold <sgw@linux.intel.com>
Cc: "poky@yoctoproject.org" <poky@yoctoproject.org>
Subject: Re: [PATCH 2/7] apr: Update to 1.4.2
Date: Fri, 07 Jan 2011 08:54:40 +0800 [thread overview]
Message-ID: <4D266450.8010407@intel.com> (raw)
In-Reply-To: <4D237B27.6040701@linux.intel.com>
Saul Wold wrote:
> On 01/04/2011 05:50 AM, Zhai Edwin wrote:
>
>> 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.
>>
>>
> Edwin,
>
> Is there a reason that this change can not be implemented as a patch?
>
We need something run after configure, so patch doesn't work.
> I note that buildconf script already does make a libtool.m4 fixup
> similar to what you are doing.
>
Yes, it's done before configure. It copy $ltfile to libtool.m4, then
substitute "top_builddir", so patch doesn't work here too.
The headache is this handled file got overwritten after autoconf, and
restored to "top_builddir" again:( So I have to substitute it again.
I'm not sure if this overwriting in autoconf is right(apr-1.3.5 doesn't
do it). I will further check it.
> I also notice that there is both a top_blddir and top_builddir, I wonder
> if the top_blddir should really be patched to be top_builddir?
>
I saw this also, and believed that it should be a harmless bug in upstream.
> Please investigate this further and re-submit this change.
>
> Sau!
>
>
>> Signed-off-by: Zhai Edwin<edwin.zhai@intel.com>
>> ---
>> meta/recipes-support/apr/apr/buildconf_fix.patch | 25 ++++++++++++++++++++
>> meta/recipes-support/apr/apr/cleanup.patch | 9 +++----
>> .../apr/{apr_1.3.3.bb => apr_1.4.2.bb} | 23 ++++++++++++++----
>> 3 files changed, 47 insertions(+), 10 deletions(-)
>> create mode 100644 meta/recipes-support/apr/apr/buildconf_fix.patch
>> rename meta/recipes-support/apr/{apr_1.3.3.bb => apr_1.4.2.bb} (60%)
>>
>> 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 0000000..641340b
>> --- /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 fd74826..47f1c42 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
>> diff --git a/meta/recipes-support/apr/apr_1.3.3.bb b/meta/recipes-support/apr/apr_1.4.2.bb
>> similarity index 60%
>> rename from meta/recipes-support/apr/apr_1.3.3.bb
>> rename to meta/recipes-support/apr/apr_1.4.2.bb
>> index 26cc01f..fe983eb 100644
>> --- a/meta/recipes-support/apr/apr_1.3.3.bb
>> +++ b/meta/recipes-support/apr/apr_1.4.2.bb
>> @@ -1,16 +1,21 @@
>> DESCRIPTION = "Apache Portable Runtime (APR) library"
>> +HOMEPAGE = "http://apr.apache.org/"
>> SECTION = "libs"
>> +
>> LICENSE = "Apache License, Version 2.0"
>> -LIC_FILES_CHKSUM = "file://LICENSE;md5=0c35ff3c4c83b89d2f076e315caac28b"
>> -PR = "r5"
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=0c35ff3c4c83b89d2f076e315caac28b \
>> + file://include/apr_lib.h;endline=17;md5=ee42fa7575dc40580a9e01c1b75fae96"
>> +
>> +PR = "r0"
>>
>> SRC_URI = "${APACHE_MIRROR}/apr/${P}.tar.bz2 \
>> file://configure_fixes.patch;patch=1 \
>> file://cleanup.patch;patch=1 \
>> - file://configfix.patch;patch=1"
>> + file://configfix.patch;patch=1 \
>> + file://buildconf_fix.patch;patch=1"
>>
>> -SRC_URI[md5sum] = "2090c21dee4f0eb1512604127dcd158f"
>> -SRC_URI[sha256sum] = "d95f3b78366c86317043304864bb08cb836312c87ea7d142a4c02154e7e0dd37"
>> +SRC_URI[md5sum] = "4b00e8f70c067893d075577962656b35"
>> +SRC_URI[sha256sum] = "2017ca700694d09d2b0b21dd7c4d195e43a48735aac88526160c6195ee8f5391"
>>
>> inherit autotools lib_package binconfig
>>
>> @@ -21,6 +26,14 @@ do_configure_prepend() {
>> ./buildconf
>> }
>>
>> +#for some reason, build/libtool.m4 handled by buildconf still be overwritten
>> +#when autoconf, so handle it again.
>> +do_configure_append() {
>> + cd ${S}
>> + sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' build/libtool.m4
>> + sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' build/apr_rules.mk
>> +}
>> +
>> SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess"
>>
>> apr_sysroot_preprocess () {
>>
>
>
next prev parent reply other threads:[~2011-01-07 0:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 13:50 [PATCH 0/7] [PULL] X apps & base, edwin, Jan4, 2011 Zhai Edwin
2011-01-04 13:50 ` [PATCH 1/7] beecrypt: Update to 4.2.1 Zhai Edwin
2011-01-04 13:50 ` [PATCH 2/7] apr: Update to 1.4.2 Zhai Edwin
2011-01-04 19:55 ` Saul Wold
2011-01-07 0:54 ` Zhai, Edwin [this message]
2011-01-07 10:11 ` Zhai, Edwin
2011-01-07 10:58 ` Richard Purdie
2011-01-10 0:50 ` Zhai, Edwin
2011-01-04 13:50 ` [PATCH 3/7] apr-util: Update to 1.3.10 Zhai Edwin
2011-01-04 13:50 ` [PATCH 4/7] xvinfo: Upgrade to 1.1.1 Zhai Edwin
2011-01-04 13:50 ` [PATCH 5/7] libcanberra: Upgrade to 0.26 Zhai Edwin
2011-01-04 13:50 ` [PATCH 6/7] metacity: Upgrade to 2.30.3 Zhai Edwin
2011-01-04 13:50 ` [PATCH 7/7] matchbox-wm-2: Upgrade to svn r2106 Zhai Edwin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D266450.8010407@intel.com \
--to=edwin.zhai@intel.com \
--cc=poky@yoctoproject.org \
--cc=sgw@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.