[OE-core] [PATCH 2/2] mesa-gl: Set PACKAGECONFIG for target

Martin Jansa martin.jansa at gmail.com
Wed Feb 27 01:16:52 UTC 2019


Fixes e.g.:
ERROR: weston-5.0.0-r0 do_prepare_recipe_sysroot: The file
/usr/lib/libEGL.so.1.0.0 is installed by both mesa-gl and libhybris,
aborting

but there is still:
ERROR: weston-5.0.0-r0 do_prepare_recipe_sysroot: The file
/usr/include/KHR/khrplatform.h is installed by both mesa-gl and libhybris,
aborting

I believe this header wasn't included in mesa-gl before recent changes,
maybe something else needs to be filtered out?

On Tue, Feb 26, 2019 at 12:18 AM Khem Raj <raj.khem at gmail.com> wrote:

> mesa.inc uses PACKAGECONFIG_class-target override to setup default
> packageconfigs, which means that when we build mesa-gl for target then
> it does no honor the ??= setting we have in mesa-gl recipe, and ends up
> compiling egl, gles2 as well, which is not intended.
>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  meta/recipes-graphics/mesa/mesa-gl_18.3.4.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-graphics/mesa/mesa-gl_18.3.4.bb
> b/meta/recipes-graphics/mesa/mesa-gl_18.3.4.bb
> index 73267eb4f0..d4b1c1c454 100644
> --- a/meta/recipes-graphics/mesa/mesa-gl_18.3.4.bb
> +++ b/meta/recipes-graphics/mesa/mesa-gl_18.3.4.bb
> @@ -7,3 +7,4 @@ PROVIDES = "virtual/libgl virtual/mesa"
>  S = "${WORKDIR}/mesa-${PV}"
>
>  PACKAGECONFIG ??= "opengl dri ${@bb.utils.filter('DISTRO_FEATURES',
> 'x11', d)}"
> +PACKAGECONFIG_class-target = "opengl dri
> ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
> --
> 2.20.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190227/e838391d/attachment.html>


More information about the Openembedded-core mailing list