Patchwork [meta-fsl-arm,5/8] gpu-viv-bin-mx6q.inc: Fix soname of libGL library

login
register
mail settings
Submitter Otavio Salvador
Date July 17, 2013, 6:17 p.m.
Message ID <1374085031-2116-5-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/53907/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - July 17, 2013, 6:17 p.m.
The soname used by mesa is 1.2.0 while the Vivante binary lacked the
minor version so sometimes we might end fetching the wrong package
because of this.

Change-Id: I581c573f2b794923baa96829a483cd6d6f5393e0
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 3 +++
 1 file changed, 3 insertions(+)
John Weber - July 17, 2013, 7:32 p.m.
Does this fix the issue I found in bug:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4850

If so, great!

On 7/17/13 1:17 PM, Otavio Salvador wrote:
> The soname used by mesa is 1.2.0 while the Vivante binary lacked the
> minor version so sometimes we might end fetching the wrong package
> because of this.
>
> Change-Id: I581c573f2b794923baa96829a483cd6d6f5393e0
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
>   recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 3 +++
>   1 file changed, 3 insertions(+)
>
> 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 c9c266e..8c64822 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
> @@ -116,6 +116,9 @@ do_install () {
>
>       # We'll only have one backend here so we rename it to generic name
>       # and avoid rework in other packages, when possible
> +    mv ${D}${libdir}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2.0
> +    ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1.2
> +    ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so
>       mv ${D}${libdir}/libEGL-${backend}.so ${D}${libdir}/libEGL.so.1
>       ln -sf libEGL.so.1 ${D}${libdir}/libEGL.so
>       mv ${D}${libdir}/libGAL-${backend}.so ${D}${libdir}/libGAL.so
>
Otavio Salvador - July 17, 2013, 7:45 p.m.
On Wed, Jul 17, 2013 at 4:32 PM, John Weber <rjohnweber@gmail.com> wrote:
> Does this fix the issue I found in bug:
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=4850
>
> If so, great!

I think it does, if you can give it  a try it would be good.

--
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

Patch

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 c9c266e..8c64822 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
@@ -116,6 +116,9 @@  do_install () {
 
     # We'll only have one backend here so we rename it to generic name
     # and avoid rework in other packages, when possible
+    mv ${D}${libdir}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2.0
+    ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1.2
+    ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so
     mv ${D}${libdir}/libEGL-${backend}.so ${D}${libdir}/libEGL.so.1
     ln -sf libEGL.so.1 ${D}${libdir}/libEGL.so
     mv ${D}${libdir}/libGAL-${backend}.so ${D}${libdir}/libGAL.so