From 2bf538079717dd4e88b4dda19b6251b9a5e5de00 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Wed, 4 Jan 2017 13:16:28 -0600 Subject: [PATCH] Fix arch/optimizer specific problem with uninitialized variables. --- OpenImageIO-uninit.patch | 11 +++++++++++ OpenImageIO.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 OpenImageIO-uninit.patch diff --git a/OpenImageIO-uninit.patch b/OpenImageIO-uninit.patch new file mode 100644 index 0000000..0ed27ca --- /dev/null +++ b/OpenImageIO-uninit.patch @@ -0,0 +1,11 @@ +--- a/src/libtexture/texturesys.cpp ++++ b/src/libtexture/texturesys.cpp +@@ -2477,7 +2477,7 @@ TextureSystemImpl::sample_bicubic (int n + } else { + wx = evalBSplineWeights (float4(sfrac)); + wy = evalBSplineWeights (float4(tfrac)); +-#if (defined(__i386__) && !defined(__x86_64__)) || defined(__aarch64__) ++#if !defined(__x86_64__)) + // Some platforms complain here about these being uninitialized, + // so initialize them. Don't waste the cycles for platforms that + // don't seem to have that error. It's a false positive -- this diff --git a/OpenImageIO.spec b/OpenImageIO.spec index a5d1a44..44890e1 100644 --- a/OpenImageIO.spec +++ b/OpenImageIO.spec @@ -15,6 +15,7 @@ Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version} #Source1: oiio-images.tar.gz Patch0: OpenImageIO-man.patch +Patch1: OpenImageIO-uninit.patch BuildRequires: cmake gcc-c++ BuildRequires: txt2man @@ -98,6 +99,7 @@ Development files for package %{name} %prep %setup -q -n oiio-Release-%{version} %patch0 -p1 +%patch1 -p1 # Remove bundled pugixml rm -f src/include/OpenImageIO/pugixml.hpp \