Skip to contentSkip to conversation

libunistring: fix do_configure "Argument list too long" error

PATCH Changqing Li 1 participant 1 message Jan 8, 2025 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

ping

Quoted 41 lines · Changqing Li via lists.openembedded.org

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 -1
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"
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#208267):https://lists.openembedded.org/g/openembedded-core/message/208267 Mute This Topic:https://lists.openembedded.org/mt/109915999/3616873
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-