[yocto] metadata mismatch between image and package (uninative)

Tim Blechmann tim at klingt.org
Sat Aug 24 05:52:28 PDT 2019


hi all,

i'm currently running into an issue of non-deterministic metadata: my
packages build fine when building the package itself, but i'm getting a
metadata mismatch when building as dependency of an image:

>  ERROR: When reparsing /path/to/poky/meta/recipes-core/packagegroups/packagegroup-core-boot.bb.do_build, the basehash value changed from 86577a31ea46d8046d45301bfc53b8240e3576adecd75f7cfd25945ebab0a10c to 3439e8b4cd0f876338d38c9a5d2dc7c50440754f33a03212130766c7514d52ea. The metadata is not deterministic and this needs to be fixed.


the relevant part of the diff comes from PATH:
`${STAGING_DIR}-uninative/${BUILD_ARCH}-linux${bindir_native}:`


> Dependency on variable BUILD_ARCH was added
> Dependency on variable STAGING_DIR was added
> Variable PATH value changed from '${@extra_path_elements(d)}${COREBASE}/scripts:${STAGING_BINDIR_TOOLCHAIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}${base_bindir_native}:/path/to/poky/bitbake/bin:${HOSTTOOLS_DIR}' to '${STAGING_DIR}-uninative/${BUILD_ARCH}-linux${bindir_native}:${@extra_path_elements(d)}${COREBASE}/scripts:${STAGING_BINDIR_TOOLCHAIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}${base_bindir_native}:/path/to/poky/bitbake/bin:${HOSTTOOLS_DIR}'

my distro is based on poky, which INHERITs "uninative"

--

i've been able to build by `INHERIT_remove`ing "uninative", but this
feels like a hack.

so i'm wondering: what could cause a reparse error when `uninative` is
enabled?

tia,
tim



More information about the yocto mailing list