[oe-commits] Chong Lu : tar: set acpaths to avoid "Argument list too long" error

git at git.openembedded.org git at git.openembedded.org
Sun Mar 22 09:29:09 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 747333764231d0320bdefbcf192b2589e70c58a1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=747333764231d0320bdefbcf192b2589e70c58a1

Author: Chong Lu <Chong.Lu at windriver.com>
Date:   Wed Mar 11 23:14:55 2015 -0700

tar: 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) = 410 while our supported longest value is 410:

    aclocal: error: cannot open xxx
    autoreconf: aclocal failed with exit status: 1
    ERROR: autoreconf execution failed.

Let aclocal use the relative path for the m4 file rather than the
absolute would fix the problem.

[YOCTO #6138]

Signed-off-by: Chong Lu <Chong.Lu at windriver.com>
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-extended/tar/tar.inc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-extended/tar/tar.inc b/meta/recipes-extended/tar/tar.inc
index fb5db78..de2ed31 100644
--- a/meta/recipes-extended/tar/tar.inc
+++ b/meta/recipes-extended/tar/tar.inc
@@ -10,6 +10,12 @@ inherit autotools gettext texinfo
 
 EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}"
 
+# Let aclocal use the relative path for the m4 file rather than the
+# absolute since tar has a lot of m4 files, otherwise there might
+# be an "Argument list too long" error when it is built in a long/deep
+# directory.
+acpaths = "-I ./m4"
+
 EXTRAINSTALL = "do_install_extra"
 EXTRAINSTALL_class-nativesdk = ""
 



More information about the Openembedded-commits mailing list