From 12b85f0d30e2993a895856035d59908de77821e7 Mon Sep 17 00:00:00 2001 From: slapin Date: Sat, 7 Sep 2019 16:38:48 +0200 Subject: [PATCH] Fix soname in Mali.so to make auto-RDEPENDS work The auto-RDEPENDs system reqires that all .so libraries have proper soname set. If library soes not have soname set, it will not be added to RDEPENDs list of other elf files. Closes #240 --- recipes-graphics/libgles/sunxi-mali_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-graphics/libgles/sunxi-mali_git.bb b/recipes-graphics/libgles/sunxi-mali_git.bb index 8153b52..7ef696a 100644 --- a/recipes-graphics/libgles/sunxi-mali_git.bb +++ b/recipes-graphics/libgles/sunxi-mali_git.bb @@ -31,7 +31,7 @@ SRC_URI = "gitsm://github.com/linux-sunxi/sunxi-mali.git \ S = "${WORKDIR}/git" -DEPENDS = "libdrm xorgproto libump" +DEPENDS = "libdrm xorgproto libump patchelf-native" PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}" PACKAGECONFIG[wayland] = "EGL_TYPE=framebuffer,,," @@ -75,6 +75,7 @@ do_install() { # Packages like xf86-video-fbturbo dlopen() libUMP.so, so we do need to ship the .so files in ${PN} mv ${D}${libdir}/libMali.so ${D}${libdir}/libMali.so.3 + patchelf --set-soname libMali.so.3 ${D}${libdir}/libMali.so.3 ln -sf libMali.so.3 ${D}${libdir}/libMali.so for flib in libEGL.so.1.4 libGLESv1_CM.so.1.1 libGLESv2.so.2.0 ; do