Re: DISTRO_FEATURES in custom recipe does not override local.conf setting


On Thu, Dec 29, 2022 at 01:32 AM, Mistyron wrote:
On 12/28/22 13:24, Mistyron via wrote:
On 2022-12-28 7:55 a.m., Alexander Kanavin wrote:
You can't. '_remove' has priority over everything else, and
DISTRO_FEATURES cannot be set from a recipe, only from a global
Oh okay, that makes sense then!
Thank you!
Although, as soon as I added

DISTRO_FEATURES_append = " x11"

to local.conf, I'm not able to build anymore but see an error like below

| checking for GBM... no
| configure: error: Glamor for Xorg requires gbm >= 10.2.0
| NOTE: The following config.log files may provide further information.
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of
failed with exit code 1
failed with exit code '1'

I've Googled around but nbot been able to find a work around.

once we run into a similar issue with the xserver xorg v1.20.8 compilation, in
our case, the gbm (libgles) from the BSP provider was in version `r8p0` and not
`10.2.0`, which is required by xserver xorg. To solve this, we added a simple
patch to `` of xserver xorg to change dependency from
`LIBGBM="gbm >= 10.2.0"` to `LIBGBM="gbm >= r8p0"` which allowed us to resolve
the compilation error and built the package. Later we did not see any
significant performance issues, so we went with that solution.


Tomasz ┼╗yjewski
Embedded Systems Engineer
GPG: 5C495EA3EBEECA59 | @3mdeb_com

You should edit local.conf, and complain to your BSP provider
for using _remove instead of a direct assignment.


On Wed, 28 Dec 2022 at 16:51, Mistyron <ron.eggler@...> wrote:

I'm using the provided local.conf from the BSP which contains:

DISTRO_FEATURES_remove = " x11"

but I need to install xrandr in my image which needs x11, i.e. I set

DISTRO_FEATURES_append = " x11"
IMAGE_INSTALL_append = " xrandr"

in my custom recipe. However, upon building, I get the following error:

ERROR: Nothing RPROVIDES 'xrandr' (but

RDEPENDS on or otherwise requires it)
xrandr was skipped: missing required distro feature 'x11' (not in
NOTE: Runtime target 'xrandr' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['xrandr']
ERROR: Required build target 'mistysom-image' has no buildable
Missing or unbuildable dependency chain was: ['mistysom-image',

Can I override the setting in locl.conf from my custom recipe? How?


RON EGGLER Firmware Engineer (he/him/his)

Join { to automatically receive all group messages.