diff mbox series

[01/12] libxml2: clean up xmlconf mode fixups

Message ID 20260715140507.2329605-1-ross.burton@arm.com
State New
Headers show
Series [01/12] libxml2: clean up xmlconf mode fixups | expand

Commit Message

Ross Burton July 15, 2026, 2:04 p.m. UTC
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(-)
diff mbox series

Patch

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