[OpenImageIO] Add missing patch.
Richard Shaw
hobbes1069 at fedoraproject.org
Thu Feb 12 13:13:54 UTC 2015
commit ae9c86a2edc675d15fc1180143dabdbde195cd01
Author: Richard M. Shaw <hobbes1069 at gmail.com>
Date: Thu Feb 12 07:13:45 2015 -0600
Add missing patch.
OpenImageIO.spec | 3 +++
oiio-1.5.11-unused.patch | 12 ++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/OpenImageIO.spec b/OpenImageIO.spec
index 7abe023..a174a40 100644
--- a/OpenImageIO.spec
+++ b/OpenImageIO.spec
@@ -14,6 +14,8 @@ Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version}
# Images for test suite
#Source1: oiio-images.tar.gz
+Patch0: oiio-1.5.11-unused.patch
+
BuildRequires: cmake
BuildRequires: txt2man
BuildRequires: qt4-devel
@@ -84,6 +86,7 @@ Development files for package %{name}
%prep
%setup -q -n oiio-Release-%{version}
+%patch0 -p1
# Remove bundled pugixml
rm -f src/include/pugixml.hpp \
diff --git a/oiio-1.5.11-unused.patch b/oiio-1.5.11-unused.patch
new file mode 100644
index 0000000..c24f1b0
--- /dev/null
+++ b/oiio-1.5.11-unused.patch
@@ -0,0 +1,12 @@
+diff -Naur oiio-Release-1.5.11.orig/src/ptex.imageio/ptex/PtexHalf.cpp oiio-Release-1.5.11/src/ptex.imageio/ptex/PtexHalf.cpp
+--- oiio-Release-1.5.11.orig/src/ptex.imageio/ptex/PtexHalf.cpp 2015-01-28 11:57:02.000000000 -0600
++++ oiio-Release-1.5.11/src/ptex.imageio/ptex/PtexHalf.cpp 2015-02-11 21:09:16.670289293 -0600
+@@ -80,7 +80,7 @@
+ return 1;
+ }
+
+-static bool PtexHalfInitialized = PtexHalfInit();
++bool PtexHalfInitialized = PtexHalfInit();
+
+
+ /** Handle exceptional cases for half-to-float conversion */
More information about the scm-commits
mailing list