[mesa/f17] revert disabling of hardware drivers, disable only llvm on PPC* (#819060)

Karsten Hopp karsten at fedoraproject.org
Wed May 9 14:10:36 UTC 2012


commit 96823333b1e40ad3a003e00fc8658a9038a12125
Author: Karsten Hopp <karsten at redhat.com>
Date:   Wed May 9 15:49:21 2012 +0200

    revert disabling of hardware drivers, disable only llvm on PPC* (#819060)

 mesa.spec |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/mesa.spec b/mesa.spec
index 5b805e2..b7b46f3 100644
--- a/mesa.spec
+++ b/mesa.spec
@@ -1,5 +1,5 @@
 %if 0%{?rhel}
-%define rhel_no_hw_arches ppc ppc64
+%define rhel_no_hw_arches ppc ppc64 ppc64p7
 %endif
 
 # S390 doesn't have video cards, but we need swrast for xserver's GLX
@@ -7,6 +7,10 @@
 %define with_hardware 0
 %define dri_drivers --with-dri-drivers=swrast
 %else
+# llvm has some serious issues on PPC*, disable usage
+%ifnarch ppc ppc64 ppc64p7
+%define with_llvm 1
+%endif
 %define with_hardware 1
 %define base_drivers nouveau,radeon,r200
 %ifarch %{ix86}
@@ -32,7 +36,7 @@
 Summary: Mesa graphics libraries
 Name: mesa
 Version: 8.0.2
-Release: 4%{?dist}
+Release: 6%{?dist}
 License: MIT
 Group: System Environment/Libraries
 URL: http://www.mesa3d.org
@@ -70,8 +74,10 @@ BuildRequires: libXmu-devel
 BuildRequires: elfutils
 BuildRequires: python
 %if %{with_hardware}
+%if 0%{?with_llvm}
 BuildRequires: llvm-devel >= 3.0
 %endif
+%endif
 BuildRequires: libxml2-python
 BuildRequires: libudev-devel
 BuildRequires: libtalloc-devel
@@ -318,7 +324,7 @@ export CXXFLAGS="$RPM_OPT_FLAGS"
     --enable-gbm \
 %if %{with_hardware}
     --with-gallium-drivers=%{?with_vmware:svga,}r300,r600,nouveau,swrast \
-    --enable-gallium-llvm \
+    %{?with_llvm:--enable-gallium-llvm} \
     %{?with_vmware:--enable-xa} \
 %else
     --disable-gallium-llvm \
@@ -562,6 +568,10 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Wed May 09 2012 Karsten Hopp <karsten at redhat.com> 8.0.2-6
+- revert disabling of hardware drivers, disable only llvm on PPC*
+  (#819060)
+
 * Thu Apr 26 2012 Adam Jackson <ajax at redhat.com> 8.0.2-4
 - Don't build vmware stuff on PPC (#815444)
 


More information about the scm-commits mailing list