From: Jussi Kukkonen Date: Fri, 14 Oct 2016 18:38:40 +0000 (+0300) Subject: libxml2: Make tests non-executable X-Git-Tag: 2016-10~15 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=eb9cdf6b9277d23d1696233fccc4689e6030644c;p=openembedded-core.git libxml2: Make tests non-executable 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 Signed-off-by: Ross Burton --- diff --git a/meta/recipes-core/libxml/libxml2_2.9.4.bb b/meta/recipes-core/libxml/libxml2_2.9.4.bb index 265d2b73a9..59874bec2c 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} }