[packages/exact-image] - fix building with gcc 4.7 - rel 4

baggins baggins at pld-linux.org
Tue Nov 13 00:08:18 CET 2012


commit 170caa05fc8c5bb47a6bed21b8173f8a54940177
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Nov 13 00:07:20 2012 +0100

    - fix building with gcc 4.7
    - rel 4

 exact-image-gcc47.patch | 10 ++++++++++
 exact-image.spec        |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/exact-image.spec b/exact-image.spec
index 636a9f8..10a7a0d 100644
--- a/exact-image.spec
+++ b/exact-image.spec
@@ -1,12 +1,13 @@
 Summary:	A fast, modern and generic image processing library
 Name:		exact-image
 Version:	0.8.5
-Release:	3
+Release:	4
 License:	GPL v2
 Group:		Applications/Graphics
 Source0:	http://dl.exactcode.de/oss/exact-image/%{name}-%{version}.tar.bz2
 # Source0-md5:	54c5dc9afd86ec573e7e2e9a80f45c71
 Patch0:		%{name}-libs.patch
+Patch1:		%{name}-gcc47.patch
 URL:		http://www.exactcode.de/site/open_source/exactimage/
 BuildRequires:	OpenEXR-devel >= 1.2.0
 BuildRequires:	agg-devel >= 2.3
@@ -35,6 +36,7 @@ alternative to ImageMagick.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 ./configure --prefix=%{_prefix} --without-libpng --without-php \
diff --git a/exact-image-gcc47.patch b/exact-image-gcc47.patch
new file mode 100644
index 0000000..b4a45fa
--- /dev/null
+++ b/exact-image-gcc47.patch
@@ -0,0 +1,10 @@
+--- exact-image-0.8.5/edisplay/edisplay.cc~	2010-10-18 17:33:02.000000000 +0200
++++ exact-image-0.8.5/edisplay/edisplay.cc	2012-11-13 00:05:37.644168959 +0100
+@@ -31,6 +31,7 @@
+ #include <algorithm>
+ #include <iostream>
+ #include <sstream>
++#include <unistd.h>
+ 
+ #include "ArgumentList.hh"
+ using namespace Utility;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/exact-image.git/commitdiff/170caa05fc8c5bb47a6bed21b8173f8a54940177



More information about the pld-cvs-commit mailing list