[OpenImageIO] added patch for gcc 4.7 issue.

Richard Shaw hobbes1069 at fedoraproject.org
Thu Jan 5 21:02:47 UTC 2012


commit 33234cae3741888953f37cd31d928d0f026fbc11
Author: Richard M. Shaw <hobbes1069 at gmail.com>
Date:   Thu Jan 5 15:02:42 2012 -0600

    added patch for gcc 4.7 issue.

 OpenImageIO-0.10.4-gcc47_unistd_h.fix |   11 +++++++++++
 OpenImageIO.spec                      |    2 ++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/OpenImageIO-0.10.4-gcc47_unistd_h.fix b/OpenImageIO-0.10.4-gcc47_unistd_h.fix
new file mode 100644
index 0000000..5691937
--- /dev/null
+++ b/OpenImageIO-0.10.4-gcc47_unistd_h.fix
@@ -0,0 +1,11 @@
+diff -Naur OpenImageIO-oiio-7b7590f.orig/src/include/strutil.h OpenImageIO-oiio-7b7590f/src/include/strutil.h
+--- OpenImageIO-oiio-7b7590f.orig/src/include/strutil.h	2011-11-20 09:23:48.000000000 -0600
++++ OpenImageIO-oiio-7b7590f/src/include/strutil.h	2012-01-05 14:30:34.015046609 -0600
+@@ -44,6 +44,7 @@
+ #include <string>
+ #include <cstring>
+ #include <map>
++#include <unistd.h>
+ 
+ #include "export.h"
+ #include "version.h"
diff --git a/OpenImageIO.spec b/OpenImageIO.spec
index ac191d4..f698a8e 100644
--- a/OpenImageIO.spec
+++ b/OpenImageIO.spec
@@ -17,6 +17,7 @@ Patch0:         OpenImageIO-0.10.2-git_backports.patch
 Patch1:         OpenImageIO-0.10.0-atomic_test_fix.patch
 Patch2:         OpenImageIO-0.10.3-use_external_tbb.patch
 Patch3:         OpenImageIO-0.10.2-Z_BEST_COMPRESSION.patch
+Patch4:         OpenImageIO-0.10.4-gcc47_unistd_h.fix
 
 BuildRequires:  boost-devel glew-devel qt-devel OpenEXR-devel ilmbase-devel
 BuildRequires:  python2-devel txt2man
@@ -65,6 +66,7 @@ Development files for package %{name}
 %patch1 -p1 -b .atomic
 %patch2 -p1 -b .tbb
 %patch3 -p1 -b .zlib
+%patch4 -p1 -b .gcc47
 
 # Remove bundled pugixml
 rm -f src/include/pugixml.hpp \


More information about the scm-commits mailing list