diff --git a/normaliz-codimension.patch b/normaliz-codimension.patch new file mode 100644 index 0000000..87712aa --- /dev/null +++ b/normaliz-codimension.patch @@ -0,0 +1,11 @@ +--- source/libnormaliz/cone.cpp.orig 2019-09-09 02:59:49.000000000 -0600 ++++ source/libnormaliz/cone.cpp 2019-09-27 08:24:04.445490717 -0600 +@@ -7337,7 +7337,7 @@ void Cone::make_face_lattice(co + + if(ToCompute.test(ConeProperty::FaceLattice)) + for(auto H=WorkFaces.begin();H!=WorkFaces.end();++H) +- FaceLattice[H->first]=codimension_so_far; ++ FaceLattice[H->first]=codimension_so_far - 1; + WorkFaces.clear(); + if(NewFaces.empty()) + break; diff --git a/normaliz.spec b/normaliz.spec index b7b12fd..923fce8 100644 --- a/normaliz.spec +++ b/normaliz.spec @@ -1,6 +1,6 @@ Name: normaliz Version: 3.8.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A tool for mathematical computations License: GPLv3+ @@ -8,6 +8,8 @@ URL: https://www.normaliz.uni-osnabrueck.de/ Source0: https://github.com/Normaliz/Normaliz/releases/download/v%{version}/%{name}-%{version}.tar.gz # Fix a sequence point error Patch0: %{name}-seqpoint.patch +# Upstream fix for an off-by-one error +Patch1: %{name}-codimension.patch BuildRequires: boost-devel BuildRequires: cocoalib-devel @@ -100,6 +102,9 @@ cp -p source/libnormaliz/output.h %{buildroot}%{_includedir}/libnormaliz %{_includedir}/libnormaliz/ %changelog +* Fri Sep 27 2019 Jerry James - 3.8.0-2 +- Add -codimension patch from upstream + * Tue Sep 24 2019 Jerry James - 3.8.0-1 - New upstream release - Add -seqpoint patch