gstreamer1.0-plugins-bad: Fix missing library with bcm egl
PATCH 1/3 gstreamer1.0-plugins-bad: Fix missing library with bcm egl
userland graphics driver provided libegl for rpi depends upon symbols from vchostif library, therefore add it to linker cmdline
helps with loadng gst-gl plugins on rpi
--- .../link-with-libvchostif.patch | 35 ++++++++++++++++++++++ .../gstreamer/gstreamer1.0-plugins-bad_1.10.4.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/link-with-libvchostif.patch
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/link-with-libvchostif.patch new file +35 -0
@@ -0,0 +1,35 @@ +Add -lvchostif to link when using -lEGL on rpi + +This is required because libEGL from userland uses sybols +from this library. + +lib/libEGL.so.1.0.0 121: 00000000 0 FUNC GLOBAL DEFAULT UND vc_dispmanx_element_add + 1552: 00000000 0 FUNC GLOBAL DEFAULT UND vc_dispmanx_element_add + +These symbols are provided by libvchostif as seen below + +lib/libvchostif.so + 252: 0000b161 192 FUNC GLOBAL DEFAULT 9 vc_dispmanx_element_add + 809: 0000b161 192 FUNC GLOBAL DEFAULT 9 vc_dispmanx_element_add + +With this explicit link, plugins fail during runtime + +(gst-plugin-scanner:571): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstomx.so': Error relocating /usr/lib/libgstgl-1.0.so.0: vc_dispmanx_element_add: symbol not found +(gst-plugin-scanner:571): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstopengl.so': Error relocating /usr/lib/libgstgl-1.0.so.0: vc_dispmanx_element_add: symbol not found + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending +Index: gst-plugins-bad-1.10.4/configure.ac +=================================================================== +--- gst-plugins-bad-1.10.4.orig/configure.ac ++++ gst-plugins-bad-1.10.4/configure.ac +@@ -785,7 +785,7 @@ case $host in + HAVE_EGL=yes + HAVE_GLES2=yes + HAVE_EGL_RPI=yes +- EGL_LIBS="-lbcm_host -lvcos -lvchiq_arm" ++ EGL_LIBS="-lbcm_host -lvchostif -lvcos -lvchiq_arm" + EGL_CFLAGS="" + AC_DEFINE(USE_EGL_RPI, [1], [Use RPi platform]) + ])
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.10.4.bb +1 -0
@@ -18,6 +18,7 @@ SRC_URI = " \ file://0001-smoothstreaming-implement-adaptivedemux-s-get_live_s.patch \ file://0001-smoothstreaming-use-the-duration-from-the-list-of-fr.patch \ file://0001-mssdemux-improved-live-playback-support.patch \ + file://link-with-libvchostif.patch \ " SRC_URI[md5sum] = "2757103e57a096a1a05b3ab85b8381af" SRC_URI[sha256sum] = "23ddae506b3a223b94869a0d3eea3e9a12e847f94d2d0e0b97102ce13ecd6966"
Signature · 1 line
2.13.0
PATCH 2/3 fts: Switch SRC_URI to github
Use the package maintained by voidlinux
Drop local patches
--- meta/recipes-core/fts/fts.bb | 36 +- .../fts/fts/fts-header-correctness.patch | 25 - meta/recipes-core/fts/fts/fts-uclibc.patch | 50 - meta/recipes-core/fts/fts/gcc5.patch | 1368 -------------------- meta/recipes-core/fts/fts/remove_cdefs.patch | 69 - meta/recipes-core/fts/fts/stdint.patch | 15 - 6 files changed, 8 insertions(+), 1555 deletions(-) delete mode 100644 meta/recipes-core/fts/fts/fts-header-correctness.patch delete mode 100644 meta/recipes-core/fts/fts/fts-uclibc.patch delete mode 100644 meta/recipes-core/fts/fts/gcc5.patch delete mode 100644 meta/recipes-core/fts/fts/remove_cdefs.patch delete mode 100644 meta/recipes-core/fts/fts/stdint.patch
meta/recipes-core/fts/fts.bb +8 -28
@@ -3,38 +3,18 @@ SUMMARY = "POSIX file tree stream operations library" HOMEPAGE = "https://sites.google.com/a/bostic.com/keithbostic" -LICENSE = "BSD-4-Clause" -LIC_FILES_CHKSUM = "file://fts.h;beginline=1;endline=36;md5=2532eddb3d1a21905723a4011ec4e085" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYING;md5=5ffe358174aad383f1b69ce3b53da982" SECTION = "libs" -SRC_URI = "https://sites.google.com/a/bostic.com/keithbostic/files/fts.tar.gz \ - file://fts-header-correctness.patch \ - file://fts-uclibc.patch \ - file://remove_cdefs.patch \ - file://stdint.patch \ - file://gcc5.patch \ -" - -SRC_URI[md5sum] = "120c14715485ec6ced14f494d059d20a" -SRC_URI[sha256sum] = "3df9b9b5a45aeaf16f33bb84e692a10dc662e22ec8a51748f98767d67fb6f342" - -S = "${WORKDIR}/${BPN}" +SRCREV = "944333aed9dc24cfa76cc64bfe70c75d25652753" +PV = "1.2+git${SRCPV}" -do_configure[noexec] = "1" - -HASHSTYLE_mipsarch = "sysv" -HASHSTYLE = "gnu" - -VER = "0" -do_compile () { - ${CC} -I${S} -fPIC -shared -Wl,--hash-style=${HASHSTYLE} -o libfts.so.${VER} -Wl,-soname,libfts.so.${VER} ${S}/fts.c -} +SRC_URI = "git://github.com/voidlinux/musl-fts \ +" +S = "${WORKDIR}/git" -do_install() { - install -Dm755 ${B}/libfts.so.${VER} ${D}${libdir}/libfts.so.${VER} - ln -sf libfts.so.${VER} ${D}${libdir}/libfts.so - install -Dm644 ${S}/fts.h ${D}${includedir}/fts.h -} +inherit autotools pkgconfig # # We will skip parsing for non-musl systems #
meta/recipes-core/fts/fts/fts-header-correctness.patch deleted +0 -25
@@ -1,25 +0,0 @@ -Included needed headers for compiling with musl - -Signed-off-by: Khem Raj <[email protected]> -Upstream-Status: Inappropriate - ---- fts.orig/fts.h -+++ fts/fts.h -@@ -38,6 +38,17 @@ - #ifndef _FTS_H_ - #define _FTS_H_ - -+#include <sys/types.h> -+#include <sys/param.h> -+#include <sys/stat.h> -+ -+#include <dirent.h> -+#include <errno.h> -+#include <fcntl.h> -+#include <stdlib.h> -+#include <string.h> -+#include <unistd.h> -+ - typedef struct { - struct _ftsent *fts_cur; /* current node */ - struct _ftsent *fts_child; /* linked list of children */
meta/recipes-core/fts/fts/fts-uclibc.patch deleted +0 -50
50 lines not on this page · raw message
meta/recipes-core/fts/fts/gcc5.patch deleted +0 -1368
1,368 lines not on this page · raw message
meta/recipes-core/fts/fts/remove_cdefs.patch deleted +0 -69
69 lines not on this page · raw message
meta/recipes-core/fts/fts/stdint.patch deleted +0 -15
@@ -1,15 +0,0 @@ -Include stdint.h for u_* typedefs - -Signed-off-by: Khem Raj <[email protected]> -Upstream-Status: Inappropriate - ---- ./fts.c.orig -+++ ./fts.c -@@ -46,6 +46,7 @@ - #include <errno.h> - #include <fcntl.h> - #include <fts.h> -+#include <stdint.h> - #include <stdlib.h> - #include <string.h> - #include <unistd.h>
Signature · 1 line
2.13.0
PATCH 3/3 libatomic-ops: Upgrade to 7.6.0
In reply to Khem RajCan compile in thumb1 and thumb2 modes nowAO_THUMB_GO_ARM, AO_THUMB_RESTORE_MODE are used
to guard swp instructions
Switch to github and use git for src_uri
--- .../libatomic-ops/libatomic-ops_7.4.4.bb | 32 ---------------------- .../libatomic-ops/libatomic-ops_7.6.0.bb | 20 ++++++++++++++ 2 files changed, 20 insertions(+), 32 deletions(-) delete mode 100644 meta/recipes-support/libatomic-ops/libatomic-ops_7.4.4.bb create mode 100644 meta/recipes-support/libatomic-ops/libatomic-ops_7.6.0.bb
meta/recipes-support/libatomic-ops/libatomic-ops_7.4.4.bb deleted +0 -32
@@ -1,32 +0,0 @@ -SUMMARY = "A library for atomic integer operations" -HOMEPAGE = "https://github.com/ivmai/libatomic_ops/" -SECTION = "optional" -PROVIDES += "libatomics-ops" -LICENSE = "GPLv2 & MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ - file://doc/LICENSING.txt;md5=e00dd5c8ac03a14c5ae5225a4525fa2d \ - " - -SRC_URI = "\ - http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-${PV}.tar.gz \ - file://0001-Add-initial-nios2-architecture-support.patch \ - " - -SRC_URI[md5sum] = "426d804baae12c372967a6d183e25af2" -SRC_URI[sha256sum] = "bf210a600dd1becbf7936dd2914cf5f5d3356046904848dcfd27d0c8b12b6f8f" - -S = "${WORKDIR}/libatomic_ops-${PV}" - -ALLOW_EMPTY_${PN} = "1" - -ARM_INSTRUCTION_SET = "arm" - -inherit autotools pkgconfig - -do_install_append() { - # those contain only docs, not necessary for now. - install -m 0755 -d ${D}${docdir} - mv ${D}${datadir}/libatomic_ops ${D}${docdir}/${BPN} -} - -BBCLASSEXTEND = "native nativesdk"
meta/recipes-support/libatomic-ops/libatomic-ops_7.6.0.bb new file +20 -0
@@ -0,0 +1,20 @@ +SUMMARY = "A library for atomic integer operations" +HOMEPAGE = "https://github.com/ivmai/libatomic_ops/" +SECTION = "optional" +PROVIDES += "libatomics-ops" +LICENSE = "GPLv2 & MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ + file://doc/LICENSING.txt;md5=e00dd5c8ac03a14c5ae5225a4525fa2d \ + " +PV .= "+git${SRCPV}" + +SRCREV = "73c60c5ef1ed370111549ee5aab6d4020ba70ed4" +SRC_URI = "git://github.com/ivmai/libatomic_ops" + +S = "${WORKDIR}/git" + +ALLOW_EMPTY_${PN} = "1" + +inherit autotools pkgconfig + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.13.0
Quoted 6 lines · Khem Raj
userland graphics driver provided libegl for rpi depends upon symbols from vchostif library, therefore add it to linker cmdline
helps with loadng gst-gl plugins on rpi
Signed-off-by Khem Raj <[email protected]>
Has it been send upstream?
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 10 lines · Otavio Salvador
Quoted 6 lines · Khem Raj
userland graphics driver provided libegl for rpi depends upon symbols from vchostif library, therefore add it to linker cmdline
helps with loadng gst-gl plugins on rpi
Signed-off-by Khem Raj <[email protected]>Has it been send upstream?
not yet, there is another patch to userland which needs to be upstreamed
first. http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/recipes-graphics/userland/userland/0011-build-shared-library-for-vchostif.patch
Quoted 5 lines
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750