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 <[email protected]> --- meta/recipes-core/libxml/libxml2_2.15.3.bb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/meta/recipes-core/libxml/libxml2_2.15.3.bb b/meta/recipes-core/libxml/libxml2_2.15.3.bb index 096a719d1c4..369f27ad2b2 100644 --- a/meta/recipes-core/libxml/libxml2_2.15.3.bb +++ b/meta/recipes-core/libxml/libxml2_2.15.3.bb @@ -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 -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240960): https://lists.openembedded.org/g/openembedded-core/message/240960 Mute This Topic: https://lists.openembedded.org/mt/120281287/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
