diff mbox series

libunistring: fix do_configure "Argument list too long" error

Message ID 20241204072856.917489-1-changqing.li@windriver.com
State New
Headers show
Series libunistring: fix do_configure "Argument list too long" error | expand

Commit Message

Changqing Li Dec. 4, 2024, 7:28 a.m. UTC
From: Changqing Li <changqing.li@windriver.com>

libunistring uses a lot of m4 files, with acpaths set to absolute path,
and the TMPDIR is long/deep, for example when len(TMPDIR) = 350,
do_configure failed with "Argument list too long" error.

[snip]
aclocal: error: cannot open xxx  Argument list too long
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.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 meta/recipes-support/libunistring/libunistring_1.3.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-support/libunistring/libunistring_1.3.bb b/meta/recipes-support/libunistring/libunistring_1.3.bb
index 08531acec10..3b6dd61a34e 100644
--- a/meta/recipes-support/libunistring/libunistring_1.3.bb
+++ b/meta/recipes-support/libunistring/libunistring_1.3.bb
@@ -24,4 +24,7 @@  SRC_URI = "${GNU_MIRROR}/libunistring/libunistring-${PV}.tar.gz"
 SRC_URI[sha256sum] = "8ea8ccf86c09dd801c8cac19878e804e54f707cf69884371130d20bde68386b7"
 
 inherit autotools texinfo
+
+acpaths = "-I ./m4 -I ./gnulib-m4"
+
 BBCLASSEXTEND = "native nativesdk"