summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-18 00:04:54 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-18 00:04:54 -0500
commita32fb1096277e7afeef5dfebae40cd9836acf489 (patch)
treef403016c202544c819cb33a71aaae6074a3f2e19
parentapp-emulation/qemu: add upstream fixes for #567868 #568246 #570110 #570988 #5... (diff)
downloadgentoo-a32fb1096277e7afeef5dfebae40cd9836acf489.tar.gz
gentoo-a32fb1096277e7afeef5dfebae40cd9836acf489.tar.bz2
gentoo-a32fb1096277e7afeef5dfebae40cd9836acf489.zip
media-libs/virglrenderer: fix libdrm linkage #571124
-rw-r--r--media-libs/virglrenderer/files/virglrenderer-0.2.0-libdrm.patch31
-rw-r--r--media-libs/virglrenderer/virglrenderer-0.2.0.ebuild3
2 files changed, 33 insertions, 1 deletions
diff --git a/media-libs/virglrenderer/files/virglrenderer-0.2.0-libdrm.patch b/media-libs/virglrenderer/files/virglrenderer-0.2.0-libdrm.patch
new file mode 100644
index 000000000000..f1916728b408
--- /dev/null
+++ b/media-libs/virglrenderer/files/virglrenderer-0.2.0-libdrm.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/571124
+
+patch sent upstream
+
+From c78953320cae8b39869a8eae41fdec5c4ead30ae Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 17 Jan 2016 23:50:21 -0500
+Subject: [PATCH] link libvirglrenderer against libdrm
+
+The library uses it (via drmPrimeHandleToFD) so link it in.
+
+URL: https://bugs.gentoo.org/571124
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 61cf879..09be3e9 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,5 +1,6 @@
+ SUBDIRS := gallium/auxiliary
+ AM_LDFLAGS = -lgbm -lm -ldl -I./gallium/include \
++ $(LIBDRM_LIBS) \
+ $(EPOXY_LIBS) \
+ $(CODE_COVERAGE_LDFLAGS)
+
+--
+2.6.2
+
diff --git a/media-libs/virglrenderer/virglrenderer-0.2.0.ebuild b/media-libs/virglrenderer/virglrenderer-0.2.0.ebuild
index c3ca5408fc70..507a47aaf4bd 100644
--- a/media-libs/virglrenderer/virglrenderer-0.2.0.ebuild
+++ b/media-libs/virglrenderer/virglrenderer-0.2.0.ebuild
@@ -4,7 +4,7 @@
EAPI="5"
-inherit autotools
+inherit autotools eutils
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://people.freedesktop.org/~airlied/virglrenderer"
@@ -30,6 +30,7 @@ DEPEND="${RDEPEND}
test? ( >=dev-libs/check-0.9.4 )"
src_prepare() {
+ epatch "${FILESDIR}"/${P}-libdrm.patch #571124
[[ -e configure ]] || eautoreconf
}