From: Adrian Freihofer <[email protected]>
This is a fix for commit 2502da8170 ("bitbake.conf/pseudo: Switch from
exclusion list to inclusion list"), which forgot ${WORKDIR}/rootfs-dbg.
oe/rootfs.py's _setup_dbg_rootfs() builds the debug tree under
${WORKDIR}/rootfs (already included) and only renames it to
${WORKDIR}/rootfs-dbg as the very last step, so the rename itself
doesn't lose anything: pseudo's database is keyed by (device, inode),
not by path. But PSEUDO_INCLUDE_PATHS also gates whether pseudo
intercepts any *later* access made through the new path prefix, and
rootfs-dbg wasn't covered.
That silently broke image-combined-dbg.bbclass's combine_dbg_image(),
which runs under fakeroot in do_image:
tar -C ${IMAGE_ROOTFS} -cf - . | tar -C ${IMAGE_ROOTFS}-dbg -xf -
The extracting tar's chown() calls into ${IMAGE_ROOTFS}-dbg fell
through to real, unprivileged syscalls instead of being faked by
pseudo, so files copied into rootfs-dbg silently ended up owned by the
build user instead of their correct target ownership.
Signed-off-by: Adrian Freihofer <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
(From OE-Core rev: 2dd3a54134c04147a863ada4997edab3e8afc6fa)
Signed-off-by: Peter Marko <[email protected]>
---
meta/conf/bitbake.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 24e095632e..c5f84124f0 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -748,7 +748,7 @@ SRC_URI = ""
PSEUDO_LOCALSTATEDIR ?= "${WORKDIR}/pseudo/"
PSEUDO_PASSWD ?= "${STAGING_DIR_TARGET}:${PSEUDO_SYSROOT}"
PSEUDO_SYSROOT = "${COMPONENTS_DIR}/${BUILD_ARCH}/pseudo-native"
-PSEUDO_INCLUDE_PATHS =
"/proc,${WORKDIR}/image,${WORKDIR}/package,${WORKDIR}/rootfs,${WORKDIR}/sstate-build-package/,${WORKDIR}/sstate-install-package/,${WORKDIR}/pkgdata,${WORKDIR}/minidebuginfo,${WORKDIR}/devtool-deploy-target-stripped"
+PSEUDO_INCLUDE_PATHS =
"/proc,${WORKDIR}/image,${WORKDIR}/package,${WORKDIR}/rootfs,${WORKDIR}/rootfs-dbg,${WORKDIR}/sstate-build-package/,${WORKDIR}/sstate-install-package/,${WORKDIR}/pkgdata,${WORKDIR}/minidebuginfo,${WORKDIR}/devtool-deploy-target-stripped"
export PSEUDO_DISABLED = "1"
#export PSEUDO_PREFIX = "${STAGING_DIR_NATIVE}${prefix_native}"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246381):
https://lists.openembedded.org/g/openembedded-core/message/246381
Mute This Topic: https://lists.openembedded.org/mt/121370942/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-