Skip to contentSkip to conversation

ti-sgx-ddk-um: remove conflicting wayland-egl.pc

PATCH New Denys Dmytriyenko 1 participant 2 messages Aug 29, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ti-sgx-ddk-um: remove conflicting wayland-egl.pc

For more details see:
http://cgit.openembedded.org/openembedded-core/commit/?id=6e5952fcfc13ff4b63c9376bd41a1dbba957f425

---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 3 +++
 recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb | 3 +++
 2 files changed, 6 insertions(+)
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +3 -0
index 9896721..cc56229 100644
@@ -60,6 +60,9 @@ do_install () {
     mkdir -p ${D}${libdir}/gbm
     ln -sf ../libpvrGBMWSEGL.so.${PV} ${D}${libdir}/gbm/gbm_pvr.so
     ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+
+    rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc
+
     chown -R root:root ${D}
 }
 
recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb +3 -0
index 6a73d0f..b5bf558 100644
@@ -47,6 +47,9 @@ do_install () {
     mkdir -p ${D}${libdir}/gbm
     ln -sf ../libpvrGBMWSEGL.so.${PV} ${D}${libdir}/gbm/gbm_pvr.so
     ln -sf libGLESv2.so.${PV} ${D}${libdir}/libGLESv2.so.1
+
+    rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc
+
     chown -R root:root ${D}
 }
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 libgbm: fix undefined minor/major symbols with new glibc

glibc 2.28+ now requires this.
https://sourceware.org/bugzilla/show_bug.cgi?id=19239

---
 ...de-sys-sysmacros.h-for-minor-major-in-new.patch | 28 ++++++++++++++++++++++
 recipes-graphics/gbm/libgbm_10.0.0.bb              |  3 ++-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 recipes-graphics/gbm/libgbm/0001-gbm.c-include-sys-sysmacros.h-for-minor-major-in-new.patch
recipes-graphics/gbm/libgbm/0001-gbm.c-include-sys-sysmacros.h-for-minor-major-in-new.patch new file +28 -0
new file mode 100644
index 0000000..31134ab
@@ -0,0 +1,28 @@
+From ea5fc8da36886490d0ee40d475733cd98e38c2ec Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Tue, 28 Aug 2018 18:35:55 -0400
+Subject: [PATCH] gbm.c: include <sys/sysmacros.h> for minor/major in new glibc
+
+glibc 2.28+ now requires this.
+https://sourceware.org/bugzilla/show_bug.cgi?id=19239
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ gbm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/gbm.c b/gbm.c
+index c046b1a..9356d7b 100644
+--- a/gbm.c
++++ b/gbm.c
+@@ -35,6 +35,7 @@
+ #include <stdint.h>
+ 
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+ #include <errno.h>
+-- 
+2.7.4
+
recipes-graphics/gbm/libgbm_10.0.0.bb +2 -1
index 848a5f6..38715cc 100644
@@ -12,6 +12,7 @@ BRANCH = "next"
 
 SRCREV = "96f37555c7e82a417b02051661377b10e6b3966e"
 
-SRC_URI = "git://git.ti.com/glsdk/libgbm.git;protocol=git;branch=${BRANCH}"
+SRC_URI = "git://git.ti.com/glsdk/libgbm.git;protocol=git;branch=${BRANCH} \
+            file://0001-gbm.c-include-sys-sysmacros.h-for-minor-major-in-new.patch"
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.7.4