diff --git a/Mesa.changes b/Mesa.changes index 6b0bbec..43330bc 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Sep 25 13:00:23 UTC 2014 - dvaleev@suse.com + +- Fix ppc64 build (bnc#893275 bnc#871128) + u_be_assert_include.patch + Add ncurses-devel as build dependency to build with -ltinfo +- Enable llvm on ppc64le (llvm3.5 got ppc64le support) +- Enable shared on ppc64 and ppc64le + ------------------------------------------------------------------- Sat Sep 20 23:31:03 UTC 2014 - tobias.johannes.klausmann@mni.thm.de diff --git a/Mesa.spec b/Mesa.spec index a8fabb1..f4a5574 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -29,7 +29,7 @@ %else %define gallium_loader 0 %endif -%ifarch %ix86 x86_64 %arm ppc64 ppc64le +%ifarch %ix86 x86_64 %arm ppc ppc64 ppc64le %define vdpau_r600 1 %else %define vdpau_r600 0 @@ -39,24 +39,17 @@ %else %define llvm_r600 0 %endif -%ifarch %ix86 x86_64 %arm ppc64 +%ifarch %ix86 x86_64 %arm ppc64 ppc64le %define xvmc_support 1 %else %define xvmc_support 0 %endif -%ifarch %ix86 x86_64 %arm ppc64 +%ifarch %ix86 x86_64 %arm ppc ppc64 ppc64le %define vdpau_nouveau 1 %else %define vdpau_nouveau 0 %endif -# llvm-config on ppc64 is currently broken (bnc#871128) -# /usr/lib64/libLLVMSupport.a(Process.cpp.o): In function `llvm::sys::Process::FileDescriptorHasColors(int)': -# /home/abuild/rpmbuild/BUILD/llvm/lib/Support/Process.cpp:(.text+0xcd4): undefined reference to `setupterm' -%ifarch ppc64 -%define egl_gallium 0 -%endif - %define _name_archive MesaLib %define _version 10.3.0 @@ -110,8 +103,9 @@ BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xfixes) BuildRequires: pkgconfig(xxf86vm) BuildRequires: pkgconfig(zlib) -%ifarch %arm ppc64 s390x %ix86 x86_64 +%ifarch %arm ppc64 ppc64le s390x %ix86 x86_64 BuildRequires: llvm-devel +BuildRequires: ncurses-devel %endif BuildRequires: libXvMC-devel BuildRequires: libvdpau-devel @@ -150,6 +144,7 @@ Patch13: u_mesa-8.0.1-fix-16bpp.patch # Patch from Fedora, use shmget when available, under llvmpipe Patch15: u_mesa-8.0-llvmpipe-shmget.patch Patch17: u_Suppress-any-libGL-.-warnings-when-LIBGL_DEBUG-is-se.patch +Patch18: u_be_assert_include.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -516,6 +511,7 @@ rm -rf docs/README.{VMS,WIN32,OS2} #%patch13 -p1 ### %patch17 -p1 +%patch18 -p1 %build rm -f src/mesa/depend @@ -565,12 +561,9 @@ autoreconf -fi --enable-vdpau \ --enable-xvmc \ %endif -%ifarch %arm ppc64 +%ifarch %arm ppc64 ppc64le --enable-xa \ --enable-gallium-llvm \ -%ifarch ppc64 - --disable-llvm-shared-libs \ -%endif --with-dri-drivers=nouveau \ %ifarch %arm --with-gallium-drivers=r300,r600,nouveau,swrast,svga,freedreno \ @@ -646,7 +639,7 @@ install -m 644 $RPM_SOURCE_DIR/README.updates \ %post -n libgbm1 -p /sbin/ldconfig %postun -n libgbm1 -p /sbin/ldconfig -%ifarch %ix86 x86_64 %arm ppc64 s390x +%ifarch %ix86 x86_64 %arm ppc64 ppc64le s390x %post -n libxatracker2 -p /sbin/ldconfig %postun -n libxatracker2 -p /sbin/ldconfig %endif @@ -777,7 +770,7 @@ install -m 644 $RPM_SOURCE_DIR/README.updates \ %_libdir/libgbm.so %_libdir/pkgconfig/gbm.pc -%ifarch %ix86 x86_64 %arm ppc64 s390x +%ifarch %ix86 x86_64 %arm ppc64 ppc64le s390x %files -n libxatracker2 %defattr(-,root,root) %_libdir/libxatracker.so.2* diff --git a/u_be_assert_include.patch b/u_be_assert_include.patch new file mode 100644 index 0000000..e5dbb8b --- /dev/null +++ b/u_be_assert_include.patch @@ -0,0 +1,27 @@ +From 83349c31a0e0997ea79bd2832cf9b80e7e22bbc0 Mon Sep 17 00:00:00 2001 +From: Dinar Valeev +Date: Mon, 29 Sep 2014 11:48:01 +0000 +Subject: [PATCH] Fix missing include for BigEndian systems +Patch-Mainline: "To be upstreamed" + + +Signed-off-by: Dinar Valeev +--- + src/gallium/auxiliary/util/u_math.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h +index 39bd40f..d4e3c12 100644 +--- a/src/gallium/auxiliary/util/u_math.h ++++ b/src/gallium/auxiliary/util/u_math.h +@@ -51,6 +51,7 @@ extern "C" { + #include + #include + #include ++#include + + #ifdef PIPE_OS_UNIX + #include /* for ffs */ +-- +1.7.12.4 +