From 4d2930abce11997e17fe986ae1827f7dd75b3a56 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 1 Aug 2016 00:29:23 -0400 Subject: [PATCH] media-libs/mesa: fix build w/newer glibc #580392 --- .../mesa/files/mesa-12.0-sysmacros.patch | 43 +++++++++++++++++++ media-libs/mesa/mesa-12.0.1.ebuild | 1 + 2 files changed, 44 insertions(+) create mode 100644 media-libs/mesa/files/mesa-12.0-sysmacros.patch diff --git a/media-libs/mesa/files/mesa-12.0-sysmacros.patch b/media-libs/mesa/files/mesa-12.0-sysmacros.patch new file mode 100644 index 000000000000..d4b06791fad7 --- /dev/null +++ b/media-libs/mesa/files/mesa-12.0-sysmacros.patch @@ -0,0 +1,43 @@ +https://bugs.gentoo.org/580392 + +fixed in upstream here: + https://cgit.freedesktop.org/mesa/mesa/commit/?id=20553e4a2d952f6dc37f40f63d2c86b0718c58f9 + +this is a hack for the 12.0 branch + +--- a/src/gallium/winsys/svga/drm/vmw_screen.c ++++ b/src/gallium/winsys/svga/drm/vmw_screen.c +@@ -31,6 +31,9 @@ + #include "pipe/p_compiler.h" + #include "util/u_hash_table.h" + #include ++#ifdef __linux__ ++#include ++#endif + #include + #include + +--- a/src/gbm/main/gbm.c ++++ b/src/gbm/main/gbm.c +@@ -31,6 +31,9 @@ + #include + + #include ++#ifdef __linux__ ++#include ++#endif + #include + #include + #include +--- a/src/loader/loader.c ++++ b/src/loader/loader.c +@@ -80,6 +80,9 @@ + #include "xmlpool.h" + #endif + #endif ++#ifdef __linux__ ++#include ++#endif + #ifdef HAVE_SYSFS + #include + #endif diff --git a/media-libs/mesa/mesa-12.0.1.ebuild b/media-libs/mesa/mesa-12.0.1.ebuild index 3d273ed85a30..ff35a8085349 100644 --- a/media-libs/mesa/mesa-12.0.1.ebuild +++ b/media-libs/mesa/mesa-12.0.1.ebuild @@ -186,6 +186,7 @@ pkg_setup() { src_prepare() { [[ ${PV} == 9999 ]] && eautoreconf + epatch "${FILESDIR}"/${PN}-12.0-sysmacros.patch #580392 } multilib_src_configure() { -- 2.26.2