[wfmath] - enable tests on ppc(64) - build with -O0 on s390(x), with -O2 the shape_test fails

Dan Horák sharkcz at fedoraproject.org
Fri Oct 1 09:37:44 UTC 2010


commit ad1966bcc2480390ff7fd704e13037603668d95f
Author: Dan Horák <dan at danny.cz>
Date:   Fri Oct 1 11:37:38 2010 +0200

    - enable tests on ppc(64)
    - build with -O0 on s390(x), with -O2 the shape_test fails

 wfmath.spec |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/wfmath.spec b/wfmath.spec
index 01bc9ef..d440c33 100644
--- a/wfmath.spec
+++ b/wfmath.spec
@@ -1,6 +1,6 @@
 Name:           wfmath
 Version:        0.3.9
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        WorldForge client math libraries
 
 Group:          Development/Libraries
@@ -34,6 +34,10 @@ Libraries and header files for developing applications that use wfmath.
 
 
 %build
+# tests fail when build with -O2 on these arches
+%ifarch s390 s390x
+CXXFLAGS="%{optflags} -O0" \
+%endif
 %configure --disable-static
 make %{?_smp_mflags}
 
@@ -63,12 +67,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 rm -rf $RPM_BUILD_ROOT
 
 %check
-# Tests are failing on PPC :(
-%ifnarch ppc ppc64
 # Run tests in debug mode so asserts won't be skipped
 sed -i -e 's/-DNDEBUG/-DDEBUG/' wfmath/Makefile
 make %{?_smp_mflags} check
-%endif
 
 %post -p /sbin/ldconfig
 
@@ -91,6 +92,10 @@ make %{?_smp_mflags} check
 
 
 %changelog
+* Fri Oct  1 2010 Dan Horák <dan[at]danny.cz> 0.3.9-3
+- enable tests on ppc(64)
+- build with -O0 on s390(x), with -O2 the shape_test fails
+
 * Mon Jul 27 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.9-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


More information about the scm-commits mailing list