x11-libs/intel-gpu-tools: fix building due to missing inttypes.h #582430
authorMike Frysinger <vapier@gentoo.org>
Tue, 21 Jun 2016 18:43:13 +0000 (14:43 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 21 Jun 2016 18:47:20 +0000 (14:47 -0400)
x11-apps/intel-gpu-tools/files/intel-gpu-tools-1.12-inttypes.patch [new file with mode: 0644]
x11-apps/intel-gpu-tools/intel-gpu-tools-1.12.ebuild

diff --git a/x11-apps/intel-gpu-tools/files/intel-gpu-tools-1.12-inttypes.patch b/x11-apps/intel-gpu-tools/files/intel-gpu-tools-1.12-inttypes.patch
new file mode 100644 (file)
index 0000000..02a97c4
--- /dev/null
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/582430
+
+From d24f4a5c5fe45e2fad8942acc137f87cd8f35ea5 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 21 Jun 2016 14:37:38 -0400
+Subject: [PATCH] include inttypes.h for PRI defines
+
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96620
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ lib/igt_fb.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/igt_fb.c b/lib/igt_fb.c
+index 61205f345707..ba29eae5cabd 100644
+--- a/lib/igt_fb.c
++++ b/lib/igt_fb.c
+@@ -28,6 +28,7 @@
+ #define _GNU_SOURCE
+ #include <stdio.h>
+ #include <math.h>
++#include <inttypes.h>
+ #include "drmtest.h"
+ #include "igt_fb.h"
+-- 
+2.8.2
+
index 6ce5c35f078167ca494035f0af6b6be90088de5b..b25044b3a7cc932daf2f37e8a60f84ae3111ee23 100644 (file)
@@ -22,6 +22,10 @@ DEPEND="dev-libs/glib:2
        unwind? ( sys-libs/libunwind )"
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.12-inttypes.patch #582430
+)
+
 pkg_setup() {
        use python && python-single-r1_pkg_setup
 }