[OE-core] [PATCH] libxml2: Make tests non-executable

Jussi Kukkonen jussi.kukkonen at intel.com
Fri Oct 14 18:38:40 UTC 2016


The XML W3C conformance test suite contains thousands of xml files all
marked executable. We dutifully try to strip all these files of debug
info in do_package.

"chmod -x" improves build time by ~40 seconds.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen at intel.com>
---

Let me know if do_configure_prepend() is not an appropriate place for
a hack like this.

This patch also in:

  git://git.yoctoproject.org/poky-contrib jku/libxml-chmod
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/libxml-chmod



 meta/recipes-core/libxml/libxml2_2.9.4.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-core/libxml/libxml2_2.9.4.bb b/meta/recipes-core/libxml/libxml2_2.9.4.bb
index 265d2b7..59874be 100644
--- a/meta/recipes-core/libxml/libxml2_2.9.4.bb
+++ b/meta/recipes-core/libxml/libxml2_2.9.4.bb
@@ -63,6 +63,11 @@ FILES_${PN}-dev += "${libdir}/xml2Conf.sh ${libdir}/cmake/*"
 FILES_${PN}-utils += "${bindir}/*"
 FILES_${PN}-python += "${PYTHON_SITEPACKAGES_DIR}"
 
+do_configure_prepend () {
+	# executables take longer to package: these should not be executable
+	find ${WORKDIR}/xmlconf/ -type f -exec chmod -x {} \+
+}
+
 do_install_ptest () {
 	cp -r ${WORKDIR}/xmlconf ${D}${PTEST_PATH}
 }
-- 
2.9.3




More information about the Openembedded-core mailing list