From 8a55428bdcfed7d9939badc32726375da357cd36 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sat, 27 Apr 2013 01:51:39 +0000 Subject: [PATCH] Mesa: Update 9.1.1 patch * Use mmap vs malloc for exec memory * Solves #9685 on gcc4 --- sys-libs/mesa/mesa-9.1.1.bep | 2 +- sys-libs/mesa/patches/mesa-9.1.1.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 sys-libs/mesa/patches/mesa-9.1.1.patch diff --git a/sys-libs/mesa/mesa-9.1.1.bep b/sys-libs/mesa/mesa-9.1.1.bep index 573804871..411a60acc 100644 --- a/sys-libs/mesa/mesa-9.1.1.bep +++ b/sys-libs/mesa/mesa-9.1.1.bep @@ -13,7 +13,7 @@ DEPEND="scons, llvm >= 3.2" CHECKSUM_MD5="6ea2bdc3b7ecfb4257b39814b4182580" MESSAGE="This port only builds with gcc4. Not for general use." BUILD { - export DEBUG=1 + export DEBUG=0 echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" echo "This generates a Mesa3D build package for Haiku... not for general use" echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" diff --git a/sys-libs/mesa/patches/mesa-9.1.1.patch b/sys-libs/mesa/patches/mesa-9.1.1.patch new file mode 100644 index 000000000..65aa229e8 --- /dev/null +++ b/sys-libs/mesa/patches/mesa-9.1.1.patch @@ -0,0 +1,12 @@ +diff -Naur Mesa-9.1.1/src/mesa/main/execmem.c Mesa-9.1.1-haiku/src/mesa/main/execmem.c +--- Mesa-9.1.1/src/mesa/main/execmem.c 2013-03-20 00:14:38.014417920 +0000 ++++ Mesa-9.1.1-haiku/src/mesa/main/execmem.c 2013-04-27 00:42:08.707264512 +0000 +@@ -36,7 +36,7 @@ + + + +-#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) ++#if defined(__linux__) || defined(__OpenBSD__) || defined(_NetBSD__) || defined(__sun) || defined(__HAIKU__) + + /* + * Allocate a large block of memory which can hold code then dole it out