]> code.ossystems Code Review - meta-freescale.git/commitdiff
gpu-viv-bin-mx6q: Don't package X11 libraries in non-X11 builds
authorJacob Kroon <jacob.kroon@mikrodidakt.se>
Fri, 26 Dec 2014 18:44:06 +0000 (19:44 +0100)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 29 Dec 2014 11:35:34 +0000 (09:35 -0200)
Running

  readelf --dynamic libGL.so | grep NEEDED

shows that the library has runtime dependencies on X11 libs and libglapi.so.
However, none of them are listed as build dependencies for non-X11 distros.

In this case, skip packaging libGL, so that it doesn't cause unexpected
dependency changes in buildhistory.

Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc

index ba11c6e8b2921797dc2d4d008d247968a84b2494..df3af1b9ab9c41e39b78d812ed7d9a77104cef07 100644 (file)
@@ -195,6 +195,16 @@ do_install () {
     ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2
     ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so
 
+    # FIXME: The libGL.so* libraries depend on the X11 libraries and
+    # libglapi.so from mesa. For non-X11 distros, neither of them are listed
+    # as build dependencies, which can lead to non-deterministic package
+    # dependencies. If the intention is that the GL backend should be usable
+    # without X11, the linking should be fixed. For now just skip
+    # packaging them.
+    if [ "${USE_X11}" = "no" ]; then
+        rm ${D}${libdir}/libGL.*
+    fi
+
     # skip packaging wayland libraries if no support is requested
     if [ "${USE_WL}" = "no" ]; then
         rm ${D}${libdir}/libgc_wayland_protocol.*
@@ -244,7 +254,6 @@ INSANE_SKIP_libegl-mx6 += "dev-so"
 FILES_libegl-mx6 = "${libdir}/libEGL${REALSOLIBS} ${libdir}/libEGL${SOLIBSDEV} "
 FILES_libegl-mx6-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc"
 FILES_libegl-mx6-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
-RDEPENDS_libgl-mx6 = "libglapi"
 # Includes GL headers from mesa
 RDEPENDS_libgl-mx6-dev += "libgl-mesa-dev"