bitbake.conf: Add sstate-build-populate_sdk and intercept_scripts- to PSEUDO_IGNORE_PATHS
PATCH 1/1 bitbake.conf: Add sstate-build-populate_sdk and intercept_scripts- to PSEUDO_IGNORE_PATHS
Recipes using populate_sdk.bbclass are failing with pseudo abort due to path mismatch on these paths.
--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +1 -1
@@ -683,7 +683,7 @@ SRC_URI = "" PSEUDO_LOCALSTATEDIR ?= "${WORKDIR}/pseudo/" PSEUDO_PASSWD ?= "${STAGING_DIR_TARGET}:${PSEUDO_SYSROOT}" PSEUDO_SYSROOT = "${COMPONENTS_DIR}/${BUILD_ARCH}/pseudo-native" -PSEUDO_IGNORE_PATHS = "/usr/,/etc/,/lib,/dev/,/run/,${T},${WORKDIR}/recipe-sysroot,${SSTATE_DIR},${STAMPS_DIR},${WORKDIR}/pkgdata-sysroot,${TMPDIR}/sstate-control,${DEPLOY_DIR},${WORKDIR}/deploy-,${TMPDIR}/buildstats,${WORKDIR}/sstate-build-package_,${WORKDIR}/sstate-install-package_,${WORKDIR}/sstate-build-image_complete,${TMPDIR}/sysroots-components,${BUILDHISTORY_DIR},${TMPDIR}/pkgdata,${TOPDIR}/cache,${COREBASE}/scripts,${CCACHE_DIR}" +PSEUDO_IGNORE_PATHS = "/usr/,/etc/,/lib,/dev/,/run/,${T},${WORKDIR}/recipe-sysroot,${SSTATE_DIR},${STAMPS_DIR},${WORKDIR}/pkgdata-sysroot,${TMPDIR}/sstate-control,${DEPLOY_DIR},${WORKDIR}/deploy-,${TMPDIR}/buildstats,${WORKDIR}/sstate-build-package_,${WORKDIR}/sstate-install-package_,${WORKDIR}/sstate-build-image_complete,${WORKDIR}/sstate-build-populate_sdk,${WORKDIR}/intercept_scripts-,${TMPDIR}/sysroots-components,${BUILDHISTORY_DIR},${TMPDIR}/pkgdata,${TOPDIR}/cache,${COREBASE}/scripts,${CCACHE_DIR}" export PSEUDO_DISABLED = "1" #export PSEUDO_PREFIX = "${STAGING_DIR_NATIVE}${prefix_native}"
Signature · 1 line
2.30.1
Quoted 7 lines · Tomasz Dziendzielski
Recipes using populate_sdk.bbclass are failing with pseudo abort due to path mismatch on these paths.
Signed-off-by Tomasz Dziendzielski <[email protected]>---
meta/conf/bitbake.conf | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
We build SDKs on the autobuilder and don't see this. Any idea what you need to do to trigger it?
Cheers,
Richard
Quoted 10 lines
Quoted 7 lines
Recipes using populate_sdk.bbclass are failing with pseudo abort due to path mismatch on these paths.
Signed-off-by Tomasz Dziendzielski <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)We build SDKs on the autobuilder and don't see this. Any idea what you need to do to trigger it?
I was able to reproduce abort on sstate-build-populate_sdk on the latest master without any old build/ directory.
$ . ./oe-init-build-env $ bitbake meta-go-toolchain $ bitbake meta-go-toolchain -c populate_sdk -f
Please note that above commands might not fail every time, it seems to be a bit random. It occurs not only on rebuilds but also on the first run. If we build multiple SDKs at one bitbake execution the build is unlikely to finish successfully, because each time different (or the same) SDKs will fail.
In our environment I also had to add ${WORKDIR}/oe-sdk-repo,${SDK_OUTPUT} to PSEUDO_IGNORE_PATHS to make SDKs work but I'm not sure if failures on these two are not related to some of our custom mechanisms.
Best regards,
Tomasz Dziendzielski
Quoted 8 lines · Tomasz Dziendzielski
Quoted 8 lines
Quoted 7 lines
Recipes using populate_sdk.bbclass are failing with pseudo abort due to path mismatch on these paths.
Signed-off-by Tomasz Dziendzielski <[email protected]>---
meta/conf/bitbake.conf | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines
Quoted 2 lines
We build SDKs on the autobuilder and don't see this. Any idea what you need to do to trigger it?
I was able to reproduce abort on sstate-build-populate_sdk on the latest master without any old build/ directory.
$ . ./oe-init-build-env $ bitbake meta-go-toolchain $ bitbake meta-go-toolchain -c populate_sdk -f
Which packaging backend are you using? I suspect this is package backend specific.
Quoted 4 lines
Please note that above commands might not fail every time, it seems to be a bit random. It occurs not only on rebuilds but also on the first run. If we build multiple SDKs at one bitbake execution the build is unlikely to finish successfully, because each time different (or the same) SDKs will fail.
The "better" way to test this is to look inside WORKDIR/pseudo/files.db with sqlite3 and then see which paths are in the database which you'd not expect. That way you'll see the paths regardless of whether there was an inode reuse issue or not.
Quoted 3 lines
In our environment I also had to add ${WORKDIR}/oe-sdk-repo,${SDK_OUTPUT} to
PSEUDO_IGNORE_PATHSto make SDKs work but I'm not sure if failures on these two are not related to some of our custom mechanisms.
In my local build I can see WORKDIR/oe-sdk-repo, WORKDIR/apt and WORKDIR/oe-rootfs-repo in files.db which look suspicious.
I don't see sstate-build-populate_sdk or intercept_scripts paths though :/.
At the very least I think we should append these to PSEUDO_IGNORE_PATHS in the classes which define them rather than globally.
Cheers,
Richard