diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2013-09-15 09:13:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-17 14:35:17 +0100 |
commit | 238e9b54e228b850434f7d503870e86cfb12b775 (patch) | |
tree | c5e13826d0a6c0af9ca1620d3e59304d8b17bc73 | |
parent | 2ac9925ceb30dc9f12def9cd646014f1eba4fa38 (diff) | |
download | poky-238e9b54e228b850434f7d503870e86cfb12b775.tar.gz |
coreutils: set acpaths to avoid "Argument list too long" error
There would be an error when the TMPDIR is long/deep, for example when
len(TMPDIR) = 350 while our supported longest value is 410:
[snip]
aclocal: error: cannot open xxx
autoreconf: aclocal failed with exit status: 1
ERROR: autoreconf execution failed.
[snip]
Let aclocal use the relative path for the m4 file rather than the
absolute would fix the problem.
Another fix is that we can modify autotools.bbclass to let it use the
relative path rather than the absolute, but I don't think that we have
to do that based on the following 2 thoughts:
* The coreutils is the only recipe which has this issue as far as we
know when len(TMPDIR) <= 410, because it has the most amount of m4
files (more than 400 ones).
* That would impact all the recipes which use autotools.bbclass, and we
are not sure about the side effect, for example, it would break the
build there is a sub-configure.
[YOCTO #2766]
(From OE-Core rev: 22ac874512c2c1213aae8e1644bd59050b37a63c)
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/coreutils/coreutils_6.9.bb | 6 | ||||
-rw-r--r-- | meta/recipes-core/coreutils/coreutils_8.21.bb | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-core/coreutils/coreutils_6.9.bb b/meta/recipes-core/coreutils/coreutils_6.9.bb index 2654028bcf..eeeab050e4 100644 --- a/meta/recipes-core/coreutils/coreutils_6.9.bb +++ b/meta/recipes-core/coreutils/coreutils_6.9.bb | |||
@@ -57,6 +57,12 @@ base_bindir_progs = "cat chgrp chmod chown cp date dd echo false kill ln ls mkdi | |||
57 | 57 | ||
58 | sbindir_progs= "chroot" | 58 | sbindir_progs= "chroot" |
59 | 59 | ||
60 | # Let aclocal use the relative path for the m4 file rather than the | ||
61 | # absolute since coreutils has a lot of m4 files, otherwise there might | ||
62 | # be an "Argument list too long" error when it is built in a long/deep | ||
63 | # directory. | ||
64 | acpaths = "-I ./m4" | ||
65 | |||
60 | do_install() { | 66 | do_install() { |
61 | autotools_do_install | 67 | autotools_do_install |
62 | 68 | ||
diff --git a/meta/recipes-core/coreutils/coreutils_8.21.bb b/meta/recipes-core/coreutils/coreutils_8.21.bb index 35c9100ee4..da14303286 100644 --- a/meta/recipes-core/coreutils/coreutils_8.21.bb +++ b/meta/recipes-core/coreutils/coreutils_8.21.bb | |||
@@ -47,6 +47,12 @@ base_bindir_progs = "cat chgrp chmod chown cp date dd echo false kill ln ls mkdi | |||
47 | 47 | ||
48 | sbindir_progs= "chroot" | 48 | sbindir_progs= "chroot" |
49 | 49 | ||
50 | # Let aclocal use the relative path for the m4 file rather than the | ||
51 | # absolute since coreutils has a lot of m4 files, otherwise there might | ||
52 | # be an "Argument list too long" error when it is built in a long/deep | ||
53 | # directory. | ||
54 | acpaths = "-I ./m4" | ||
55 | |||
50 | # Deal with a separate builddir failure if src doesn't exist when creating version.c/version.h | 56 | # Deal with a separate builddir failure if src doesn't exist when creating version.c/version.h |
51 | do_compile_prepend () { | 57 | do_compile_prepend () { |
52 | mkdir -p ${B}/src | 58 | mkdir -p ${B}/src |