[permlib] Add -test patch to fix two test failures.
Jerry James
jjames at fedoraproject.org
Wed Sep 26 21:40:46 UTC 2012
commit fdd9cc84b2d98bc06e9f213c6d0617697d011d7e
Author: Jerry James <jamesjer at betterlinux.com>
Date: Wed Sep 26 15:40:37 2012 -0600
Add -test patch to fix two test failures.
permlib-test.patch | 23 +++++++++++++++++++++++
permlib.spec | 4 ++++
2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/permlib-test.patch b/permlib-test.patch
new file mode 100644
index 0000000..f788b09
--- /dev/null
+++ b/permlib-test.patch
@@ -0,0 +1,23 @@
+--- ./include/permlib/permutation.h.orig 2012-09-18 11:32:12.000000000 -0600
++++ ./include/permlib/permutation.h 2012-09-26 15:18:10.971047967 -0600
+@@ -194,8 +194,7 @@ inline void Permutation::initFromCycleSt
+ seenIndices.set(first-1, 1);
+ #endif
+
+- while (!ss.eof()) {
+- ss >> temp;
++ while (ss >> temp) {
+ #ifdef PERMLIB_DEBUGMODE
+ BOOST_ASSERT( !seenIndices[temp-1] );
+ seenIndices.set(temp-1, 1);
+--- ./include/permlib/test/type_recognition.h.orig 2012-09-18 11:32:12.000000000 -0600
++++ ./include/permlib/test/type_recognition.h 2012-09-26 15:17:38.809969389 -0600
+@@ -342,7 +342,7 @@ GroupType* TypeRecognition<PERM,TRANSVER
+ orbits.push_back(orbit);
+ }
+
+- unsigned long int orbitGCD = orbits.front()->size();
++ size_t orbitGCD = orbits.front()->size();
+ BOOST_FOREACH(const OrbitPtr& orbit, orbits) {
+ orbitGCD = boost::math::gcd(orbitGCD, orbit->size());
+ }
diff --git a/permlib.spec b/permlib.spec
index 287accf..3fdd06f 100644
--- a/permlib.spec
+++ b/permlib.spec
@@ -8,6 +8,8 @@ URL: http://www.math.uni-rostock.de/~rehn/software/%{name}.html
Source0: http://www.math.uni-rostock.de/~rehn/software/%{name}-%{version}.tar.gz
# Doxygen config file written by Jerry James <loganjerry at gmail.com>
Source1: %{name}-Doxyfile
+# Sent upstream 26 Sep 2012. Fix two test failures.
+Patch0: %{name}-test.patch
BuildArch: noarch
BuildRequires: boost-devel
@@ -40,6 +42,7 @@ PermLib.
%prep
%setup -q
+%patch0
sed "s/@VERSION@/%{version}/" %{SOURCE1} > Doxyfile
%build
@@ -71,6 +74,7 @@ ctest
* Wed Sep 26 2012 Jerry James <loganjerry at gmail.com> - 0.2.7-1
- New upstream release
- Update Doxyfile
+- Add -test patch to fix two test failures
* Mon Aug 6 2012 Jerry James <loganjerry at gmail.com> - 0.2.6-4
- Rebuild for boost 1.50
More information about the scm-commits
mailing list