From 42683543dadb60226a2212fb9e85e83b483b6525384e17f8ab3061e89c501956 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Wed, 29 May 2013 07:34:52 +0000 Subject: [PATCH] Accepting request 176903 from home:-miska-:branches:X11:XOrg - fixed compilation against latest lvm: llvm-3.3.patch OBS-URL: https://build.opensuse.org/request/show/176903 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=289 --- Mesa.changes | 5 +++++ Mesa.spec | 3 +++ llvm-3.3.patch | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 llvm-3.3.patch diff --git a/Mesa.changes b/Mesa.changes index eef149c..4af64ea 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 28 14:57:52 UTC 2013 - mhrusecky@suse.com + +- fixed compilation against latest lvm: llvm-3.3.patch + ------------------------------------------------------------------- Tue May 21 23:50:51 UTC 2013 - hrvoje.senjan@gmail.com diff --git a/Mesa.spec b/Mesa.spec index f606c30..d61cfd8 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -61,6 +61,7 @@ BuildRequires: llvm-devel %endif BuildRequires: libXvMC-devel BuildRequires: libvdpau-devel +BuildRequires: zlib-devel Url: http://www.mesa3d.org Provides: Mesa7 = %{version} @@ -95,6 +96,7 @@ Patch13: u_mesa-8.0.1-fix-16bpp.patch Patch14: u_mesa-glapi_dispatch.patch # Patch from Fedora, use shmget when available, under llvmpipe Patch15: u_mesa-8.0-llvmpipe-shmget.patch +Patch16: llvm-3.3.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -524,6 +526,7 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 %build diff --git a/llvm-3.3.patch b/llvm-3.3.patch new file mode 100644 index 0000000..73bf043 --- /dev/null +++ b/llvm-3.3.patch @@ -0,0 +1,39 @@ +From 4742f9b00b804dd01eb9955dd386a2373cd8eb36 Mon Sep 17 00:00:00 2001 +From: Armin K +Date: Thu, 02 May 2013 10:55:04 +0000 +Subject: gallivm: Fix build with LLVM 3.3 + +Reviewed-by: Tom Stellard +--- +Index: src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +=================================================================== +--- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp.orig ++++ src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +@@ -60,6 +60,12 @@ + #include + #endif /* HAVE_LLVM < 0x0300 */ + ++#if HAVE_LLVM >= 0x0303 ++#include ++#include ++#include ++#endif ++ + #include "pipe/p_config.h" + #include "util/u_debug.h" + #include "util/u_cpu_detect.h" +Index: src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +=================================================================== +--- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp.orig ++++ src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +@@ -55,6 +55,10 @@ + #include + #endif /* HAVE_LLVM >= 0x0301 */ + ++#if HAVE_LLVM >= 0x0303 ++#include ++#endif ++ + #include "util/u_math.h" + #include "util/u_debug.h" +