[arch-commits] Commit in openshadinglanguage/trunk (PKGBUILD llvm9.patch)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Oct 16 18:52:49 UTC 2019
Date: Wednesday, October 16, 2019 @ 18:52:48
Author: svenstaro
Revision: 516382
upgpkg: openshadinglanguage 1.10.7-1
Modified:
openshadinglanguage/trunk/PKGBUILD
Deleted:
openshadinglanguage/trunk/llvm9.patch
-------------+
PKGBUILD | 20 +++++++-------------
llvm9.patch | 22 ----------------------
2 files changed, 7 insertions(+), 35 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-16 18:37:40 UTC (rev 516381)
+++ PKGBUILD 2019-10-16 18:52:48 UTC (rev 516382)
@@ -1,7 +1,7 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
pkgname=openshadinglanguage
-pkgver=1.10.6
-pkgrel=3
+pkgver=1.10.7
+pkgrel=1
pkgdesc="Advanced shading language for production GI renderers"
arch=(x86_64)
url="https://github.com/imageworks/OpenShadingLanguage"
@@ -9,22 +9,16 @@
depends=('boost-libs' 'openimageio' 'openexr' 'intel-tbb' 'freetype2' 'libpng'
'libtiff' 'zlib' 'ncurses')
makedepends=('boost' 'cmake' 'python' 'llvm' 'clang')
-source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz
- llvm9.patch)
-sha512sums=('5d3a735fa33bfebdba9082345dcfeb89c17e876c9958d8af78f4e2150153062013a88644fc612b5778236eebb16a5ebae9a6d0adb4ff1e152a5c451905220481'
- 'a52e0c103da6c800115f7140b3d29b78e20cb1a6a704bfe7440c50f1e398997dfd77723bfa9d6001aea7d2a249c3ebcbda3e94ea3ad512830f012a0b0b4bd77b')
+source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz)
+sha512sums=('3d6e2f6f6c04bd70f347b37c0d0f56291a9c03222c3418e0f87e87112e2ac05c50b65e772835709491c750093d693a6ba834cd0fafe3d80017051a51511ecd68')
prepare() {
- cd OpenShadingLanguage-Release-$pkgver
- patch -Np1 -i ../llvm9.patch
+ mkdir OpenShadingLanguage-Release-$pkgver/src/build
}
build() {
- cd OpenShadingLanguage-Release-$pkgver/src
+ cd OpenShadingLanguage-Release-$pkgver/src/build
- [[ -d build ]] && rm -r build
- mkdir build && cd build
-
cmake ../.. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
Deleted: llvm9.patch
===================================================================
--- llvm9.patch 2019-10-16 18:37:40 UTC (rev 516381)
+++ llvm9.patch 2019-10-16 18:52:48 UTC (rev 516382)
@@ -1,22 +0,0 @@
-From 00984c339f524319b38786710528fecbeb1397a1 Mon Sep 17 00:00:00 2001
-From: Larry Gritz <lg at larrygritz.com>
-Date: Thu, 12 Sep 2019 13:11:27 -0700
-Subject: [PATCH] LLVM 9 / clang 9 compatibility (#1058)
-
-diff --git a/src/liboslexec/llvm_util.cpp b/src/liboslexec/llvm_util.cpp
-index 1746ec628..838df1e21 100644
---- a/src/liboslexec/llvm_util.cpp
-+++ b/src/liboslexec/llvm_util.cpp
-@@ -682,7 +682,12 @@ LLVM_Util::make_function (const std::string &name, bool fastcall,
- bool varargs)
- {
- llvm::FunctionType *functype = type_function (rettype, params, varargs);
-+#if OSL_LLVM_VERSION >= 90
-+ auto funccallee = module()->getOrInsertFunction(name, functype);
-+ llvm::Value* c = funccallee.getCallee();
-+#else
- llvm::Constant *c = module()->getOrInsertFunction (name, functype);
-+#endif
- ASSERT (c && "getOrInsertFunction returned NULL");
- ASSERT_MSG (llvm::isa<llvm::Function>(c),
- "Declaration for %s is wrong, LLVM had to make a cast", name.c_str());
More information about the arch-commits
mailing list