]> code.ossystems Code Review - openembedded-core.git/commitdiff
libxml2: Make tests non-executable
authorJussi Kukkonen <jussi.kukkonen@intel.com>
Fri, 14 Oct 2016 18:38:40 +0000 (21:38 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 15 Oct 2016 08:59:54 +0000 (09:59 +0100)
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@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/libxml/libxml2_2.9.4.bb

index 265d2b73a9797683c3ee81e6d2518343516fa327..59874bec2c7303d8954ca5f6dc7b031b2c155216 100644 (file)
@@ -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}
 }