Hi all,
I am new to Yocto and the BitBake eco system and currently facing an issue when trying to remove a packagegroup BUT at the same time KEEP one of its packages - which is an empty package.
It goes like this: When building my image, the packagegroup-core-buildessential
(that can be found here) is added to the final image. Most of the packages it contains, are NOT required in my final image --> therefor I wish to remove it. As a first attempt, what I did was to remove the entire packagegroup-core-buildessential
from the final image by applying the following:
IMAGE_INSTALL_remove += "packagegroup-core-buildessential"
When doing this the entire packagegroup-core-buildessential
was removed, but then I found out that another recipe in my image python3-pycparser_2.21.bb
is RDEPENDS
on one of the packages from packagegroup-core-buildessential
which happens to be also an "empty package". This is the cpp-symlinks
package.
As another attempt what I tried to do was to manually add the cpp-symlinks
to the final image by doing IMAGE_INSTALL += "cpp-symlinks"
and also remove the entire packagegroup-core-buildessential
as before --> this also did not work. It provided the error:
Error: Problem 1: conflicting requests nothing provides cpp-symlinks needed by packagegroup-core-buildessential-1.0-r0.noarch
Problem 2: package python3-cffi-1.12.3-r0.corei7_64 requires python3-pycparser, but none of the providers can be installed conflicting requests
nothing provides cpp-symlinks needed by python3-pycparser-2.19-r0.corei7_64
I went over the following Q&A: this, this one as well, this one also and eventually this one which seems the closests - but still not sure what I should do.
Additional and final attempt was to "override" the values of the RDEPENDS:packagegroup-core-buildessential
within a dedicated packagegroup-core-buildessential.bbappend file (i.e. - in my case I only kept the cpp
and cpp-symlinks
packages). This caused the problem above to raise again.
What (mainly, I guess) distinguish the situation I'm facing Vs. the one described in the last link, is that there is no cpp-symlinks.bb
file (or anything "similar").
So the questions are:
What exactly is an "empty package"?
How can I resolve the issue I'm facing (trying to remove the
packagegroup-core-buildessential
BUT at the same time "keep" thecpp-symlinks
?