@@ -57,15 +57,11 @@ PACKAGE_BEFORE_PN += "${PN}-utils"
FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
FILES:${PN}-utils = "${bindir}/*"
-do_configure:prepend () {
- # executables take longer to package: these should not be executable
- find ${S}/xmlconf/ -type f -exec chmod -x {} \+
-}
-
do_install_ptest () {
oe_runmake DESTDIR=${D} ptestdir=${PTEST_PATH} install-test-data
- cp -r ${S}/xmlconf ${D}${PTEST_PATH}
+ # executables take longer to package: these should not be executable
+ cp -r --no-preserve=mode ${S}/xmlconf ${D}${PTEST_PATH}
}
# with musl we need to enable icu support explicitly for these tests
The xmlconf files are executable and there is a lot of them, which means in ptest builds every file is opened in case it's an ELF. Currently we chmod -x the xmlconf tree in do_configure which modifies the source tree in every build. Instead, we can just tell the cp to not preserve the modes when copying the tree in do_install_ptest. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/recipes-core/libxml/libxml2_2.15.3.bb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)