@@ -57,7 +57,13 @@ CFLAGS:append:toolchain-clang = " -fno-strict-aliasing"
# Needed with -march=x86-64-v3
CFLAGS:append:toolchain-gcc:class-target:x86-64 = " -fno-builtin-memcpy -D__NO_STRING_INLINES -U_FORTIFY_SOURCE"
+# ${B} will have been set as our current directory immediately before
+# do_configure is called. So let's avoid any problems associated
+# with it being deleted from underneath us by moving to somewhere else.
+# We're being put back there (the new version) at the end of this code
+#
do_configure:prepend() {
+ cd ${WORKDIR}
rm -rf ${B}
cp -rfp ${S} ${B}
cp -rfp ${STAGING_DATADIR_NATIVE}/perl-cross/* ${B}
This caused a problem when building on Kubuntu 25.10. Whilst the real problem is the cp in Rust coreutils, it makes sense not to be in the directory you are about to delete. This is a resubmission to use "cd ${WORKDIR}" rather than "cd /". --- meta/recipes-devtools/perl/perl_5.40.2.bb | 6 ++++++ 1 file changed, 6 insertions(+)