From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EFD90E01363 for ; Thu, 18 Jul 2013 06:26:40 -0700 (PDT) Received: from e6520eb (unknown [88.170.243.169]) (Authenticated sender: eukrea) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 2534DA62BD; Thu, 18 Jul 2013 15:26:33 +0200 (CEST) Date: Thu, 18 Jul 2013 15:26:32 +0200 From: Eric =?UTF-8?B?QsOpbmFyZA==?= To: Simon Braunschmidt Message-ID: <20130718152632.32869d16@e6520eb> In-Reply-To: <1374153565-17732-2-git-send-email-sb@emlix.com> References: <1374153565-17732-1-git-send-email-sb@emlix.com> <1374153565-17732-2-git-send-email-sb@emlix.com> Organization: =?UTF-8?B?RXVrcsOpYQ==?= Electromatique X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Cc: meta-freescale@yoctoproject.org Subject: Re: [PATCH] gpu-viv-bin-mx6q, mesa: fix virtual/libgl dependencies X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2013 13:26:49 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Simon, Le Thu, 18 Jul 2013 15:19:25 +0200, Simon Braunschmidt a =C3=A9crit : > Fixes [YOCTO #4850] >=20 > findings: > * meta-fsl-arm/recipes-graphics/mesa/mesa_9.1.3.bbappend is used to > delete libGL.* after compilation of mesa >=20 > * ./recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.0.35-4.0.0.bb, v= ia > gpu-viv-bin-mx6q.inc, provides its own version of libGL >=20 > * gpu-viv-bin-mx6q does not advertise "virtual/libgl" in "PROVIDES +=3D" >=20 > * but mesa (via mesa.inc) does: > PROVIDES =3D "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/e= gl" >=20 > * so the statement in imx-base.inc > PREFERRED_PROVIDER_virtual/libgl_mx6 ?=3D "gpu-viv-bin-mx6q" > does not have effect, because mesa is still the only provider > of virtual/libgl >=20 > * packages depending on virtual/libgl only get mesa, which will not conta= in > the libGL library >=20 > * in fact, we still use the gl headers from mesa, but the binary blob lib= rary > 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 >=20 > 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 +=3D" and not advertising virtual/libgl for mesa via the > .bbappend file >=20 > Signed-off-by: Simon Braunschmidt > --- > .../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(-) >=20 > diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/rec= ipes-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 =3D "GPU driver and apps for imx6" > SECTION =3D "libs" > LICENSE =3D "Proprietary" > LIC_FILES_CHKSUM =3D "file://usr/include/gc_vdk.h;endline=3D11;md5=3D19f= 5925343fa3da65596eeaa4ddb5fd3" > -DEPENDS +=3D "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11= libxdamage libxext libxfixes', '', d)}" > -PROVIDES +=3D "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/l= ibgles2" > +DEPENDS +=3D "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11= libxdamage libxext libxfixes', '', d)} mesa" > +PROVIDES +=3D "virtual/libgl virtual/libgal-x11 virtual/egl virtual/libg= les1 virtual/libgles2" > =20 this may also fix this problem : | Collected errors: | * satisfy_dependencies_for: Cannot satisfy the following dependencies for packagegroup-core-x11-base: | * libgl-mesa (>=3D 9.0.2) * | * opkg_install_cmd: Cannot install package packagegroup-core-x11-base. Eric