]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: using relative paths for acpaths
authorWenzong Fan <wenzong.fan@windriver.com>
Thu, 27 Sep 2012 08:23:37 +0000 (16:23 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Sep 2012 15:29:02 +0000 (16:29 +0100)
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]

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass

index e4e034b62344a5ce4cea156495b0398ac73bb27d..874e01dc740bd395bab7bea6bb7cc59b0f23913a 100644 (file)
@@ -130,7 +130,8 @@ autotools_do_configure() {
                if [ x"${acpaths}" = xdefault ]; then
                        acpaths=
                        for i in `find ${S} -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
-                               grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
+                               grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u| \
+                               sed -e 's,${S},\.,'`; do
                                acpaths="$acpaths -I $i"
                        done
                else