Patchwork [meta-fsl-arm] gpu-viv-bin-mx6q: Add missing libffi dependency

login
register
mail settings
Submitter Jacob Kroon
Date July 16, 2014, 10:50 p.m.
Message ID <1405551055-14656-1-git-send-email-jacob.kroon@mikrodidakt.se>
Download mbox | patch
Permalink /patch/75865/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Jacob Kroon - July 16, 2014, 10:50 p.m.
Running

  readelf --dynamic libgc_wayland_protocol.so | grep NEEDED

shows that the library has a runtime dependency on libffi. Same thing
applies to libwayland-viv.so.

Add libffi to DEPENDS, so that packaging can properly detect
the runtime dependency.

Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
---
 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 5 +++++
 1 file changed, 5 insertions(+)

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 4106848..cc542db 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
@@ -11,6 +11,11 @@  DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamag
                              base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \
                                            '', d), d)}"
 
+# libgc_wayland_protocol.so and libwayland-viv.so have a runtime
+# dependency on libffi. Make it a build dependency, so that it is available
+# at packaging time, in order to make the automatic dependency detection work.
+DEPENDS += "libffi"
+
 PROVIDES += "virtual/wayland-egl virtual/libgl virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 virtual/libopenvg"
 
 PE = "1"