[gnome-boxes/flatpak-master-fixup: 5/8] flatpak: Ship virglrenderer patch explicitly linking it with libdrm
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/flatpak-master-fixup: 5/8] flatpak: Ship virglrenderer patch explicitly linking it with libdrm
- Date: Mon, 5 Aug 2019 07:21:55 +0000 (UTC)
commit f75fcda6682039f021e14f8012631b36e151ff7f
Author: Felipe Borges <felipeborges gnome org>
Date: Fri Aug 2 14:24:55 2019 +0200
flatpak: Ship virglrenderer patch explicitly linking it with libdrm
build-aux/flatpak/org.gnome.Boxes.json | 4 +++
...virglrenderer-explicitly-link-with-libdrm.patch | 31 ++++++++++++++++++++++
2 files changed, 35 insertions(+)
---
diff --git a/build-aux/flatpak/org.gnome.Boxes.json b/build-aux/flatpak/org.gnome.Boxes.json
index 235722a1..7e1e601a 100644
--- a/build-aux/flatpak/org.gnome.Boxes.json
+++ b/build-aux/flatpak/org.gnome.Boxes.json
@@ -342,6 +342,10 @@
{
"type" : "patch",
"path" : "virglrenderer-gallium-auxiliary-python-fix.patch"
+ },
+ {
+ "type" : "patch",
+ "path" : "virglrenderer-explicitly-link-with-libdrm.patch"
}
]
},
diff --git a/build-aux/flatpak/virglrenderer-explicitly-link-with-libdrm.patch
b/build-aux/flatpak/virglrenderer-explicitly-link-with-libdrm.patch
new file mode 100644
index 00000000..0070ddd1
--- /dev/null
+++ b/build-aux/flatpak/virglrenderer-explicitly-link-with-libdrm.patch
@@ -0,0 +1,31 @@
+From dff435479c61b08be58a70ac00ea86f8d2235dd2 Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex kanavin gmail com>
+Date: Tue, 12 Feb 2019 12:04:52 +0100
+Subject: [PATCH] Makefile.am: explicitly link with libdrm
+
+Otherwise, a failure happens with gold linker:
+
+../src/.libs/libvirglrenderer.so: error: undefined reference to 'drmPrimeHandleToFD'
+
+https://errors.yoctoproject.org/Errors/Details/222046/
+
+Signed-off-by: Alexander Kanavin <alex kanavin gmail com>
+Signed-off-by: Dave Airlie <airlied redhat com>
+---
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 9a0a44e..9b668c8 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,5 +1,6 @@
+ SUBDIRS := gallium/auxiliary
+ AM_LDFLAGS = -lm \
++ $(LIBDRM_LIBS) \
+ $(GBM_LIBS) \
+ $(EPOXY_LIBS) \
+ $(X11_LIBS) \
+--
+2.21.0
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]