[vigra/f17] Patch to build with gcc-4.7.0
bpostle
bpostle at fedoraproject.org
Mon Feb 27 21:19:56 UTC 2012
commit 4f1f4002e1a0bc18fbb74dcb098593f84f679fa2
Author: Bruno Postle <bruno at postle.net>
Date: Mon Feb 27 21:21:30 2012 +0000
Patch to build with gcc-4.7.0
vigra-1.8.0.gcc47.patch | 12 ++++++++++++
vigra.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/vigra-1.8.0.gcc47.patch b/vigra-1.8.0.gcc47.patch
new file mode 100644
index 0000000..f6dc8c4
--- /dev/null
+++ b/vigra-1.8.0.gcc47.patch
@@ -0,0 +1,12 @@
+diff -ru vigra-1.8.0/include/vigra/numpy_array.hxx vigra-1.8.0.new/include/vigra/numpy_array.hxx
+--- vigra-1.8.0/include/vigra/numpy_array.hxx 2011-09-20 19:38:36.000000000 +0100
++++ vigra-1.8.0.new/include/vigra/numpy_array.hxx 2012-02-27 21:03:54.000000000 +0000
+@@ -1074,7 +1074,7 @@
+
+ this->m_stride /= sizeof(value_type);
+ this->m_ptr = reinterpret_cast<pointer>(pyArray()->data);
+- vigra_precondition(checkInnerStride(Stride()),
++ vigra_precondition(this->checkInnerStride(Stride()),
+ "NumpyArray<..., UnstridedArrayTag>::setupArrayView(): First dimension of given array is not unstrided (should never happen).");
+
+ }
diff --git a/vigra.spec b/vigra.spec
index d0ec0c1..544398c 100644
--- a/vigra.spec
+++ b/vigra.spec
@@ -2,11 +2,12 @@
Summary: Generic Programming for Computer Vision
Name: vigra
Version: 1.8.0
-Release: 3%{?dist}
+Release: 4%{?dist}
License: MIT
Group: Development/Libraries
Source: http://hci.iwr.uni-heidelberg.de/%{name}/%{name}-%{version}-src.tar.gz
Patch1: vigra-1.8.0.lib_suffix.patch
+Patch2: vigra-1.8.0.gcc47.patch
URL: http://hci.iwr.uni-heidelberg.de/vigra/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel libjpeg-devel libpng-devel libtiff-devel fftw-devel >= 3
@@ -42,6 +43,7 @@ The vigra-python package provides python bindings for vigra
%prep
%setup -q
%patch1 -p1
+%patch2 -p1
%build
%cmake .
@@ -79,6 +81,9 @@ rm -rf %{buildroot}
%{python_sitearch}/vigra
%changelog
+* Mon Feb 27 2012 Bruno Postle <bruno at postle.net> 1.8.0-4
+- patch to build with gcc-4.7.0
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list