Skip to contentSkip to conversation

libvirt: use relative path to local .m4 files

PATCH In review Joe Slater 2 participants 2 messages Jul 27, 2018 – Aug 3, 2018

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 libvirt: use relative path to local .m4 files

If our project is in a directory with a pathname of longer than about 125 characters, configuration will fail with an "Argument list too long" error. This patch uses the technique that was applied to the coreutils recipe.

---
 recipes-extended/libvirt/libvirt_4.3.0.bb | 6 ++++++
 1 file changed, 6 insertions(+)
recipes-extended/libvirt/libvirt_4.3.0.bb +6 -0
index e6dac5d..194f049 100644
@@ -42,6 +42,12 @@ SRC_URI[libvirt.sha256sum] = "a531e22c8b985ecb2d1223b913fd6ec0f1800e3ebe02351924
 
 inherit autotools gettext update-rc.d pkgconfig ptest systemd
 
+# Override the default set in autotools.bbclass so that we will use relative pathnames
+# to our local m4 files.  This prevents an "Argument list too long" error during configuration
+# if our project is in a directory with an absolute pathname of more than about 125 characters.
+#
+acpaths = "-I ./m4"
+
 CACHED_CONFIGUREVARS += "\
 ac_cv_path_XMLCATLOG=/usr/bin/xmlcatalog \
 ac_cv_path_AUGPARSE=/usr/bin/augparse \
Signature · 1 line
2.7.4
#1 lore raw

merged

Bruce

Quoted 35 lines · Joe Slater

If our project is in a directory with a pathname of longer than about 125 characters, configuration will fail with an "Argument list too long" error. This patch uses the technique that was applied to the coreutils recipe.

---
 recipes-extended/libvirt/libvirt_4.3.0.bb | 6 ++++++
 1 file changed, 6 insertions(+)
recipes-extended/libvirt/libvirt_4.3.0.bb +6 -1
index e6dac5d..194f049 100644
@@ -42,6 +42,12 @@ SRC_URI[libvirt.sha256sum] = "a531e22c8b985ecb2d1223b913fd6ec0f1800e3ebe02351924
 
 inherit autotools gettext update-rc.d pkgconfig ptest systemd
 
+# Override the default set in autotools.bbclass so that we will use relative pathnames
+# to our local m4 files.  This prevents an "Argument list too long" error during configuration
+# if our project is in a directory with an absolute pathname of more than about 125 characters.
+#
+acpaths = "-I ./m4"
+
 CACHED_CONFIGUREVARS += "\
 ac_cv_path_XMLCATLOG=/usr/bin/xmlcatalog \
 ac_cv_path_AUGPARSE=/usr/bin/augparse \
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"