Hello community, here is the log from the commit of package pocl for openSUSE:Factory checked in at 2019-11-18 20:07:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pocl (Old) and /work/SRC/openSUSE:Factory/.pocl.new.26869 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pocl" Mon Nov 18 20:07:54 2019 rev:20 rq:745273 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/pocl/pocl.changes 2019-08-05 10:36:24.951334309 +0200 +++ /work/SRC/openSUSE:Factory/.pocl.new.26869/pocl.changes 2019-11-18 20:08:02.213663846 +0100 @@ -1,0 +2,13 @@ +Mon Nov 4 20:04:34 UTC 2019 - Stefan BrĂ¼ns <[email protected]> + +- Update to version 1.4 + * Support for LLVM/Clang 8.0 and 9.0 + * Support for LLVM older than 6.0 has been removed. + * Improved SPIR and SPIR-V support for CPU device + * pocl-accel: An example driver and support infrastructure for + OpenCL 1.2 CL_DEVICE_TYPE_CUSTOM hardware accelerators. +- Remove upstreamed fix_resources_path_version_dependency.patch +- Fix build with single-component libclang-cpp.so, add + link_against_libclang-cpp_so.patch + +------------------------------------------------------------------- Old: ---- fix_resources_path_version_dependency.patch pocl-1.3.tar.gz New: ---- link_against_libclang-cpp_so.patch pocl-1.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pocl.spec ++++++ --- /var/tmp/diff_new_pack.SpsHsF/_old 2019-11-18 20:08:02.981663461 +0100 +++ /var/tmp/diff_new_pack.SpsHsF/_new 2019-11-18 20:08:02.985663460 +0100 @@ -17,9 +17,9 @@ # -%define sover 2.3.0 +%define sover 2.4.0 Name: pocl -Version: 1.3 +Version: 1.4 Release: 0 Summary: Portable Computing Language - an OpenCL implementation # The whole code is under MIT @@ -30,14 +30,12 @@ URL: http://portablecl.org/ Source0: https://github.com/pocl/pocl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source99: pocl-rpmlintrc -# PATCH-FIX-UPSTREAM - The clang resources path at compile time includes the full version, determine at runtime -Patch0: fix_resources_path_version_dependency.patch -BuildRequires: clang -BuildConflicts: clang >= 9 -BuildRequires: clang-devel >= 4 +# PATCH-FIX-UPSTREAM -- https://github.com/pocl/pocl/pull/779 +Patch0: link_against_libclang-cpp_so.patch +BuildConflicts: clang-devel >= 10 +BuildRequires: clang-devel >= 6 BuildRequires: cmake BuildRequires: gcc-c++ -BuildRequires: libtool-ltdl-devel BuildRequires: ninja BuildRequires: opencl-headers BuildRequires: pkgconfig @@ -45,10 +43,6 @@ BuildRequires: pkgconfig(hwloc) # Autoreq does not look into the ICD file Requires: libpocl2 -%if 0%{?sle_version} == 150000 && 0%{?is_opensuse} -# Old versions have opencl-c.h in the clang package, not libclang -Requires: clang5 -%endif # PPC has limited support/testing from upstream # s390(x) is also not supported, so use ExclusiveArch ExclusiveArch: %{ix86} x86_64 %arm aarch64 ++++++ link_against_libclang-cpp_so.patch ++++++ >From 079c8e9862550ef7d2c6b1f134efdfdebc67c45e Mon Sep 17 00:00:00 2001 From: Tom Stellard <[email protected]> Date: Thu, 26 Sep 2019 15:33:58 -0700 Subject: [PATCH] Link against libclang-cpp.so when linking with shared libraries libclang-cpp.so is a new shared object in clang-9.0.0 which contains all the clang components in one library. Doing this will save us from having to update cmake when there is a new clang component and may provide better performance in LTO builds of clang. --- cmake/LLVM.cmake | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cmake/LLVM.cmake b/cmake/LLVM.cmake index a02e2ba74..591b12424 100644 --- a/cmake/LLVM.cmake +++ b/cmake/LLVM.cmake @@ -219,10 +219,16 @@ string(REPLACE " -pedantic" "" LLVM_CXXFLAGS "${LLVM_CXXFLAGS}") string(REGEX REPLACE "-W[^ ]*" "" LLVM_CXXFLAGS "${LLVM_CXXFLAGS}") # Llvm-config does not include clang libs -set(CLANG_LIBNAMES clangCodeGen clangFrontendTool clangFrontend clangDriver clangSerialization - clangParse clangSema clangRewrite clangRewriteFrontend - clangStaticAnalyzerFrontend clangStaticAnalyzerCheckers - clangStaticAnalyzerCore clangAnalysis clangEdit clangAST clangASTMatchers clangLex clangBasic) +if(8 LESS LLVM_MAJOR AND LLVM_LIB_IS_SHARED MATCHES "shared") + # Link against a single shared library instead of multiple component shared + # libraries. + set(CLANG_LIBNAMES clang-cpp) +else() + set(CLANG_LIBNAMES clangCodeGen clangFrontendTool clangFrontend clangDriver clangSerialization + clangParse clangSema clangRewrite clangRewriteFrontend + clangStaticAnalyzerFrontend clangStaticAnalyzerCheckers + clangStaticAnalyzerCore clangAnalysis clangEdit clangAST clangASTMatchers clangLex clangBasic) +endif() foreach(LIBNAME ${CLANG_LIBNAMES}) find_library(C_LIBFILE_${LIBNAME} NAMES "${LIBNAME}" HINTS "${LLVM_LIBDIR}") ++++++ pocl-1.3.tar.gz -> pocl-1.4.tar.gz ++++++ ++++ 110577 lines of diff (skipped)
