DISTRO_FEATURES in custom recipe does not override local.conf setting
Hi,
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 /home/yocto/rzg_vlp_v3.0.0/build/../meta-mistysom/recipes-core/images/mistysom-image.bb RDEPENDS on or otherwise requires it) xrandr was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)
NOTE: Runtime target 'xrandr' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['xrandr']
ERROR: Required build target 'mistysom-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['mistysom-image', 'xrandr']
Can I override the setting in locl.conf from my custom recipe? How?
Ron
You can't. '_remove' has priority over everything else, and DISTRO_FEATURES cannot be set from a recipe, only from a global config. You should edit local.conf, and complain to your BSP provider for using _remove instead of a direct assignment.
Alex
Quoted 37 lines · Mistyron
Hi,
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
/home/yocto/rzg_vlp_v3.0.0/build/../meta-mistysom/recipes-core/images/mistysom-image.bbRDEPENDS on or otherwise requires it)
xrandr was skipped: missing required distro feature 'x11' (not inDISTRO_FEATURES)
NOTE: Runtime target 'xrandr' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['xrandr']
ERROR: Required build target 'mistysom-image' has no buildable providers. Missing or unbuildable dependency chain was: ['mistysom-image', 'xrandr']Can I override the setting in locl.conf from my custom recipe? How?
Ron
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58881): https://lists.yoctoproject.org/g/yocto/message/58881
Mute This Topic: https://lists.yoctoproject.org/mt/95921674/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 3 lines · Alexander Kanavin
You can't. '
_remove' has priority over everything else, andDISTRO_FEATUREScannot be set from a recipe, only from a global config.
Oh okay, that makes sense then!
Thank you!
Quoted 42 lines
You should edit local.conf, and complain to your BSP provider for using
_removeinstead of a direct assignment.Alex
Quoted 36 lines · Mistyron
Hi,
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
/home/yocto/rzg_vlp_v3.0.0/build/../meta-mistysom/recipes-core/images/mistysom-image.bbRDEPENDS on or otherwise requires it)
xrandr was skipped: missing required distro feature 'x11' (not inDISTRO_FEATURES)
NOTE: Runtime target 'xrandr' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['xrandr']
ERROR: Required build target 'mistysom-image' has no buildable providers. Missing or unbuildable dependency chain was: ['mistysom-image', 'xrandr']Can I override the setting in locl.conf from my custom recipe? How?
Ron
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58881): https://lists.yoctoproject.org/g/yocto/message/58881
Mute This Topic: https://lists.yoctoproject.org/mt/95921674/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 5 lines
*RON EGGLER* Firmware Engineer (he/him/his) www.mistywest.com MistyWest Logo
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Mistyron via lists.yoctoproject.org
Quoted 3 lines · Alexander Kanavin
You can't. '
_remove' has priority over everything else, andDISTRO_FEATUREScannot be set from a recipe, only from a global config.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 instead:
| checking for GBM... no | configure: error: Glamor for Xorg requires gbm >= 10.2.0 | NOTE: The following config.log files may provide further information. | NOTE: /home/yocto/rzg_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/xserver-xorg/2_1.20.8-r0/build/config.log | ERROR: configure failed | WARNING: exit code 1 from a shell command. | ERROR: Execution of '/home/yocto/rzg_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/xserver-xorg/2_1.20.8-r0/temp/run.do_configure.480136' failed with exit code 1
ERROR: Task (/home/yocto/rzg_vlp_v3.0.0/build/../poky/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.8.bb:do_configure) failed with exit code '1'
I've Googled around but nbot been able to find a work around.
Quoted 46 lines
Quoted 46 lines
You should edit local.conf, and complain to your BSP provider for using
_removeinstead of a direct assignment.Alex
Quoted 40 lines · Mistyron
Hi,
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
/home/yocto/rzg_vlp_v3.0.0/build/../meta-mistysom/recipes-core/images/mistysom-image.bbRDEPENDS on or otherwise requires it)
xrandr was skipped: missing required distro feature 'x11' (not inDISTRO_FEATURES)
NOTE: Runtime target 'xrandr' is unbuildable, removing... Missing or unbuildable dependency chain was: ['xrandr']
ERROR: Required build target 'mistysom-image' has no buildable providers. Missing or unbuildable dependency chain was: ['mistysom-image', 'xrandr']Can I override the setting in locl.conf from my custom recipe? How?
Ron
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58885): https://lists.yoctoproject.org/g/yocto/message/58885
Mute This Topic: https://lists.yoctoproject.org/mt/95921674/7254380
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 1 line
RON EGGLER Firmware Engineer (he/him/his) www.mistywest.com
Quoted 30 lines · Mistyron
Quoted 8 lines · Mistyron via lists.yoctoproject.org
Quoted 3 lines · Alexander Kanavin
You can't. '
_remove' has priority over everything else, andDISTRO_FEATUREScannot be set from a recipe, only from a global config.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 instead:
| checking for GBM... no | configure: error: Glamor for Xorg requires gbm >= 10.2.0 | NOTE: The following config.log files may provide further information. | NOTE:
/home/yocto/rzg_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/xserver-xorg/2_1.20.8-r0/build/config.log| ERROR: configure failed | WARNING: exit code 1 from a shell command. | ERROR: Execution of'
/home/yocto/rzg_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/xserver-xorg/2_1.20.8-r0/temp/run.do_configure.480136'
Quoted 7 lines
failed with exit code 1
ERROR: Task (/home/yocto/rzg_vlp_v3.0.0/build/../poky/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.8.bb:do_configure)failed with exit code '1'
I've Googled around but nbot been able to find a work around.
Hello,
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 configure.ac 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.
Regards
--
Tomasz Żyjewski
Embedded Systems Engineer
GPG: 5C495EA3EBEECA59
https://3mdeb.com | @3mdeb_com
Quoted 54 lines
Quoted 40 lines
Quoted 40 lines
You should edit local.conf, and complain to your BSP provider for using
_removeinstead of a direct assignment.Alex
Quoted 29 lines · Mistyron
Hi,
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
/home/yocto/rzg_vlp_v3.0.0/build/../meta-mistysom/recipes-core/images/mistysom-image.bbRDEPENDS on or otherwise requires it)
xrandr was skipped: missing required distro feature 'x11' (not inDISTRO_FEATURES)
NOTE: Runtime target 'xrandr' is unbuildable, removing... Missing or unbuildable dependency chain was: ['xrandr']
ERROR: Required build target 'mistysom-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['mistysom-image', 'xrandr']Can I override the setting in locl.conf from my custom recipe? How?
Quoted 11 lines
Quoted 9 lines
Quoted 7 lines
Ron
--
RON EGGLER Firmware Engineer (he/him/his) www.mistywest.com