From 289262d8e6d4ade814dc2426e1ce32067a2180e1 Mon Sep 17 00:00:00 2001 From: Jacob Kroon Date: Fri, 26 Dec 2014 19:44:06 +0100 Subject: gpu-viv-bin-mx6q: Don't package X11 libraries in non-X11 builds 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 Signed-off-by: Otavio Salvador --- recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 10 ++++++++++ 1 file changed, 10 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 2afbcb0..d14b9d0 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 @@ -180,6 +180,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.* -- cgit v1.2.3-54-g00ecf