From: "Eric Bénard" <eric@eukrea.com>
To: Simon Braunschmidt <sb@emlix.com>
Cc: meta-freescale@yoctoproject.org
Subject: Re: [PATCH] gpu-viv-bin-mx6q, mesa: fix virtual/libgl dependencies
Date: Thu, 18 Jul 2013 15:26:32 +0200 [thread overview]
Message-ID: <20130718152632.32869d16@e6520eb> (raw)
In-Reply-To: <1374153565-17732-2-git-send-email-sb@emlix.com>
Hi Simon,
Le Thu, 18 Jul 2013 15:19:25 +0200,
Simon Braunschmidt <sb@emlix.com> a écrit :
> Fixes [YOCTO #4850]
>
> findings:
> * meta-fsl-arm/recipes-graphics/mesa/mesa_9.1.3.bbappend is used to
> delete libGL.* after compilation of mesa
>
> * ./recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.0.35-4.0.0.bb, via
> gpu-viv-bin-mx6q.inc, provides its own version of libGL
>
> * gpu-viv-bin-mx6q does not advertise "virtual/libgl" in "PROVIDES +="
>
> * but mesa (via mesa.inc) does:
> PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
>
> * so the statement in imx-base.inc
> PREFERRED_PROVIDER_virtual/libgl_mx6 ?= "gpu-viv-bin-mx6q"
> does not have effect, because mesa is still the only provider
> of virtual/libgl
>
> * packages depending on virtual/libgl only get mesa, which will not contain
> the libGL library
>
> * in fact, we still use the gl headers from mesa, but the binary blob library
> from gpu-viv-bin-mx6q (gpu-viv-bin-mx6q does not provide the headers),
> so a package compiling against GL needs both mesa and gpu-viv-bin-mx6q
>
> conclusion:
> * so i suggest having gpu-viv-bin-mx6q depend on mesa to draw in the
> gl header package, advertising "virtual/libgl" for gpu-viv-bin-mx6q
> via "PROVIDES +=" and not advertising virtual/libgl for mesa via the
> .bbappend file
>
> Signed-off-by: Simon Braunschmidt <sb@emlix.com>
> ---
> .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 4 ++--
> recipes-graphics/mesa/mesa_9.1.3.bbappend | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
> index b007079..3354854 100644
> --- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
> +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
> @@ -6,8 +6,8 @@ DESCRIPTION = "GPU driver and apps for imx6"
> SECTION = "libs"
> LICENSE = "Proprietary"
> LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=19f5925343fa3da65596eeaa4ddb5fd3"
> -DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes', '', d)}"
> -PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2"
> +DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes', '', d)} mesa"
> +PROVIDES += "virtual/libgl virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2"
>
this may also fix this problem :
| Collected errors:
| * satisfy_dependencies_for: Cannot satisfy the following
dependencies for packagegroup-core-x11-base: | * libgl-mesa (>=
9.0.2) * | * opkg_install_cmd: Cannot install package
packagegroup-core-x11-base.
Eric
next prev parent reply other threads:[~2013-07-18 13:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-18 12:03 mx6q: fix virtual/libgl dependencies Simon Braunschmidt
2013-07-18 12:03 ` [meta-fsl-arm][PATCH] " Simon Braunschmidt
2013-07-18 12:28 ` Otavio Salvador
2013-07-18 12:32 ` Otavio Salvador
2013-07-18 13:19 ` Simon Braunschmidt
2013-07-18 13:19 ` [PATCH] gpu-viv-bin-mx6q, mesa: " Simon Braunschmidt
2013-07-18 13:26 ` Eric Bénard [this message]
2013-07-18 13:29 ` Otavio Salvador
2013-07-18 18:42 ` mx6q: " John Weber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130718152632.32869d16@e6520eb \
--to=eric@eukrea.com \
--cc=meta-freescale@yoctoproject.org \
--cc=sb@emlix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.