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 \