Skip to content

New "metadata is not deterministic" issues #195

Open
@ernstp-se

Description

@ernstp-se

OS: Ubuntu 24.04
Yocto: Scarthgap yocto-5.0.5-123-g60b5842348f

There was some work on this in 0e8b12c , but perhaps more work is needed.

I think this only happens when building -native variants?

It's a bit hard to reproduce but I managed to get something like this from printdiff:
Dependency on Variable BUILD_OS was removed
Dependency on Variable TARGET_ARCH was removed
Dependency on Variable TARGET_OS was removed

ERROR: When reparsing virtual:native:..../cargo-bundle-licenses_2.0.0.bb:do_compile, the basehash value changed from 316a3996b27d41516259522746eb37a71853351c57ca5b4dc889616f7131c9af to 22474dc19f3f4920ee812f1c39aab5683bb3f73c727ec2dfafa89f4d026da737. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake cargo-bundle-licenses-native -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake cargo-bundle-licenses-native -cdo_compile -Sprintdiff

ERROR: When reparsing virtual:native:..../cargo-bundle-licenses_2.0.0.bb:do_install, the basehash value changed from 04183ef61106c05f36b5f97b5806305a85f199b6b65d038547135184ac90e131 to 0d9e2b13835a4bdef14809476bb44f0e9418e4b53e48a79cfaee2434fbf0586d. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake cargo-bundle-licenses-native -cdo_install -Snone
ERROR: Then:
ERROR: $ bitbake cargo-bundle-licenses-native -cdo_install -Sprintdiff

ERROR: When reparsing virtual:native:.../cargo-bundle-licenses_2.0.0.bb:do_compile, the basehash value changed from 316a3996b27d41516259522746eb37a71853351c57ca5b4dc889616f7131c9af to 22474dc19f3f4920ee812f1c39aab5683bb3f73c727ec2dfafa89f4d026da737. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake cargo-bundle-licenses-native -cdo_compile -Snone
ERROR: Then:
ERROR: $ bitbake cargo-bundle-licenses-native -cdo_compile -Sprintdiff

ERROR: When reparsing virtual:native:..../cargo-bundle-licenses_2.0.0.bb:do_install, the basehash value changed from 04183ef61106c05f36b5f97b5806305a85f199b6b65d038547135184ac90e131 to 0d9e2b13835a4bdef14809476bb44f0e9418e4b53e48a79cfaee2434fbf0586d. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake cargo-bundle-licenses-native -cdo_install -Snone
ERROR: Then:
ERROR: $ bitbake cargo-bundle-licenses-native -cdo_install -Sprintdiff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions