diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-06-21 14:17:09 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-06-21 14:17:29 -0400 |
commit | a9df2e715685e4be33c1e26b9326ac244c505814 (patch) | |
tree | 65927a8675832941863ec383bc79cadfc9e8f054 /x11-libs | |
parent | dev-libs/leatherman: bup (diff) | |
download | gentoo-a9df2e715685e4be33c1e26b9326ac244c505814.tar.gz gentoo-a9df2e715685e4be33c1e26b9326ac244c505814.tar.bz2 gentoo-a9df2e715685e4be33c1e26b9326ac244c505814.zip |
x11-libs/libdrm: fix building w/newer glibc #580088
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/libdrm/files/libdrm-2.4.68-sysmacros.patch | 43 | ||||
-rw-r--r-- | x11-libs/libdrm/libdrm-2.4.68.ebuild | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/x11-libs/libdrm/files/libdrm-2.4.68-sysmacros.patch b/x11-libs/libdrm/files/libdrm-2.4.68-sysmacros.patch new file mode 100644 index 000000000000..9f410d663d0f --- /dev/null +++ b/x11-libs/libdrm/files/libdrm-2.4.68-sysmacros.patch @@ -0,0 +1,43 @@ +https://bugs.gentoo.org/580088 +https://bugs.freedesktop.org/show_bug.cgi?id=94231 + +From c57842fa1f58104f5c5df7e46bb2d0a60de96ee3 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Tue, 21 Jun 2016 12:18:15 -0400 +Subject: [PATCH] pull in sys/sysmacros.h when available + +This header provides major/minor/makedev funcs under most Linux C +libs. Pull it in to fix building with newer versions that drop the +implicit include via sys/types.h. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + configure.ac | 2 +- + libkms/linux.c | 3 +++ + xf86drm.c | 3 +++ + 3 files changed, 7 insertions(+), 1 deletion(-) + +--- a/libkms/linux.c ++++ b/libkms/linux.c +@@ -44,6 +44,9 @@ + #ifdef HAVE_SYS_MKDEV_H + #include <sys/mkdev.h> + #endif ++#ifdef __linux__ ++#include <sys/sysmacros.h> ++#endif + + #include "libdrm_macros.h" + #include "internal.h" +--- a/xf86drm.c ++++ b/xf86drm.c +@@ -57,6 +57,9 @@ + #ifdef HAVE_SYS_MKDEV_H + # include <sys/mkdev.h> /* defines major(), minor(), and makedev() on Solaris */ + #endif ++#ifdef __linux__ ++#include <sys/sysmacros.h> ++#endif + #include <math.h> + + /* Not all systems have MAP_FAILED defined */ diff --git a/x11-libs/libdrm/libdrm-2.4.68.ebuild b/x11-libs/libdrm/libdrm-2.4.68.ebuild index d3263ae6d515..19a50072ceb9 100644 --- a/x11-libs/libdrm/libdrm-2.4.68.ebuild +++ b/x11-libs/libdrm/libdrm-2.4.68.ebuild @@ -35,6 +35,7 @@ src_prepare() { # tests are restricted, no point in building them sed -ie 's/tests //' "${S}"/Makefile.am fi + epatch "${FILESDIR}"/${PN}-2.4.68-sysmacros.patch #580088 xorg-2_src_prepare } |