- unable to build image due to Nothing Provides error
Hi Team,
I am migrating from dunfell to scarthgap when i try to build image face below error.
ERROR: Nothing RPROVIDES 'packagegroup-base-ext2' (but /home/build/project/meta/recipes-core/packagegroups/packagegroup-base.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'packagegroup-base-ext2'
NOTE: Runtime target 'packagegroup-base-ext2' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-base-ext2']
Command to build: bitbake -k wac-core-image
above error is for multiple packages in packagegroups/packagegroup-base.bb packagegroup-base-( bluetooth, keyboard, ipv6, wifi, usbhost, zeroconf, nfs, distro-base, vfat
In systemd
ERROR: Nothing RPROVIDES 'util-linux-swaponoff' (but /home/build/project/meta/recipes-core/systemd/systemd_255.4.bb RDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'util-linux-swaponoff'
udev-hwdb, systemd-journal-gatewayd, pam-plugin-unix, pam-plugin-unix many more.
I went through the packagegroup-base.bb of dunfell and scarthgap PROVIDES = "${PACKAGES}" is missing in scarthgap(But that might have no issue) I am mission something in case of syntax or configuration.
For syntax change i did execute the convert script on my custom layer. Any help is appreciated.
Ganesh Mahajan
Do you get any error messages if you try to build util-linux?
bitbake util-linux
Quoted 34 lines · Ganesh Mahajan via lists.yoctoproject.org
Hi Team,
I am migrating from dunfell to scarthgap when i try to build image face below error.ERROR: Nothing RPROVIDES 'packagegroup-base-ext2' (but
/home/build/project/meta/recipes-core/packagegroups/packagegroup-base.bbRDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'packagegroup-base-ext2'
NOTE: Runtime target 'packagegroup-base-ext2' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-base-ext2']Command to build: bitbake -k wac-core-image
above error is for multiple packages in packagegroups/packagegroup-base.bb packagegroup-base-( bluetooth, keyboard, ipv6, wifi, usbhost, zeroconf, nfs, distro-base, vfatIn systemd
ERROR: Nothing RPROVIDES 'util-linux-swaponoff' (but/home/build/project/meta/recipes-core/systemd/systemd_255.4.bbRDEPENDS on or otherwise requires it) No eligible RPROVIDERs exist for 'util-linux-swaponoff'udev-hwdb, systemd-journal-gatewayd, pam-plugin-unix, pam-plugin-unix many more.
I went through the packagegroup-base.bb of dunfell and scarthgap PROVIDES = "${PACKAGES}" is missing in scarthgap(But that might have no issue) I am mission something in case of syntax or configuration.
For syntax change i did execute the convert script on my custom layer. Any help is appreciated.
Ganesh Mahajan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64636): https://lists.yoctoproject.org/g/yocto/message/64636
Mute This Topic: https://lists.yoctoproject.org/mt/110836989/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi Gyorgy,
Yes i do get an error when building util-liunx, but its due to incompatible license.
build@ubuntu-bionic:~/project/build$ bitbake util-linux Loading cache: 100% |######################################################################################################| Time: 0:00:04 Loaded 5080 entries from dependency cache. Parsing recipes: 100% |####################################################################################################| Time: 0:00:02 Parsing of 3026 .bb files complete (3023 cached, 3 parsed). 5083 targets, 537 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies
*ERROR: Nothing RPROVIDES 'grep' (but /home/build/project/meta/recipes-core/util-linux/util-linux_2.39.3.bb RDEPENDS on or otherwise requires it)* *grep was skipped: it has incompatible license(s): GPL-3.0-only*
*NOTE: Runtime target 'grep' is unbuildable, removing...*
*Missing or unbuildable dependency chain was: ['grep']*
*ERROR: Required build target 'util-linux' has no buildable providers.*
*Missing or unbuildable dependency chain was: ['util-linux', 'grep']
* Ganesh
I see - this will be the source of your problem, your image depends on this package, but it can't be built due to this license incompatibility.
Depending on your requirements, you can approach it on a few ways (this is not an exhaustive list, of course, I'm sure others could give other, even better ones):
- if you don't need systemd, remove it.
- if you need systemd, but don't need swap support, remove swap support from the systemd recipe
- if you need systemd and swap support, find a non-gplv3 grep alternative, and set it as your preferred provider. You could check for example if grep from busybox is enough.
Quoted 19 lines · Ganesh Mahajan via Lists.Yoctoproject.Org
Hi Gyorgy,
Yes i do get an error when building util-liunx, but its due to incompatible license.
build@ubuntu-bionic:~/project/build$ bitbake util-linux Loading cache: 100% |######################################################################################################| Time: 0:00:04 Loaded 5080 entries from dependency cache. Parsing recipes: 100% |####################################################################################################| Time: 0:00:02 Parsing of 3026 .bb files complete (3023 cached, 3 parsed). 5083 targets, 537 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies*ERROR: Nothing RPROVIDES 'grep' (but
/home/build/project/meta/recipes-core/util-linux/util-linux_2.39.3.bbRDEPENDS on or otherwise requires it)* *grep was skipped: it has incompatible license(s): GPL-3.0-only*
*NOTE: Runtime target 'grep' is unbuildable, removing...*
*Missing or unbuildable dependency chain was: ['grep']*
*ERROR: Required build target 'util-linux' has no buildable providers.*
*Missing or unbuildable dependency chain was: ['util-linux', 'grep']*Ganesh
Quoted 3 lines · Gyorgy Sarvari via lists.yoctoproject.org
I see - this will be the source of your problem, your image depends on this package, but it can't be built due to this license incompatibility.
I need to correct you. The image does not depend on grep, rather util-linux's ptest package does, and in all likelihood that ptest package never gets installed into product image, and so neither does grep. It does not seem realistic to eliminate util-linux from build dependency chains, it is a very core recipe and needed everywhere.
The first step to handle gpl3 issues caused by a global license restriction (which prevents gpl3 items from being built at all) is to remove that, and replace it with a per-image restriction, where the check would happen at do_rootfs time. And it is only needed in a product image that actually ships to customers, testing images can have as many gpl3 items in them as needed (for example, gdb).
Then if do_rootfs still fails, it becomes much easier to break dependency chains that lead to incompatible packages being installed, e.g. by disabling readline support.
Alex
"The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer." :) Thanks for the correction.