From 2bc984d153df2d8b015de944385f608bee13532342257bd92e56200ea6d83e3d Mon Sep 17 00:00:00 2001 From: Dave Plater Date: Wed, 6 Nov 2019 12:12:25 +0000 Subject: [PATCH 1/2] Accepting request 745978 from home:plater:blender - Update to release 1.10.7 which fixes build with new llvm. OBS-URL: https://build.opensuse.org/request/show/745978 OBS-URL: https://build.opensuse.org/package/show/graphics/OpenShadingLanguage?expand=0&rev=8 --- ...p-of-stdosl.h-in-install-directory-a.patch | 68 +++++++++---------- OpenShadingLanguage-Release-1.10.7.tar.gz | 3 + OpenShadingLanguage-Release-1.9.13.tar.gz | 3 - OpenShadingLanguage.changes | 17 +++++ OpenShadingLanguage.spec | 23 ++++++- 5 files changed, 72 insertions(+), 42 deletions(-) create mode 100644 OpenShadingLanguage-Release-1.10.7.tar.gz delete mode 100644 OpenShadingLanguage-Release-1.9.13.tar.gz diff --git a/0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch b/0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch index 9e306db..10a3be7 100644 --- a/0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch +++ b/0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch @@ -35,10 +35,10 @@ the example above "/usr/share/OpenShadingLanguage/shaders/stdosl.h". 7 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 src/liboslcomp/oslcomp_shaders_dir.h.in -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 02feab53..05d5e959 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt +Index: OpenShadingLanguage-Release-1.10.7/CMakeLists.txt +=================================================================== +--- OpenShadingLanguage-Release-1.10.7.orig/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 ++++ OpenShadingLanguage-Release-1.10.7/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 @@ -53,6 +53,15 @@ if (CMAKE_USE_FOLDERS) set_property (GLOBAL PROPERTY USE_FOLDERS ON) endif () @@ -54,11 +54,11 @@ index 02feab53..05d5e959 100644 + include (GNUInstallDirs) - set (CMAKE_MODULE_PATH -diff --git a/src/liboslcomp/CMakeLists.txt b/src/liboslcomp/CMakeLists.txt -index 549aa549..15d9d026 100644 ---- a/src/liboslcomp/CMakeLists.txt -+++ b/src/liboslcomp/CMakeLists.txt + list (APPEND CMAKE_MODULE_PATH +Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/CMakeLists.txt +=================================================================== +--- OpenShadingLanguage-Release-1.10.7.orig/src/liboslcomp/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 ++++ OpenShadingLanguage-Release-1.10.7/src/liboslcomp/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 @@ -29,6 +29,8 @@ else () endif () @@ -68,11 +68,11 @@ index 549aa549..15d9d026 100644 TARGET_LINK_LIBRARIES ( oslcomp ${OPENIMAGEIO_LIBRARIES} ${ILMBASE_LIBRARIES} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${CLANG_LIBRARIES} ${LLVM_LIBRARIES} ${LLVM_LDFLAGS} -diff --git a/src/liboslcomp/oslcomp.cpp b/src/liboslcomp/oslcomp.cpp -index a89212aa..d4deda70 100644 ---- a/src/liboslcomp/oslcomp.cpp -+++ b/src/liboslcomp/oslcomp.cpp -@@ -36,6 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp.cpp +=================================================================== +--- OpenShadingLanguage-Release-1.10.7.orig/src/liboslcomp/oslcomp.cpp 2019-10-01 08:05:04.000000000 +0200 ++++ OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp.cpp 2019-11-06 11:56:09.880927045 +0200 +@@ -36,6 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE #include #include "oslcomp_pvt.h" @@ -80,7 +80,7 @@ index a89212aa..d4deda70 100644 #include #include -@@ -478,6 +479,14 @@ find_stdoslpath (const std::vector& includepaths) +@@ -485,6 +486,14 @@ find_stdoslpath (const std::vector exec_path_dirs; -diff --git a/src/liboslcomp/oslcomp_shaders_dir.h.in b/src/liboslcomp/oslcomp_shaders_dir.h.in -new file mode 100644 -index 00000000..0638252f ---- /dev/null -+++ b/src/liboslcomp/oslcomp_shaders_dir.h.in +Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp_shaders_dir.h.in +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp_shaders_dir.h.in 2019-11-06 11:56:09.880927045 +0200 @@ -0,0 +1,7 @@ +#ifndef OSL_SHADERS_INSTALL_DIR + @@ -108,10 +107,10 @@ index 00000000..0638252f +#define OSL_SHADERS_INSTALL_DIR "@INSTALL_FULL_SHADERDIR@/shaders/" + +#endif // OSL_SHADERS_INSTALL_DIR -diff --git a/src/liboslexec/CMakeLists.txt b/src/liboslexec/CMakeLists.txt -index eb8f0fa9..ff5595cc 100644 ---- a/src/liboslexec/CMakeLists.txt -+++ b/src/liboslexec/CMakeLists.txt +Index: OpenShadingLanguage-Release-1.10.7/src/liboslexec/CMakeLists.txt +=================================================================== +--- OpenShadingLanguage-Release-1.10.7.orig/src/liboslexec/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 ++++ OpenShadingLanguage-Release-1.10.7/src/liboslexec/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 @@ -41,6 +41,7 @@ if (NOT BUILDSTATIC) endif () @@ -120,27 +119,24 @@ index eb8f0fa9..ff5595cc 100644 FILE ( GLOB exec_headers "*.h" ) FILE ( GLOB compiler_headers "../liboslcomp/*.h" ) -diff --git a/src/shaders/CMakeLists.txt b/src/shaders/CMakeLists.txt -index 9b263ffa..594c09cb 100644 ---- a/src/shaders/CMakeLists.txt -+++ b/src/shaders/CMakeLists.txt +Index: OpenShadingLanguage-Release-1.10.7/src/shaders/CMakeLists.txt +=================================================================== +--- OpenShadingLanguage-Release-1.10.7.orig/src/shaders/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 ++++ OpenShadingLanguage-Release-1.10.7/src/shaders/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 @@ -63,4 +63,4 @@ add_custom_target (shaders ALL SOURCES ${shader_source} ${shader_headers}) install (FILES ${shader_headers} ${shader_source} ${shader_objs} - DESTINATION shaders) + DESTINATION ${INSTALL_FULL_SHADERDIR}/shaders) -diff --git a/src/shaders/MaterialX/CMakeLists.txt b/src/shaders/MaterialX/CMakeLists.txt -index 98f54840..d134fcde 100644 ---- a/src/shaders/MaterialX/CMakeLists.txt -+++ b/src/shaders/MaterialX/CMakeLists.txt -@@ -196,5 +196,5 @@ add_custom_target (mxshaders ALL +Index: OpenShadingLanguage-Release-1.10.7/src/shaders/MaterialX/CMakeLists.txt +=================================================================== +--- OpenShadingLanguage-Release-1.10.7.orig/src/shaders/MaterialX/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 ++++ OpenShadingLanguage-Release-1.10.7/src/shaders/MaterialX/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 +@@ -258,5 +258,5 @@ add_custom_target (mxshaders ALL SOURCES ${shader_source} ${mx_shader_headers}) install (FILES ${mx_shader_headers} ${mx_shader_objs} ${mx_shader_osls} - DESTINATION shaders/MaterialX) + DESTINATION ${INSTALL_FULL_SHADERDIR}/shaders/MaterialX) --- -2.20.1 - diff --git a/OpenShadingLanguage-Release-1.10.7.tar.gz b/OpenShadingLanguage-Release-1.10.7.tar.gz new file mode 100644 index 0000000..db7015d --- /dev/null +++ b/OpenShadingLanguage-Release-1.10.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c4cce505e2803baa55db11744adb72fad854c2a4cc4f02592f79324ac5bfda1 +size 13542717 diff --git a/OpenShadingLanguage-Release-1.9.13.tar.gz b/OpenShadingLanguage-Release-1.9.13.tar.gz deleted file mode 100644 index 3ec6763..0000000 --- a/OpenShadingLanguage-Release-1.9.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2bcd1d835f210dbc9e73f1d8892bb15c067d269cbb7b77d9fe5054e2f4fee394 -size 15451839 diff --git a/OpenShadingLanguage.changes b/OpenShadingLanguage.changes index 3a187f8..a6d0309 100644 --- a/OpenShadingLanguage.changes +++ b/OpenShadingLanguage.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Wed Nov 6 11:38:51 UTC 2019 - Dave Plater + +- Update to release 1.10.7 which fixes build with new llvm. +- Rebased: + 0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch +- Recent upstream changes: + *Adjust for deprecated material in more recent Qt releases. #1043 + *Fixes for MinGW compiler. #1047 + *Texture "missingalpha" optional parameter generated incorrect + code and crashed. #1044 + *Fix incorrect optimizations surrounding 'exit()' calls in the + middle of certain shader code blocks. #1051 + *LLVM 9 / clang 9 compatibility. #1058 + *Fixes to Travis CI system to keep up with OIIO master recently + upgrading its minimum required CMake. #1065 + ------------------------------------------------------------------- Sun Jan 13 02:21:24 UTC 2019 - Stefan Brüns diff --git a/OpenShadingLanguage.spec b/OpenShadingLanguage.spec index ea20b81..07bd91f 100644 --- a/OpenShadingLanguage.spec +++ b/OpenShadingLanguage.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + # The library soname versions follow the package version major and minor numbers. %define sover %(echo %{version} | cut -d . -f 1,2) %define sufx %(echo %{sover}|tr . _) @@ -24,7 +25,7 @@ # first davejplater@gmail.com or suffix the package with a 110 or something. Name: OpenShadingLanguage -Version: 1.9.13 +Version: 1.10.7 Release: 0 Summary: A language for programmable shading License: BSD-3-Clause @@ -57,8 +58,8 @@ BuildRequires: libboost_wave-devel BuildRequires: boost-devel >= 1.55.0 BuildConflicts: boost-devel >= 1.61.0 %endif -BuildRequires: OpenImageIO-devel BuildRequires: OpenEXR-devel +BuildRequires: OpenImageIO-devel BuildRequires: python Requires: %{name}-common-headers = %{version} Recommends: %{name}-doc = %{version} @@ -85,7 +86,9 @@ This package contains documentation. %package MaterialX-shaders-source Summary: MaterialX shader nodes +License: BSD-3-Clause Group: Development/Languages/Other + Requires: %{name} = %{version} Requires: %{name}-common-headers @@ -98,7 +101,9 @@ This package contains the code for the MaterialX shader nodes. %package example-shaders-source Summary: OSL shader examples +License: BSD-3-Clause Group: Development/Languages/Other + Requires: %{name} = %{version} Requires: %{name}-common-headers @@ -111,7 +116,9 @@ This package contains some OSL example shaders. %package common-headers Summary: OSL standard library and auxiliary headers +License: BSD-3-Clause Group: Development/Languages/Other + Requires: %{name} = %{version} %description common-headers @@ -124,6 +131,7 @@ as some additional headers useful for writing shaders. %package -n liboslcomp%{sufx} Summary: OpenShadingLanguage's compiler component library +License: BSD-3-Clause Group: System/Libraries %description -n liboslcomp%{sufx} @@ -133,6 +141,7 @@ materials, lights, displacement, and pattern generation. %package -n liboslexec%{sufx} Summary: OpenShadingLanguage's execution component library +License: BSD-3-Clause Group: System/Libraries %description -n liboslexec%{sufx} @@ -142,6 +151,7 @@ materials, lights, displacement, and pattern generation. %package -n liboslnoise%{sufx} Summary: OpenShadingLanguage's image noise generation library +License: BSD-3-Clause Group: System/Libraries %description -n liboslnoise%{sufx} @@ -151,6 +161,7 @@ materials, lights, displacement, and pattern generation. %package -n liboslquery%{sufx} Summary: Osl library +License: BSD-3-Clause Group: System/Libraries %description -n liboslquery%{sufx} @@ -160,6 +171,7 @@ materials, lights, displacement, and pattern generation. %package -n libtestshade%{sufx} Summary: Osl library +License: BSD-3-Clause Group: System/Libraries %description -n libtestshade%{sufx} @@ -169,6 +181,7 @@ materials, lights, displacement, and pattern generation. %package -n osl.imageio%{sufx} Summary: Shader interface to OpenImageIO functions +License: BSD-3-Clause Group: System/Libraries %description -n osl.imageio%{sufx} @@ -178,7 +191,9 @@ materials, lights, displacement, and pattern generation. %package devel Summary: Development files for %{name} +License: BSD-3-Clause Group: Development/Libraries/C and C++ + Requires: %{name} = %{version} Requires: liboslcomp%{sufx} = %{version} Requires: liboslexec%{sufx} = %{version} @@ -202,11 +217,14 @@ developing applications that use %{name}. %if 0%{suse_version} < 1500 %define llvm_libs %(llvm-config --libfiles | tr ' ' ';') %endif + %cmake \ %{?llvm_libs:-DLLVM_LIBRARY="%{llvm_libs}"} \ -DLLVM_MCJIT_LIBRARY="" \ -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \ -DOSL_INSTALL_SHADERDIR:PATH=%{_datadir}/%{name} +#Build can't find generated oslcomp_shaders_dir.h because it's under build dir +cp -v `find ../ -name oslcomp_shaders_dir.h` ../src/liboslcomp/ make %{?_smp_mflags} @@ -236,7 +254,6 @@ find %{buildroot} -type f -name "*.la" -delete -print %post -n osl.imageio%{sufx} -p /sbin/ldconfig %postun -n osl.imageio%{sufx} -p /sbin/ldconfig - %files %{_bindir}/* From 1d8ebb2e7a9238b43dec4d1e049f644f45b31e7eeb0d6f9b73f945bbc1749cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Wed, 6 Nov 2019 16:00:11 +0000 Subject: [PATCH 2/2] Accepting request 746037 from home:StefanBruens:branches:graphics - Properly rebase 0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch avoid workarounds in the spec file. - Remove conditional code for Leap 42.x - Reflect required versions of OpenIIO and Clang in the spec file. OBS-URL: https://build.opensuse.org/request/show/746037 OBS-URL: https://build.opensuse.org/package/show/graphics/OpenShadingLanguage?expand=0&rev=9 --- ...p-of-stdosl.h-in-install-directory-a.patch | 73 ++++++++++--------- OpenShadingLanguage.changes | 8 ++ OpenShadingLanguage.spec | 35 +-------- 3 files changed, 49 insertions(+), 67 deletions(-) diff --git a/0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch b/0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch index 10a3be7..a2171b6 100644 --- a/0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch +++ b/0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch @@ -1,4 +1,4 @@ -From 2e80787bfadd3d02064d72f7d5374d07bc0225cc Mon Sep 17 00:00:00 2001 +From b01c5510a1bc825a5bf90155ca926844fd679430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Sun, 13 Jan 2019 01:50:59 +0100 Subject: [PATCH] Generalize lookup of stdosl.h in install directory, allow @@ -26,19 +26,19 @@ The configured path is added to the stdosl.h path lookup, i.e. for the example above "/usr/share/OpenShadingLanguage/shaders/stdosl.h". --- CMakeLists.txt | 9 +++++++++ - src/liboslcomp/CMakeLists.txt | 2 ++ + src/liboslcomp/CMakeLists.txt | 3 +++ src/liboslcomp/oslcomp.cpp | 9 +++++++++ src/liboslcomp/oslcomp_shaders_dir.h.in | 7 +++++++ src/liboslexec/CMakeLists.txt | 1 + src/shaders/CMakeLists.txt | 2 +- src/shaders/MaterialX/CMakeLists.txt | 2 +- - 7 files changed, 30 insertions(+), 2 deletions(-) + 7 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 src/liboslcomp/oslcomp_shaders_dir.h.in -Index: OpenShadingLanguage-Release-1.10.7/CMakeLists.txt -=================================================================== ---- OpenShadingLanguage-Release-1.10.7.orig/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 -+++ OpenShadingLanguage-Release-1.10.7/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3722d68..cb5320e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt @@ -53,6 +53,15 @@ if (CMAKE_USE_FOLDERS) set_property (GLOBAL PROPERTY USE_FOLDERS ON) endif () @@ -55,24 +55,25 @@ Index: OpenShadingLanguage-Release-1.10.7/CMakeLists.txt include (GNUInstallDirs) list (APPEND CMAKE_MODULE_PATH -Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/CMakeLists.txt -=================================================================== ---- OpenShadingLanguage-Release-1.10.7.orig/src/liboslcomp/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 -+++ OpenShadingLanguage-Release-1.10.7/src/liboslcomp/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 -@@ -29,6 +29,8 @@ else () +diff --git a/src/liboslcomp/CMakeLists.txt b/src/liboslcomp/CMakeLists.txt +index 549aa54..a91a1b5 100644 +--- a/src/liboslcomp/CMakeLists.txt ++++ b/src/liboslcomp/CMakeLists.txt +@@ -29,6 +29,9 @@ else () endif () +configure_file ( oslcomp_shaders_dir.h.in oslcomp_shaders_dir.h ) ++target_include_directories ( oslcomp PRIVATE "${CMAKE_BINARY_DIR}/src/liboslcomp" ) + TARGET_LINK_LIBRARIES ( oslcomp ${OPENIMAGEIO_LIBRARIES} ${ILMBASE_LIBRARIES} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${CLANG_LIBRARIES} ${LLVM_LIBRARIES} ${LLVM_LDFLAGS} -Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp.cpp -=================================================================== ---- OpenShadingLanguage-Release-1.10.7.orig/src/liboslcomp/oslcomp.cpp 2019-10-01 08:05:04.000000000 +0200 -+++ OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp.cpp 2019-11-06 11:56:09.880927045 +0200 -@@ -36,6 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE +diff --git a/src/liboslcomp/oslcomp.cpp b/src/liboslcomp/oslcomp.cpp +index 76145dd..db1ec06 100644 +--- a/src/liboslcomp/oslcomp.cpp ++++ b/src/liboslcomp/oslcomp.cpp +@@ -36,6 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include "oslcomp_pvt.h" @@ -80,7 +81,7 @@ Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp.cpp #include #include -@@ -485,6 +486,14 @@ find_stdoslpath (const std::vector& includepaths) } } @@ -95,10 +96,11 @@ Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp.cpp // Try looking for "oslc" binary in the $PATH, and if so, look in // ../../shaders/stdosl.h std::vector exec_path_dirs; -Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp_shaders_dir.h.in -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp_shaders_dir.h.in 2019-11-06 11:56:09.880927045 +0200 +diff --git a/src/liboslcomp/oslcomp_shaders_dir.h.in b/src/liboslcomp/oslcomp_shaders_dir.h.in +new file mode 100644 +index 0000000..0638252 +--- /dev/null ++++ b/src/liboslcomp/oslcomp_shaders_dir.h.in @@ -0,0 +1,7 @@ +#ifndef OSL_SHADERS_INSTALL_DIR + @@ -107,10 +109,10 @@ Index: OpenShadingLanguage-Release-1.10.7/src/liboslcomp/oslcomp_shaders_dir.h.i +#define OSL_SHADERS_INSTALL_DIR "@INSTALL_FULL_SHADERDIR@/shaders/" + +#endif // OSL_SHADERS_INSTALL_DIR -Index: OpenShadingLanguage-Release-1.10.7/src/liboslexec/CMakeLists.txt -=================================================================== ---- OpenShadingLanguage-Release-1.10.7.orig/src/liboslexec/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 -+++ OpenShadingLanguage-Release-1.10.7/src/liboslexec/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 +diff --git a/src/liboslexec/CMakeLists.txt b/src/liboslexec/CMakeLists.txt +index 9f39444..fce411b 100644 +--- a/src/liboslexec/CMakeLists.txt ++++ b/src/liboslexec/CMakeLists.txt @@ -41,6 +41,7 @@ if (NOT BUILDSTATIC) endif () @@ -119,20 +121,20 @@ Index: OpenShadingLanguage-Release-1.10.7/src/liboslexec/CMakeLists.txt FILE ( GLOB exec_headers "*.h" ) FILE ( GLOB compiler_headers "../liboslcomp/*.h" ) -Index: OpenShadingLanguage-Release-1.10.7/src/shaders/CMakeLists.txt -=================================================================== ---- OpenShadingLanguage-Release-1.10.7.orig/src/shaders/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 -+++ OpenShadingLanguage-Release-1.10.7/src/shaders/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 +diff --git a/src/shaders/CMakeLists.txt b/src/shaders/CMakeLists.txt +index 9b263ff..594c09c 100644 +--- a/src/shaders/CMakeLists.txt ++++ b/src/shaders/CMakeLists.txt @@ -63,4 +63,4 @@ add_custom_target (shaders ALL SOURCES ${shader_source} ${shader_headers}) install (FILES ${shader_headers} ${shader_source} ${shader_objs} - DESTINATION shaders) + DESTINATION ${INSTALL_FULL_SHADERDIR}/shaders) -Index: OpenShadingLanguage-Release-1.10.7/src/shaders/MaterialX/CMakeLists.txt -=================================================================== ---- OpenShadingLanguage-Release-1.10.7.orig/src/shaders/MaterialX/CMakeLists.txt 2019-10-01 08:05:04.000000000 +0200 -+++ OpenShadingLanguage-Release-1.10.7/src/shaders/MaterialX/CMakeLists.txt 2019-11-06 11:56:09.880927045 +0200 +diff --git a/src/shaders/MaterialX/CMakeLists.txt b/src/shaders/MaterialX/CMakeLists.txt +index 88b52f3..42384da 100644 +--- a/src/shaders/MaterialX/CMakeLists.txt ++++ b/src/shaders/MaterialX/CMakeLists.txt @@ -258,5 +258,5 @@ add_custom_target (mxshaders ALL SOURCES ${shader_source} ${mx_shader_headers}) @@ -140,3 +142,6 @@ Index: OpenShadingLanguage-Release-1.10.7/src/shaders/MaterialX/CMakeLists.txt - DESTINATION shaders/MaterialX) + DESTINATION ${INSTALL_FULL_SHADERDIR}/shaders/MaterialX) +-- +2.24.0 + diff --git a/OpenShadingLanguage.changes b/OpenShadingLanguage.changes index a6d0309..5bd5644 100644 --- a/OpenShadingLanguage.changes +++ b/OpenShadingLanguage.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Nov 6 15:45:59 UTC 2019 - Stefan Brüns + +- Properly rebase 0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch + avoid workarounds in the spec file. +- Remove conditional code for Leap 42.x +- Reflect required versions of OpenIIO and Clang in the spec file. + ------------------------------------------------------------------- Wed Nov 6 11:38:51 UTC 2019 - Dave Plater diff --git a/OpenShadingLanguage.spec b/OpenShadingLanguage.spec index 07bd91f..c24c69e 100644 --- a/OpenShadingLanguage.spec +++ b/OpenShadingLanguage.spec @@ -20,10 +20,6 @@ %define sover %(echo %{version} | cut -d . -f 1,2) %define sufx %(echo %{sover}|tr . _) -#NOTE: This package was created for blender, blender doesn't build against -# the 1.10.x ABI. If there is the need to update to such a version please consult me -# first davejplater@gmail.com or suffix the package with a 110 or something. - Name: OpenShadingLanguage Version: 1.10.7 Release: 0 @@ -39,27 +35,15 @@ Patch0: 0001-Generalize-lookup-of-stdosl.h-in-install-directory-a.patch BuildRequires: bison BuildRequires: cmake BuildRequires: cmake(pugixml) -%if 0%{suse_version} >= 1500 -BuildRequires: clang-devel -%else -BuildRequires: llvm-clang-devel >= 3.8 -BuildRequires: ncurses-devel -%endif +BuildRequires: clang-devel >= 4 BuildRequires: flex BuildRequires: gcc-c++ -%if 0%{suse_version} >= 1500 BuildRequires: libboost_filesystem-devel BuildRequires: libboost_system-devel BuildRequires: libboost_thread-devel BuildRequires: libboost_wave-devel -%else -# The default 1.54 is to old, 1.61 has unresolvable -# symbols in boost::wave (C++ ABI issue?) -BuildRequires: boost-devel >= 1.55.0 -BuildConflicts: boost-devel >= 1.61.0 -%endif BuildRequires: OpenEXR-devel -BuildRequires: OpenImageIO-devel +BuildRequires: OpenImageIO-devel >= 1.8 BuildRequires: python Requires: %{name}-common-headers = %{version} Recommends: %{name}-doc = %{version} @@ -88,7 +72,6 @@ This package contains documentation. Summary: MaterialX shader nodes License: BSD-3-Clause Group: Development/Languages/Other - Requires: %{name} = %{version} Requires: %{name}-common-headers @@ -103,7 +86,6 @@ This package contains the code for the MaterialX shader nodes. Summary: OSL shader examples License: BSD-3-Clause Group: Development/Languages/Other - Requires: %{name} = %{version} Requires: %{name}-common-headers @@ -118,7 +100,6 @@ This package contains some OSL example shaders. Summary: OSL standard library and auxiliary headers License: BSD-3-Clause Group: Development/Languages/Other - Requires: %{name} = %{version} %description common-headers @@ -193,7 +174,6 @@ materials, lights, displacement, and pattern generation. Summary: Development files for %{name} License: BSD-3-Clause Group: Development/Libraries/C and C++ - Requires: %{name} = %{version} Requires: liboslcomp%{sufx} = %{version} Requires: liboslexec%{sufx} = %{version} @@ -211,20 +191,9 @@ developing applications that use %{name}. %patch0 -p1 %build -# We use a combined LLVM on 15.0/TW, so libLLVMMCJIT is neither available nor needed -# On 42.3., we have to collect the split libraries ourselfs, -# as the supplied FindLLVM.cmake is broken -%if 0%{suse_version} < 1500 -%define llvm_libs %(llvm-config --libfiles | tr ' ' ';') -%endif - %cmake \ - %{?llvm_libs:-DLLVM_LIBRARY="%{llvm_libs}"} \ - -DLLVM_MCJIT_LIBRARY="" \ -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \ -DOSL_INSTALL_SHADERDIR:PATH=%{_datadir}/%{name} -#Build can't find generated oslcomp_shaders_dir.h because it's under build dir -cp -v `find ../ -name oslcomp_shaders_dir.h` ../src/liboslcomp/ make %{?_smp_mflags}