Hi Steve,

Am 21.09.21 um 14:15 schrieb Richard Purdie via lists.openembedded.org:
> Currently, if you change the site files, nothing rebuilds since they are
> not accounted for in task checksums. They could/should be through the
> file-checksums task flag. We need to cache all the files looked for,
> whether the exist or not so that if they do exist and didn't,
> the checksum also changes.
> 
> This gets complicated by the need to clean out hardcoded build
> paths from the variable and that other layers can have site files.
> 
> This patch adds this functionality. A new variable, SITEINFO_PATHVARS
> is added which controls which substitutions to make on the file-checksum
> values to remove the hardcoded paths. Layers adding site files will need
> to set this to a variable that has the layer path in it and is excluded
> from task hashes (COREBASE is the one the core layer uses).
> 
> This patch will cause yocto-check-layer to fail for some layers
> where site files are added yet the layer isn't a machine specific layer.
> This is arguable correct since these additional site files apply to
> all recipes and things from a layer like core could be changed by such
> changes so it is right they should rebuild. There is a determinism issue
> potentially there if not. meta-openembedded does have some such references
> but looking at them they should move to core or likely just be removed as
> most look obsolete anyway.
> 
> [YOCTO #13729]
> 
> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org>

Do you think we could have this patch backported to Dunfell?

When I'm building the SDK with "bitbake -c populated_sdk image" I'm
getting errors like below. Cherry-picking this patch solves the issue.

Thanks
Frieder

ERROR: When reparsing
../layers/poky/meta/recipes-core/meta/meta-environment.bb:do_generate_content,
the basehash value changed from
f8e0d4bacfb2940c49542bf6b72b81fa06f96746fa1f4acb58a56c4b28a766da to
2bd1f3bb9789d9d2330e546d0678ae875882376905b00de4d4661ec2c935eb27. The
metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake meta-environment-kontron-mx8mm -cdo_generate_content -Snone
ERROR: Then:
ERROR: $ bitbake meta-environment-kontron-mx8mm -cdo_generate_content
-Sprintdiff
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#169475): 
https://lists.openembedded.org/g/openembedded-core/message/169475
Mute This Topic: https://lists.openembedded.org/mt/85763843/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to