Skip to contentSkip to conversation

tar: set acpaths to avoid "Argument list too long" error

PATCH In review Chong Lu 1 participant 4 messages Apr 9, 2014 – May 16, 2014

lore
Share & tools
lore
author
#1 lore raw

PATCH 1/1 tar: set acpaths to avoid "Argument list too long" error

In reply to Chong Lu

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]

---
 meta/recipes-extended/tar/tar.inc | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-extended/tar/tar.inc +6 -0
index 30a1373..75c3518 100644
@@ -10,6 +10,12 @@ inherit autotools gettext
 
 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 = ""
 
Signature · 1 line
1.8.1.2

Chong Lu

author
#0 lore raw

cover tar: set acpaths to avoid "Argument list too long" error

The following changes since commit bb20d3afbf0ee0319ef067c7ba48998d57f33f64:

yocto-bsp: Update templates to 3.14 kernel (2014-04-09 09:53:14 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib chonglu/tar
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/tar

Chong Lu (1):
tar: set acpaths to avoid "Argument list too long" error

 meta/recipes-extended/tar/tar.inc | 6 ++++++
 1 file changed, 6 insertions(+)
Signature · 1 line
1.8.1.2
author
#2 lore raw
In reply to Chong Lu

ping

Quoted 34 lines · Chong Lu

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]

---
  meta/recipes-extended/tar/tar.inc | 6 ++++++
  1 file changed, 6 insertions(+)
meta/recipes-extended/tar/tar.inc +6 -0
index 30a1373..75c3518 100644
@@ -10,6 +10,12 @@ inherit autotools gettext
 
  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 = ""
 
author
#3 lore raw
In reply to Chong Lu

ping

Quoted 34 lines · Chong Lu

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]

---
  meta/recipes-extended/tar/tar.inc | 6 ++++++
  1 file changed, 6 insertions(+)
meta/recipes-extended/tar/tar.inc +6 -0
index 30a1373..75c3518 100644
@@ -10,6 +10,12 @@ inherit autotools gettext
 
  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 = ""