summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2012-09-27 16:23:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-27 16:29:06 +0100
commitd93a5e190cb4b72bf9346e0d959ff3154b93a1bd (patch)
treee3c406d09e9fd96032a8f6c88f3b30599bbc8647 /meta/classes
parent876ec81c039132d07a5f3d99bae40d6154351d41 (diff)
downloadpoky-d93a5e190cb4b72bf9346e0d959ff3154b93a1bd.tar.gz
autotools.bbclass: using relative paths for acpaths
Fix autotools.bbclass to use relative paths for acpaths instead of absolute ones. Since absolute paths may cause potential autoreconf error like: Can't exec "/bin/sh": Argument list too long ... This error occurs while building coreutils with long TMPDIR, because it has bunch of m4 files need to be expanded. [YOCTO #2766] (From OE-Core rev: aa66ef6598c84231577d139ec7be413e73fac2b1) Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/autotools.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index e4e034b623..874e01dc74 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -130,7 +130,8 @@ autotools_do_configure() {
130 if [ x"${acpaths}" = xdefault ]; then 130 if [ x"${acpaths}" = xdefault ]; then
131 acpaths= 131 acpaths=
132 for i in `find ${S} -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \ 132 for i in `find ${S} -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
133 grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do 133 grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u| \
134 sed -e 's,${S},\.,'`; do
134 acpaths="$acpaths -I $i" 135 acpaths="$acpaths -I $i"
135 done 136 done
136 else 137 else