Hello community, here is the log from the commit of package llvm4 for openSUSE:Factory checked in at 2017-05-27 13:07:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm4 (Old) and /work/SRC/openSUSE:Factory/.llvm4.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "llvm4" Sat May 27 13:07:09 2017 rev:3 rq:495565 version:4.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm4/lldb4.changes 2017-04-17 10:20:16.861454778 +0200 +++ /work/SRC/openSUSE:Factory/.llvm4.new/lldb4.changes 2017-05-27 13:08:52.392022137 +0200 @@ -1,0 +2,5 @@ +Wed May 17 10:22:57 UTC 2017 - idonmez@suse.com + +- Add lldb-gcc7.patch to fix build with gcc7 + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes 2017-04-25 08:56:37.568342272 +0200 +++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-05-27 13:08:54.279755239 +0200 @@ -1,0 +2,5 @@ +Tue May 9 08:29:31 UTC 2017 - idonmez@suse.com + +- Package libLLVMFuzzer + +------------------------------------------------------------------- New: ---- lldb-gcc7.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lldb4.spec ++++++ --- /var/tmp/diff_new_pack.vlaKRt/_old 2017-05-27 13:08:58.327182992 +0200 +++ /var/tmp/diff_new_pack.vlaKRt/_new 2017-05-27 13:08:58.331182427 +0200 @@ -33,6 +33,7 @@ Patch0: lldb-cmake.patch # PATCH-FIX-OPENSUSE lldb-add-pthread-dl-libs.patch -- Add -lpthread and -ldl options to the end of LDFLAGS to fix linking problems. Patch1: lldb-add-pthread-dl-libs.patch +Patch2: lldb-gcc7.patch BuildRequires: clang%{_sonum}-devel = %{version} BuildRequires: cmake BuildRequires: fdupes @@ -106,6 +107,7 @@ %setup -q -n lldb-%{version}.src %patch0 -p1 %patch1 -p1 +%patch2 -p1 # Set LLDB revision sed -i s,LLDB_REVISION,\"%{_llvm_revision}\",g source/lldb.cpp #" ++++++ llvm4.spec ++++++ --- /var/tmp/diff_new_pack.vlaKRt/_old 2017-05-27 13:08:58.363177904 +0200 +++ /var/tmp/diff_new_pack.vlaKRt/_new 2017-05-27 13:08:58.367177338 +0200 @@ -287,8 +287,8 @@ %package -n libc++-devel Summary: C++ standard library implementation (devel package) -Group: Development/Languages/C and C++ # Avoid multiple provider errors +Group: Development/Languages/C and C++ Requires: libc++%{_socxx} = %{version} Requires: libc++abi-devel = %{version} Conflicts: libc++.so @@ -352,6 +352,17 @@ This package contains the Python 2.x bindings to clang (C language) frontend for LLVM. +%if !0%{?sle_version} +%package -n libFuzzer +Summary: A library for coverage-guided fuzz testing +Group: Development/Libraries/C and C++ +Requires: clang%{_sonum} + +%description -n libFuzzer +This package contains libFuzzer, an in-process, coverage guided, evolutionary +fuzzing engine. +%endif + %prep %setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -b 50 -a 51 -n llvm-%{version}.src %patch1 @@ -494,6 +505,15 @@ %install %cmake_install +%if !0%{?sle_version} +# Install libFuzzer +pushd lib/Fuzzer +export PATH=$PWD/../../build/bin/:$PATH +./build.sh +cp libFuzzer.a %{buildroot}%{_libdir} +popd +%endif + # Docs are prebuilt due to sphinx dependency # # pushd llvm-4.0.0.src/docs @@ -1138,4 +1158,9 @@ %{_docdir}/python-clang/ %endif +%if !0%{?sle_version} +%files -n libFuzzer +%{_libdir}/libFuzzer.a +%endif + %changelog ++++++ lldb-gcc7.patch ++++++ Index: lldb-4.0.0.src/include/lldb/Utility/TaskPool.h =================================================================== --- lldb-4.0.0.src.orig/include/lldb/Utility/TaskPool.h +++ lldb-4.0.0.src/include/lldb/Utility/TaskPool.h @@ -28,6 +28,7 @@ #include <cassert> #include <cstdint> +#include <functional> #include <future> #include <list> #include <queue>