Skip to contentSkip to conversation

libunistring: fix do_configure "Argument list too long" error

PATCH New [email protected] 1 participant 1 message Dec 4, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libunistring: fix do_configure "Argument list too long" error

From: Changqing Li <[email protected]>

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.

---
 meta/recipes-support/libunistring/libunistring_1.3.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-support/libunistring/libunistring_1.3.bb +3 -0
index 08531acec10..3b6dd61a34e 100644
@@ -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"
Signature · 1 line
2.25.1