]> git.pld-linux.org Git - packages/vigra.git/commitdiff
Fix building with gcc 4.7 (patch from fedora) auto/th/vigra-1.8.0-8
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 12 Jul 2012 18:28:42 +0000 (20:28 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 12 Jul 2012 18:28:42 +0000 (20:28 +0200)
Cosmetics - no version in patch names
Release 8

vigra-gcc47.patch [new file with mode: 0644]
vigra-lib_suffix.patch [moved from vigra-1.8.0.lib_suffix.patch with 100% similarity]
vigra.spec

diff --git a/vigra-gcc47.patch b/vigra-gcc47.patch
new file mode 100644 (file)
index 0000000..f6dc8c4
--- /dev/null
@@ -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).");
+     }
index 89a7103017a551fc1fa92c0fbcaba6c7deeae555..70880ce053a0052e25f8bd0c1cf4b0522a6de8d1 100644 (file)
@@ -2,13 +2,14 @@ Summary:      Generic Programming for Computer Vision
 Summary(pl.UTF-8):     Ogólne programowanie obrazu komputerowego
 Name:          vigra
 Version:       1.8.0
-Release:       7
+Release:       8
 License:       MIT
 Group:         Libraries
 Source0:       http://hci.iwr.uni-heidelberg.de/vigra/%{name}-%{version}-src.tar.gz
 # Source0-md5: 15c5544448e529ee60020758ab6be264
 URL:           http://hci.iwr.uni-heidelberg.de/vigra/
-Patch0:                vigra-1.8.0.lib_suffix.patch
+Patch0:                %{name}-lib_suffix.patch
+Patch1:                %{name}-gcc47.patch
 BuildRequires: boost-python-devel >= 1.40.0
 BuildRequires: cmake >= 2.6.0
 BuildRequires: doxygen
@@ -92,6 +93,7 @@ Dokumentacja programisty do biblioteki vigra.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %cmake . \
This page took 0.02807 seconds and 4 git commands to generate.