From 0e2cca07d88ed5df0e388f135e0229148fcf2ceeebdb39c35b670421a27042e1 Mon Sep 17 00:00:00 2001 From: Hans-Peter Jansen Date: Sun, 4 Sep 2022 14:10:14 +0000 Subject: [PATCH] Accepting request 1001036 from home:StefanBruens:branches:graphics - Fix compatibility with LLVM >= 14.0, add 0001-Fix-compatibility-with-LLVM-14.patch OBS-URL: https://build.opensuse.org/request/show/1001036 OBS-URL: https://build.opensuse.org/package/show/graphics/OpenShadingLanguage?expand=0&rev=37 --- 0001-Fix-compatibility-with-LLVM-14.patch | 29 +++++++++++++++++++++++ OpenShadingLanguage.changes | 6 +++++ OpenShadingLanguage.spec | 10 +++----- 3 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 0001-Fix-compatibility-with-LLVM-14.patch diff --git a/0001-Fix-compatibility-with-LLVM-14.patch b/0001-Fix-compatibility-with-LLVM-14.patch new file mode 100644 index 0000000..134804b --- /dev/null +++ b/0001-Fix-compatibility-with-LLVM-14.patch @@ -0,0 +1,29 @@ +From 8ceef3f70c787529c0c0e2d214ce0eacc951ec8a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Stefan=20Br=C3=BCns?= +Date: Tue, 26 Apr 2022 02:59:50 +0200 +Subject: [PATCH] Fix compatibility with LLVM >= 14 + +Fixes #1496. +--- + src/liboslexec/llvm_util.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/liboslexec/llvm_util.cpp b/src/liboslexec/llvm_util.cpp +index 45e0b3e..96651f0 100644 +--- a/src/liboslexec/llvm_util.cpp ++++ b/src/liboslexec/llvm_util.cpp +@@ -37,7 +37,11 @@ + #include + #include + #include ++#if OSL_LLVM_VERSION < 140 + #include ++#else ++#include ++#endif + + #include + #include +-- +2.35.3 + diff --git a/OpenShadingLanguage.changes b/OpenShadingLanguage.changes index a3808d7..9c18a43 100644 --- a/OpenShadingLanguage.changes +++ b/OpenShadingLanguage.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 26 01:04:09 UTC 2022 - Stefan BrĂ¼ns + +- Fix compatibility with LLVM >= 14.0, add + 0001-Fix-compatibility-with-LLVM-14.patch + ------------------------------------------------------------------- Sun Apr 24 17:13:32 UTC 2022 - Hans-Peter Jansen diff --git a/OpenShadingLanguage.spec b/OpenShadingLanguage.spec index c9e63ff..42f2bd4 100644 --- a/OpenShadingLanguage.spec +++ b/OpenShadingLanguage.spec @@ -31,23 +31,19 @@ Group: Productivity/Graphics/Other URL: https://github.com/AcademySoftwareFoundation/OpenShadingLanguage Source0: https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: https://creativecommons.org/licenses/by/3.0/legalcode.txt#/CC-BY-3.0.txt +# PATCH-FIX-UPSTREAM - Extracted from https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/pull/1492 +Patch0: 0001-Fix-compatibility-with-LLVM-14.patch BuildRequires: OpenEXR-devel BuildRequires: OpenImageIO BuildRequires: bison -%if 0%{suse_version} > 1500 -# llvm 13 removed some interfaces -BuildRequires: clang12-devel -BuildRequires: llvm12-devel -%else BuildRequires: clang-devel > 7 -BuildRequires: llvm-devel > 7 -%endif BuildRequires: cmake >= 3.12 BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: libboost_filesystem-devel BuildRequires: libboost_system-devel BuildRequires: libboost_thread-devel +BuildRequires: llvm-devel > 7 %ifnarch %{arm} # Build fails with partio on armv7/armv6 BuildRequires: partio-devel