Hi all!

I'm running some test with do_populate_sdk task and I'm seeing this on the
log:

check_data_file_clashes: Package kmsxx-dbg wants to install file
/home/builder/build/tmp/work/foo-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/bar/sysroots/aarch64-poky-linux/usr/bin/.debug/kmstest
But that file is already provided by package  * libdrm-dbg

I also see this kind of message with other packages.

Looking in the source code I found that the install_complementary function
runs this [1] with attempt_only=True, and if attempt_only is true log above
it's just a warning, as shown here [2].

This [3] comment says that "will only attempt to install these packages, if
they don't exist then no error will occur."

My question is how can I force an error and not just a warning when running
do_populate_sdk?

I understand that I can change [1] to run:

  self.install(install_pkgs)

so, it'll use set attempt_only to False, that is the default, but I think
this will break some use cases.

What is the correct behaviour here, see the warning messages and fix the
packages to avoid "file is already provided by package" messages, every
time I create a SDK or change in some way to see an error message and stop
SDK generation?

What is the correct behavior here, inspect the warning messages, and fix
the packages to avoid "file is already provided by package" messages, every
time I create an SDK or change it in some way to see an error message and
stop the SDK generation?

Thanks!

Fabio Berton

[1] -
https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/package_manager/__init__.py#n401

[2] -
https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/package_manager/ipk/__init__.py#n371

[3] -
https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/package_manager/__init__.py#n346
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53969): https://lists.yoctoproject.org/g/yocto/message/53969
Mute This Topic: https://lists.yoctoproject.org/mt/83769900/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to