On Mon, 7 Dec 2020 at 10:29, Paul Barker <pbar...@konsulko.com> wrote: > > On Tue, 1 Dec 2020 at 18:12, Peter Kjellerstedt > <peter.kjellerst...@axis.com> wrote: > > > > Instead of ignoring ${COREBASE}/meta in PSEUDO_IGNORE_PATHS (which may > > or may not ignore all layers depending on how they are named and placed > > under ${COREBASE}), ignore all layers. > > > > Signed-off-by: Peter Kjellerstedt <peter.kjellerst...@axis.com> > > --- > > 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 0d38eac094..9742fe4fe2 100644 > > --- a/meta/conf/bitbake.conf > > +++ b/meta/conf/bitbake.conf > > @@ -685,7 +685,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/,${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,${COREBASE}/meta,${CCACHE_DIR}" > > +PSEUDO_IGNORE_PATHS = > > "/usr/,/etc/,/lib,/dev/,${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,${@','.join(d.getVar('BBLAYERS').split())},${CCACHE_DIR}" > > This has now landed in master and unfortunately it breaks the way I > run builds. I often end up building inside a layer directory. For > example the one that failed this morning has: > > BBLAYERS ?= " \ > /home/pbarker/Projects/Yocto/meta-linux-mainline \ > /home/pbarker/Projects/Yocto/meta-linux-mainline/layers/poky/meta \ > > /home/pbarker/Projects/Yocto/meta-linux-mainline/layers/poky/meta-poky" > > TOPDIR is "/home/pbarker/Projects/Yocto/meta-linux-mainline/build" and > TMPDIR is "${TOPDIR}/tmp". So everything under TMPDIR is now ignored > by pseudo and various do_install/do_package tasks fail. > > I don't think this will just affect me as this is a common pattern, > especially when using something like kas to setup builds. > > Before we revert this I'd like to understand the problem this patch is > trying to fix. Is there a specific reason why you need to ignore all > layer directories? I'm not 100% sure why "${COREBASE}/meta" is ignored > anyway though I guess it is to reduce pseudo db size and so speed up > builds.
To follow up some more: The entries in PSEUDO_IGNORE_PATHS are treated as string prefixes within pseudo. So if "/home/pbarker/Projects/Yocto/meta-linux-mainline" is added to the ignore list it will exclude not just "/home/pbarker/Projects/Yocto/meta-linux-mainline/build" but also ""/home/pbarker/Projects/Yocto/meta-linux-mainline-build". I wonder if some more of those entries should have trailing slashes. -- Paul Barker Konsulko Group
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#145342): https://lists.openembedded.org/g/openembedded-core/message/145342 Mute This Topic: https://lists.openembedded.org/mt/78640454/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-