diff --git a/FIX_BUILD_WITH_LLVM.patch b/FIX_BUILD_WITH_LLVM.patch new file mode 100644 index 0000000..daae947 --- /dev/null +++ b/FIX_BUILD_WITH_LLVM.patch @@ -0,0 +1,44 @@ +From 4a468de2d78fc5a9e6de40a9dae09669ec556fc5 Mon Sep 17 00:00:00 2001 +From: Tobias Droste +Date: Sun, 04 Sep 2011 01:14:23 +0000 +Subject: gallivm: fix build with LLVM 3.0svn + +LLVM 3.0svn moved TargetRegistry.h and TargetSelect.h. +See revision 138450 of LLVM. + +Signed-off-by: Tobias Droste +--- +diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +index e252607..401e0e2 100644 +--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp ++++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +@@ -27,17 +27,23 @@ + + #include + #include +-#include +-#include + #include + #include + #include + ++#if HAVE_LLVM >= 0x0300 ++#include ++#include ++#else /* HAVE_LLVM < 0x0300 */ ++#include ++#include ++#endif /* HAVE_LLVM < 0x0300 */ ++ + #if HAVE_LLVM >= 0x0209 + #include +-#else ++#else /* HAVE_LLVM < 0x0209 */ + #include +-#endif ++#endif /* HAVE_LLVM < 0x0209 */ + + #if HAVE_LLVM >= 0x0207 + #include +-- +cgit v0.9.0.2-2-gbebe diff --git a/Mesa.changes b/Mesa.changes index 1fb7e1e..1049fdd 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 9 15:08:02 UTC 2011 - vljn@ovi.com + +- Fix openSUSE 11.3 11.4 build + ------------------------------------------------------------------- Sun Sep 4 21:00:43 UTC 2011 - vljn@ovi.com diff --git a/Mesa.spec b/Mesa.spec index 1eae55d..0cf8f60 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -53,6 +53,9 @@ Patch11: u_Fix-crash-in-swrast-when-setting-a-texture-for-a-pix.patch # already upstream Patch13: U_Mesa-7.11-llvm3.patch Patch14: U_glx-ignore-BadRequest-errors-from-DRI2Connect.diff +%if 0%{?suse_version} <= 1140 +Patch15: FIX_BUILD_WITH_LLVM.patch +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -124,6 +127,10 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch13 -p0 %patch14 -p1 +%if 0%{?suse_version} <= 1140 +%patch15 -p1 +%endif + %build %install