Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New "metadata is not deterministic" issues #195

Open
ernstp-se opened this issue Jan 9, 2025 · 1 comment
Open

New "metadata is not deterministic" issues #195

ernstp-se opened this issue Jan 9, 2025 · 1 comment

Comments

@ernstp-se
Copy link

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

@ernstp-se
Copy link
Author

I'm trying to build a fix for this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant