[CTL] Add ctl-1.4.1-gcc47.patch (Fix mass rebuild FTBFS).

corsepiu corsepiu at fedoraproject.org
Thu Jan 19 03:56:54 UTC 2012


commit 34d39899b1c43837a0bc78083dfb2dc1f983bed2
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Thu Jan 19 04:56:50 2012 +0100

    Add ctl-1.4.1-gcc47.patch (Fix mass rebuild FTBFS).

 CTL.spec              |    7 ++++++-
 ctl-1.4.1-gcc47.patch |   12 ++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/CTL.spec b/CTL.spec
index 2157612..55cd469 100644
--- a/CTL.spec
+++ b/CTL.spec
@@ -1,6 +1,6 @@
 Name:           CTL
 Version:        1.4.1
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        The Color Transformation Language
 
 Group:          System Environment/Libraries
@@ -9,6 +9,7 @@ URL:            http://ampasctl.sourceforge.net/
 Source0:        http://downloads.sourceforge.net/ampasctl/ctl-%{version}.tar.gz
 Patch0:         ctl-1.4.1-gcc43.patch
 Patch1:         ctl-1.4.1-fix_pkgconfig.patch
+Patch2:         ctl-1.4.1-gcc47.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 # http://bugzilla.redhat.com/357461
@@ -44,6 +45,7 @@ This package contains documentation files for %{name}.
 %setup -q -n ctl-%{version}
 %patch0 -p1 -b .gcc43
 %patch1 -p1 -b .fix_pkg-config
+%patch2 -p1
 
 # Was needed to disable rpath from configure -> patch0
 #autoreconf
@@ -99,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc doc/CtlManual.pdf doc/CtlManual.doc
 
 %changelog
+* Thu Jan 19 2012 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.4.1-13
+- Add ctl-1.4.1-gcc47.patch (Fix mass rebuild FTBFS).
+
 * Thu Jan 12 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.1-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/ctl-1.4.1-gcc47.patch b/ctl-1.4.1-gcc47.patch
new file mode 100644
index 0000000..9b2c156
--- /dev/null
+++ b/ctl-1.4.1-gcc47.patch
@@ -0,0 +1,12 @@
+diff -Naur ctl-1.4.1.orig/IlmCtl/CtlInterpreter.cpp ctl-1.4.1/IlmCtl/CtlInterpreter.cpp
+--- ctl-1.4.1.orig/IlmCtl/CtlInterpreter.cpp	2006-12-14 23:43:55.000000000 +0100
++++ ctl-1.4.1/IlmCtl/CtlInterpreter.cpp	2012-01-19 04:49:14.150570152 +0100
+@@ -65,6 +65,8 @@
+ #include <algorithm>
+ #include <cassert>
+ 
++#include <unistd.h>
++
+ #ifdef WIN32
+     #include <io.h>
+     #include <stdio.h>


More information about the scm-commits mailing list