commit llvm4 for openSUSE:Factory

2018-12-20 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-12-21 08:22:01

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new.28833 (New)


Package is "llvm4"

Fri Dec 21 08:22:01 2018 rev:20 rq:660216 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2018-06-20 
15:30:56.394984073 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new.28833/llvm4.changes   2018-12-21 
08:22:18.801519758 +0100
@@ -1,0 +2,7 @@
+Wed Dec 19 19:45:44 UTC 2018 - Todd R 
+
+- Use %license macro
+- Use upstream-recommended %{_rpmconfigdir}/macros.d directory
+  for the rpm macros.
+
+---



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.B2Qy1A/_old  2018-12-21 08:22:20.281518372 +0100
+++ /var/tmp/diff_new_pack.B2Qy1A/_new  2018-12-21 08:22:20.281518372 +0100
@@ -909,8 +909,8 @@
 done
 
 # rpm macro for version checking
-mkdir -p %{buildroot}%{_sysconfdir}/rpm
-cat > %{buildroot}%{_sysconfdir}/rpm/macros.llvm < %{buildroot}%{_rpmconfigdir}/macros.d/macros.llvm <

commit llvm4 for openSUSE:Factory

2018-06-20 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-06-20 15:29:27

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Wed Jun 20 15:29:27 2018 rev:19 rq:617496 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2018-05-19 
15:42:45.513985990 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-06-20 
15:30:56.394984073 +0200
@@ -1,0 +2,6 @@
+Mon Jun 18 11:13:00 UTC 2018 - m...@suse.com
+
+- llvm-build-tests-with-rtti.patch
+  * Fixes build failure with gcc 8. (bnc#1087136)
+
+---

New:

  llvm-build-tests-with-rtti.patch



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.bU6f4Q/_old  2018-06-20 15:31:00.114849113 +0200
+++ /var/tmp/diff_new_pack.bU6f4Q/_new  2018-06-20 15:31:00.118848968 +0200
@@ -102,6 +102,7 @@
 Patch24:libcxx-fix-python3-syntax-error.patch
 Patch25:n_clang_allow_BUILD_SHARED_LIBRARY.patch
 Patch26:libcxx.glibc2.27.diff
+Patch27:llvm-build-tests-with-rtti.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -536,6 +537,7 @@
 %patch22 -p1
 %patch23 -p1
 %patch25 -p1
+%patch27 -p1
 
 pushd cfe-%{version}.src
 %patch20 -p1

++ llvm-build-tests-with-rtti.patch ++
References: bnc#1087136

LLVM is built with RTTI, so the tests should too. Mixing the two can lead to
crashes.

Index: llvm-6.0.0.src/cmake/modules/AddLLVM.cmake
===
--- llvm-6.0.0.src.orig/cmake/modules/AddLLVM.cmake
+++ llvm-6.0.0.src/cmake/modules/AddLLVM.cmake
@@ -1093,8 +1093,6 @@ function(add_unittest test_suite test_na
 list(APPEND LLVM_COMPILE_FLAGS "-Wno-gnu-zero-variadic-macro-arguments")
   endif()
 
-  set(LLVM_REQUIRES_RTTI OFF)
-
   list(APPEND LLVM_LINK_COMPONENTS Support) # gtest needs it for raw_ostream
   add_llvm_executable(${test_name} IGNORE_EXTERNALIZE_DEBUGINFO 
NO_INSTALL_RPATH ${ARGN})
   set(outdir ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})



commit llvm4 for openSUSE:Factory

2018-05-19 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-05-19 15:42:36

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Sat May 19 15:42:36 2018 rev:18 rq:610300 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2018-05-11 
09:17:04.117138018 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-05-19 
15:42:45.513985990 +0200
@@ -1,0 +2,6 @@
+Thu May 17 15:56:25 UTC 2018 - m...@suse.com
+
+- Disable build of python3-clang, libFuzzer and libc++* libraries.
+  They are build by newer version of llvm. (bsc#1093707)
+
+---



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.q7Jsrx/_old  2018-05-19 15:42:49.641834965 +0200
+++ /var/tmp/diff_new_pack.q7Jsrx/_new  2018-05-19 15:42:49.645834819 +0200
@@ -23,11 +23,19 @@
 %define _uaver  401
 %define _socxx  1
 %define _revsn  305264
-%ifarch x86_64
-%bcond_without libcxx
-%else
+
+# libcxx is provided by newer llvm, so it is disabled by default here to
+# not have conflicting binary packages
 %bcond_with libcxx
-%endif
+
+# libFuzzer is provided by newer llvm, so it is disabled by default here to
+# not have conflicting binary packages
+%bcond_with libFuzzer
+
+# python3-clang is provided by newer llvm, so it is disabled by default here to
+# not have conflicting binary packages
+%bcond_with pyclang
+
 %ifarch ppc64 ppc64le %{ix86} x86_64
 %bcond_without openmp
 %else
@@ -41,7 +49,6 @@
 %bcond_with ffi
 %bcond_with oprofile
 %bcond_with valgrind
-%bcond_without pyclang
 
 Name:   llvm4
 Version:4.0.1
@@ -414,6 +421,7 @@
 frontend for LLVM.
 
 %if !0%{?sle_version}
+%if %{with libFuzzer}
 %package -n libFuzzer
 Summary:A library for coverage-guided fuzz testing
 Group:  Development/Libraries/C and C++
@@ -423,6 +431,7 @@
 This package contains libFuzzer, an in-process, coverage guided, evolutionary
 fuzzing engine.
 %endif
+%endif
 
 %package -n lld%{_sonum}
 Summary:Linker for Clang/LLVM
@@ -743,11 +752,13 @@
 cd ..
 
 %if !0%{?sle_version}
+%if %{with libFuzzer}
 # Build libFuzzer
 pushd lib/Fuzzer
 ./build.sh
 popd
 %endif
+%endif
 
 %install
 %cmake_install
@@ -926,11 +937,13 @@
 %fdupes %{_includedir}/%{name}/Host/
 
 %if !0%{?sle_version}
+%if %{with libFuzzer}
 # Install libFuzzer
 pushd lib/Fuzzer
 cp libFuzzer.a %{buildroot}%{_libdir}
 popd
 %endif
+%endif
 
 %check
 
@@ -1523,9 +1536,11 @@
 %endif
 
 %if !0%{?sle_version}
+%if %{with libFuzzer}
 %files -n libFuzzer
 %{_libdir}/libFuzzer.a
 %endif
+%endif
 
 %files -n lld%{_sonum}
 %defattr(-,root,root,-)




commit llvm4 for openSUSE:Factory

2018-05-11 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-05-11 09:16:51

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Fri May 11 09:16:51 2018 rev:17 rq:606101 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2018-05-03 
12:33:17.698329739 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-05-11 
09:17:04.117138018 +0200
@@ -1,0 +2,8 @@
+Wed May  9 10:32:04 UTC 2018 - m...@suse.com
+
+- Do not build stage1 with debug info. It was accidentally added
+  with the use of %optflags. This should fix out of memory errors
+  on 32bit architectures and speed up build everywhere else.
+  (bsc#1092697)
+
+---



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.IsbKoj/_old  2018-05-11 09:17:06.289059329 +0200
+++ /var/tmp/diff_new_pack.IsbKoj/_new  2018-05-11 09:17:06.293059184 +0200
@@ -592,10 +592,12 @@
 
 %build
 
-# Remove the -D_FORTIFY_SOURCE=2 from optflags because llvm does not build
-# correctly with hardening. The problem is in sanitizers from compiler-rt.
-flags="%{optflags}"
-flags=${flags//-D_FORTIFY_SOURCE=?/-D_FORTIFY_SOURCE=0}
+# Use optflags, but:
+# 1) Remove the -D_FORTIFY_SOURCE=2 because llvm does not build correctly with
+#hardening. The problem is in sanitizers from compiler-rt.
+# 2) Remove the -g. We don't want it in stage1 and it will be added by cmake in
+#the following stage.
+flags=$(echo %{optflags} | sed 
's/-D_FORTIFY_SOURCE=./-D_FORTIFY_SOURCE=0/;s/\B-g\b//g')
 
 flags+=" -fno-strict-aliasing"
 




commit llvm4 for openSUSE:Factory

2018-05-03 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-05-03 12:33:17

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Thu May  3 12:33:17 2018 rev:16 rq:603027 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2018-03-18 
21:44:34.450298339 +0100
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-05-03 
12:33:17.698329739 +0200
@@ -1,0 +2,6 @@
+Wed May  2 07:53:39 UTC 2018 - m...@suse.com
+
+- Add appropriate Conflicts to make the package acceptable to Leap
+  42.3. It is required as rust/Firefox dependency. (bnc#1091551)
+
+---



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.pLxdGR/_old  2018-05-03 12:33:22.342164341 +0200
+++ /var/tmp/diff_new_pack.pLxdGR/_new  2018-05-03 12:33:22.346164198 +0200
@@ -131,6 +131,9 @@
 %if %{with oprofile}
 BuildRequires:  oprofile-devel
 %endif
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm
+%endif
 
 %description
 LLVM is a compiler infrastructure designed for compile-time,
@@ -174,6 +177,9 @@
 %if %{with oprofile}
 Requires:   oprofile-devel
 %endif
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm-devel
+%endif
 
 %description devel
 This package contains library and header files needed to develop
@@ -194,6 +200,9 @@
 %if %{with cxx}
 Requires:   libc++%{_socxx}
 %endif
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm-clang
+%endif
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 
@@ -211,6 +220,9 @@
 Conflicts:  scan-view
 Provides:   scan-build
 Provides:   scan-view
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm-clang
+%endif
 
 %description -n clang%{_sonum}-checker
 This package contains scan-build and scan-view, command line
@@ -264,6 +276,9 @@
 # Avoid multiple provider errors
 Group:  Development/Languages/Other
 Requires:   libLLVM%{_sonum}
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm-clang
+%endif
 
 %description -n libLTO%{_sonum}
 This package contains the link-time optimizer for LLVM.
@@ -309,6 +324,9 @@
 Summary:C++ standard library implementation
 Group:  Development/Libraries/C and C++
 Requires:   libc++abi%{_socxx} = %{version}
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm-clang
+%endif
 
 %description -n libc++%{_socxx}
 This package contains libc++, a new implementation of the C++
@@ -322,6 +340,9 @@
 Requires:   libc++abi-devel = %{version}
 Conflicts:  libc++.so
 Provides:   libc++.so
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm-clang
+%endif
 
 %description -n libc++-devel
 This package contains libc++, a new implementation of the C++
@@ -330,6 +351,9 @@
 %package -n libc++abi%{_socxx}
 Summary:C++ standard library ABI
 Group:  Development/Libraries/C and C++
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm-clang
+%endif
 
 %description -n libc++abi%{_socxx}
 This package contains the ABI for libc++, a new implementation
@@ -342,6 +366,9 @@
 Requires:   libc++-devel
 Conflicts:  libc++abi.so
 Provides:   libc++abi.so
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  llvm-clang
+%endif
 
 %description -n libc++abi-devel
 This package contains the ABI for libc++, a new implementation
@@ -378,6 +405,9 @@
 BuildArch:  noarch
 Provides:   %{python3_sitearch}/clang/
 Conflicts:  %{python3_sitearch}/clang/
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  python-clang
+%endif
 
 %description -n python3-clang
 This package contains the Python bindings to clang (C language)
@@ -421,6 +451,9 @@
 Requires:   liblldb%{_sonum} = %{version}
 Requires:   python3
 Requires:   python3-six
+%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
+Conflicts:  lldb
+%endif
 ExclusiveArch:  x86_64
 Requires(post): update-alternatives
 Requires(postun): update-alternatives




commit llvm4 for openSUSE:Factory

2018-03-18 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-03-18 21:44:33

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Sun Mar 18 21:44:33 2018 rev:15 rq:586679 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2018-01-31 
19:54:36.433900203 +0100
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-03-18 
21:44:34.450298339 +0100
@@ -1,0 +2,29 @@
+Wed Mar 14 08:11:14 UTC 2018 - m...@suse.com
+
+- Remove liblldb4 and lldb4-devel from baselibs.conf. They are only
+  build for x86_64, so no point having them in baselibs.conf.
+
+---
+Tue Mar 13 13:55:20 UTC 2018 - m...@suse.com
+
+- libcxx.glibc2.27.diff
+  * Fix build with glibc >= 2.27. Various locales in glibc 2.27
+started using narrow non-break space for thousand separators.
+libc++ tests must be adapted. 
+
+---
+Wed Feb  7 14:21:48 UTC 2018 - m...@suse.com
+
+- Use %optflags, except for FORTIFY_SOURCE which is not compatible
+  with compiler-rt.
+- Exclude static libraries differently.
+  * Drop llvm-split-static-library-exports-into-their-own-export-file.diff
+  * Drop clang-split-static-library-exports-into-their-own-export-file.diff
+  * Update llvm-do-not-install-static-libraries.patch to not use
+EXCLUDE_FROM_ALL which is not available in cmake 3.5.
+- This fixes build on SLE12.
+- Do not force gcc6 on OpenSUSE - fixes build.
+- Reduce the amount of concurent link jobs by increasing their
+  memory requirement - to reduce stalls in OBS.
+
+---

Old:

  clang-split-static-library-exports-into-their-own-export-file.diff
  llvm-split-static-library-exports-into-their-own-export-file.diff

New:

  libcxx.glibc2.27.diff



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.jzr2Vy/_old  2018-03-18 21:44:37.878174849 +0100
+++ /var/tmp/diff_new_pack.jzr2Vy/_new  2018-03-18 21:44:37.894174273 +0100
@@ -81,8 +81,6 @@
 Patch10:libsanitizer.patch
 Patch11:clang-ignore-stack-clash-protector.patch
 Patch12:llvm-add_a_LLVM_USE_LINKER.patch
-Patch13:
llvm-split-static-library-exports-into-their-own-export-file.diff
-Patch14:
clang-split-static-library-exports-into-their-own-export-file.diff
 # PATCH-FIX-OPENSUSE lldb-cmake.patch -- Let us set LLDB_REVISION and fix 
ncurses include path.
 Patch15: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.
@@ -96,6 +94,7 @@
 Patch23:llvm-lit-Re-apply-Fix-some-convoluted-logic-around-Unicod.patch
 Patch24:libcxx-fix-python3-syntax-error.patch
 Patch25:n_clang_allow_BUILD_SHARED_LIBRARY.patch
+Patch26:libcxx.glibc2.27.diff
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -116,7 +115,7 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # llvm does not work on ppc or s390
 ExcludeArch:ppc s390
-%if 0%{?sle_version} && 0%{?sle_version} <= 13
+%if 0%{?sle_version} && 0%{?sle_version} <= 13 && !0%{?is_opensuse}
 BuildRequires:  gcc6
 BuildRequires:  gcc6-c++
 %else
@@ -490,7 +489,6 @@
 %patch10
 %patch11 -p1
 %patch12 -p1
-%patch13 -p0
 %patch18 -p1
 %patch19 -p1
 %patch22 -p1
@@ -498,13 +496,16 @@
 %patch25 -p1
 
 pushd cfe-%{version}.src
-%patch14 -p1
 %patch20 -p1
 %patch21 -p1
 popd
 
 pushd libcxx-%{version}.src
 %patch24 -p1
+
+%if 0%{?suse_version} > 1500
+%patch26 -p2
+%endif
 popd
 
 %if %{with lldb}
@@ -557,9 +558,14 @@
 sed -i s,LLVM_REVISION,\"%{_revsn}\",g tools/clang/lib/Basic/Version.cpp
 
 %build
-# Disable c/xx/flags as the clang fails to build with hardening right now
-#flags="%%{optflags} -fno-strict-aliasing"
-flags="-fno-strict-aliasing"
+
+# Remove the -D_FORTIFY_SOURCE=2 from optflags because llvm does not build
+# correctly with hardening. The problem is in sanitizers from compiler-rt.
+flags="%{optflags}"
+flags=${flags//-D_FORTIFY_SOURCE=?/-D_FORTIFY_SOURCE=0}
+
+flags+=" -fno-strict-aliasing"
+
 %ifarch armv6hl
 flags+=" -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
 %endif
@@ -589,15 +595,21 @@
 cat /proc/meminfo
 echo "System limits:"
 ulimit -a
+max_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
 if test -n "$max_link_jobs" -a "$max_link_jobs" -gt 1 ; then
-mem_per_process=200
-max_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
-max_jobs="$(($max_mem / $mem_per_process))"
+

commit llvm4 for openSUSE:Factory

2018-01-31 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-01-31 19:54:31

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Wed Jan 31 19:54:31 2018 rev:14 rq:571409 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2018-01-25 
12:40:03.676006217 +0100
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-01-31 
19:54:36.433900203 +0100
@@ -1,0 +2,20 @@
+Wed Jan 31 08:48:48 UTC 2018 - m...@suse.com
+
+- Cleanup %ifarch conditions, remove targets unintentionally added
+  to s390/s390x. (bnc#1078436)
+
+---
+Tue Jan 30 09:24:22 UTC 2018 - m...@suse.com
+
+- Limit the amount of parallel link jobs, but no longer limit
+  compile jobs. This should prevent running out of memory during
+  linking while not longer slowing down compilation.
+- Remove build dependency on procps
+
+---
+Mon Jan 29 12:17:55 UTC 2018 - m...@suse.com
+
+- Reduce disk size requirement to 30GB in _constraints. We no
+  longer need that much since we stopped building static libraries.
+
+---



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.XFMWRh/_old  2018-01-31 19:54:38.633797894 +0100
+++ /var/tmp/diff_new_pack.XFMWRh/_new  2018-01-31 19:54:38.641797523 +0100
@@ -106,7 +106,6 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  ninja
 BuildRequires:  pkgconfig
-BuildRequires:  procps
 BuildRequires:  python3
 BuildRequires:  pkgconfig(libedit)
 BuildRequires:  pkgconfig(zlib)
@@ -567,32 +566,35 @@
 %ifarch armv7hl
 flags+=" -mfloat-abi=hard -march=armv7-a -mtune=cortex-a15 -mfpu=vfpv3-d16"
 %endif
-%ifarch %{ix86} x86_64
+
+# By default build everything
 TARGETS_TO_BUILD="all"
-%else
 %ifarch s390 s390x
 # No graphics cards on System z
 TARGETS_TO_BUILD="host;BPF"
 %endif
 %ifarch %arm
+# TODO: Document why those.
 TARGETS_TO_BUILD="host;ARM;AMDGPU;BPF;NVPTX"
-%else
-TARGETS_TO_BUILD="host;AMDGPU;BPF;NVPTX"
 %endif
+%ifarch ppc64 ppc64le
+# TODO: Document why those.
+TARGETS_TO_BUILD="host;AMDGPU;BPF;NVPTX"
 %endif
 
 # do not eat all memory
-ninjaproc="%{?jobs:%{jobs}}"
+max_link_jobs="%{?jobs:%{jobs}}"
+max_compile_jobs="%{?jobs:%{jobs}}"
 echo "Available memory:"
-free
+cat /proc/meminfo
 echo "System limits:"
 ulimit -a
-if test -n "$ninjaproc" -a "$ninjaproc" -gt 1 ; then
-mem_per_process=2000
-max_mem=`LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p"`
+if test -n "$max_link_jobs" -a "$max_link_jobs" -gt 1 ; then
+mem_per_process=200
+max_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
 max_jobs="$(($max_mem / $mem_per_process))"
-test "$ninjaproc" -gt "$max_jobs" && ninjaproc="$max_jobs" && echo 
"Warning: Reducing number of jobs to $max_jobs because of memory limits"
-test "$ninjaproc" -le 0 && ninjaproc=1 && echo "Warning: Do not use the 
parallel build at all becuse of memory limits"
+test "$max_link_jobs" -gt "$max_jobs" && max_link_jobs="$max_jobs" && echo 
"Warning: Reducing number of link jobs to $max_jobs because of memory limits"
+test "$max_link_jobs" -le 0 && max_link_jobs=1 && echo "Warning: Not 
linking in parallel at all becuse of memory limits"
 fi
 
 %if 0%{?sle_version} && 0%{?sle_version} <= 13
@@ -610,6 +612,8 @@
 -DLLVM_LINK_LLVM_DYLIB:BOOL=OFF \
 -DCMAKE_C_FLAGS="$flags" \
 -DCMAKE_CXX_FLAGS="$flags" \
+-DLLVM_PARALLEL_COMPILE_JOBS="$max_compile_jobs" \
+-DLLVM_PARALLEL_LINK_JOBS="$max_link_jobs" \
 -DENABLE_LINKER_BUILD_ID=ON \
 -DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON \
 -DLLVM_BUILD_TOOLS:BOOL=OFF \
@@ -631,7 +635,7 @@
 -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-keep-memory" \
 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-keep-memory" \
 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3
-ninja -v -j $ninjaproc clang
+ninja -v %{?_smp_mflags} clang
 cd ..
 
 %define __builddir build
@@ -648,6 +652,8 @@
 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
 -DCMAKE_C_FLAGS="$flags" \
 -DCMAKE_CXX_FLAGS="$flags" \
+-DLLVM_PARALLEL_COMPILE_JOBS="$max_compile_jobs" \
+-DLLVM_PARALLEL_LINK_JOBS="$max_link_jobs" \
 %ifarch %{arm} s390 %{ix86}
 -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -g1 -DNDEBUG" \
 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g1 -DNDEBUG" \
@@ -676,7 +682,7 @@
 -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,--build-id=sha1" \
 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--build-id=sha1" \
 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3
-ninja -v -j $ninjaproc

commit llvm4 for openSUSE:Factory

2018-01-25 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-01-25 12:39:59

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Thu Jan 25 12:39:59 2018 rev:13 rq:569072 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2018-01-16 
09:33:35.734330073 +0100
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-01-25 
12:40:03.676006217 +0100
@@ -1,0 +2,8 @@
+Thu Jan 18 15:23:59 UTC 2018 - m...@suse.com
+
+- n_clang_allow_BUILD_SHARED_LIBRARY.patch
+  * Allow buildling clang with BUILD_SHARED_LIBRARY while the rest
+is built with LLVM_LINK_LLVM_DYLIB. (bnc#1065464)
+- Remove clang-devel-static.
+
+---

New:

  n_clang_allow_BUILD_SHARED_LIBRARY.patch



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.qRLtCn/_old  2018-01-25 12:40:06.779861311 +0100
+++ /var/tmp/diff_new_pack.qRLtCn/_new  2018-01-25 12:40:06.779861311 +0100
@@ -95,6 +95,7 @@
 Patch22:llvm-lit-Make-util.executeCommand-python3-friendly.patch
 Patch23:llvm-lit-Re-apply-Fix-some-convoluted-logic-around-Unicod.patch
 Patch24:libcxx-fix-python3-syntax-error.patch
+Patch25:n_clang_allow_BUILD_SHARED_LIBRARY.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -260,17 +261,6 @@
 This package contains the clang (C language) frontend for LLVM.
 (development files)
 
-%package -n clang%{_sonum}-devel-static
-Summary:Static libraries for CLANG
-Group:  Development/Languages/Other
-Requires:   clang%{_sonum}-devel = %{version}
-Provides:   clang-devel-static-provider
-Conflicts:  clang-devel-static-provider
-
-%description -n clang%{_sonum}-devel-static
-This package contains static libraries for clang  (C language)
-frontend for LLVM.
-
 %package -n libLTO%{_sonum}
 Summary:Link-time optimizer for LLVM
 # Avoid multiple provider errors
@@ -506,6 +496,7 @@
 %patch19 -p1
 %patch22 -p1
 %patch23 -p1
+%patch25 -p1
 
 pushd cfe-%{version}.src
 %patch14 -p1
@@ -652,6 +643,7 @@
 # -z,now is breaking now, it needs to be fixed
 %cmake \
 -DBUILD_SHARED_LIBS:BOOL=OFF \
+-DCLANG_BUILD_SHARED_LIBS:BOOL=ON \
 -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
 -DCMAKE_C_FLAGS="$flags" \
@@ -1372,6 +1364,7 @@
 %files -n libclang%{_sonum}
 %defattr(-,root,root,-)
 %{_libdir}/libclang*.so.*
+%{_libdir}/libfindAllSymbols.so.*
 
 %files -n libLTO%{_sonum}
 %defattr(-,root,root)
@@ -1421,7 +1414,6 @@
 %{_includedir}/llvm/
 %{_includedir}/llvm-c/
 %{_libdir}/cmake/llvm
-%exclude %{_libdir}/cmake/llvm/LLVMStaticExports*.cmake
 %{_docdir}/llvm/
 %{_mandir}/man1/llvm-config.1%{ext_man}
 %config(noreplace) %{_sysconfdir}/rpm/macros.llvm
@@ -1429,18 +1421,13 @@
 %files -n clang%{_sonum}-devel
 %defattr(-,root,root)
 %{_libdir}/libclang*.so
+%{_libdir}/libfindAllSymbols.so
 %{_includedir}/clang/
 %{_includedir}/clang-c/
 %{_libdir}/cmake/clang
 %exclude %{_libdir}/cmake/clang/ClangStaticTargets*.cmake
 %{_docdir}/llvm-clang/
 
-%files -n clang%{_sonum}-devel-static
-%defattr(-,root,root,-)
-%{_libdir}/libclang*.a
-%{_libdir}/libfindAllSymbols.a
-%{_libdir}/cmake/clang/ClangStaticTargets*.cmake
-
 %files LTO-devel
 %defattr(-,root,root)
 %{_libdir}/libLTO.so

++ n_clang_allow_BUILD_SHARED_LIBRARY.patch ++
We use LLVM_BUILD_LLVM_DYLIB to build the llvm libraries as shared, but that
does not work for clang. We can use BUILD_SHARED_LIBS on clang, but since we
build them all together, we need to smuggle it in using this patch.

Index: llvm-4.0.1.src/cfe-4.0.1.src/CMakeLists.txt
===
--- llvm-4.0.1.src.orig/cfe-4.0.1.src/CMakeLists.txt
+++ llvm-4.0.1.src/cfe-4.0.1.src/CMakeLists.txt
@@ -1,5 +1,10 @@
 cmake_minimum_required(VERSION 3.4.3)
 
+if( CLANG_BUILD_SHARED_LIBS )
+  set(BUILD_SHARED_LIBS ON)
+  set(LLVM_BUILD_LLVM_DYLIB OFF)
+endif()
+
 # If we are not building as a part of LLVM, build Clang as an
 # standalone project, using LLVM as an external library:
 if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )



commit llvm4 for openSUSE:Factory

2018-01-16 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2018-01-16 09:33:34

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Tue Jan 16 09:33:34 2018 rev:12 rq:563863 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-12-16 
20:53:31.645094676 +0100
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2018-01-16 
09:33:35.734330073 +0100
@@ -1,0 +2,16 @@
+Wed Jan 10 14:56:18 UTC 2018 - m...@suse.com
+
+- Place gold plugin to the right directory. (bnc#1073210)
+  * It must be in /usr/lib/bfd-plugins on all architectures.
+  * Remove llvm5-gold from baselibs.conf - nothing needs a 32bit
+version of it and it would now conflict with the 64bit one.
+- Reduce _constraints requirements on 32bit architectures.
+  * Since we had to disable debuginfo on them, they require much
+less.
+
+---
+Tue Jan  9 06:29:32 UTC 2018 - dmuel...@suse.com
+
+- disable debuginfo for arm as well
+
+---



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.tPhZT7/_old  2018-01-16 09:33:38.370206746 +0100
+++ /var/tmp/diff_new_pack.tPhZT7/_new  2018-01-16 09:33:38.374206559 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package llvm4
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -299,8 +299,8 @@
 Group:  Development/Languages/Other
 Requires:   %{name}-devel = %{version}
 Requires:   libLLVM%{_sonum}
-Conflicts:  LLVMgold.so()(64bit)
-Provides:   LLVMgold.so()(64bit)
+Conflicts:  llvm-gold-provider
+Provides:   llvm-gold-provider
 
 %description gold
 This package contains the Gold linker plugin for LLVM.
@@ -656,7 +656,7 @@
 -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
 -DCMAKE_C_FLAGS="$flags" \
 -DCMAKE_CXX_FLAGS="$flags" \
-%ifarch s390 %{ix86}
+%ifarch %{arm} s390 %{ix86}
 -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -g1 -DNDEBUG" \
 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g1 -DNDEBUG" \
 %endif
@@ -737,8 +737,9 @@
 popd
 %endif
 
-mkdir -p %{buildroot}%{_libdir}/bfd-plugins
-ln -s %{_libdir}/LLVMgold.so %{buildroot}%{_libdir}/bfd-plugins/
+# Note that bfd-plugins is always in /usr/lib/bfd-plugins, no matter what 
_libdir is.
+mkdir -p %{buildroot}/usr/lib/bfd-plugins
+ln -s %{_libdir}/LLVMgold.so %{buildroot}/usr/lib/bfd-plugins/
 
 install -m 755 -d %{buildroot}%{_datadir}/vim/site/
 for i in ftdetect ftplugin indent syntax; do
@@ -1379,8 +1380,9 @@
 %files gold
 %defattr(-,root,root)
 %{_libdir}/LLVMgold.so
-%dir %{_libdir}/bfd-plugins/
-%{_libdir}/bfd-plugins/LLVMgold.so
+# Note that bfd-plugins is always in /usr/lib/bfd-plugins, no matter what 
_libdir is.
+%dir /usr/lib/bfd-plugins/
+/usr/lib/bfd-plugins/LLVMgold.so
 
 %if %{with openmp}
 %files -n libomp%{_sonum}-devel

++ _constraints ++
--- /var/tmp/diff_new_pack.tPhZT7/_old  2018-01-16 09:33:38.410204875 +0100
+++ /var/tmp/diff_new_pack.tPhZT7/_new  2018-01-16 09:33:38.410204875 +0100
@@ -2,18 +2,39 @@
 
   
 
-45
+  45
 
 
   6500
 
   
   
+
+
+  i586
+  s390
+
+
+  
+10
+  
+  
+4096
+  
+
+  
+  
 
   armv6l
   armv7l
 
 
+  
+10
+  
   
 768
   

++ baselibs.conf ++
--- /var/tmp/diff_new_pack.tPhZT7/_old  2018-01-16 09:33:38.438203565 +0100
+++ /var/tmp/diff_new_pack.tPhZT7/_new  2018-01-16 09:33:38.438203565 +0100
@@ -12,6 +12,3 @@
 llvm4-LTO-devel
   provides "llvm-LTO-devel- = "
   conflicts "otherproviders(llvm-LTO-devel-)"
-llvm4-gold
-  provides "llvm-gold-devel- = "
-  conflicts "otherproviders(llvm-gold-devel-)"




commit llvm4 for openSUSE:Factory

2017-12-16 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-12-16 20:52:46

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Sat Dec 16 20:52:46 2017 rev:11 rq:556747 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-12-10 
18:13:09.987422038 +0100
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-12-16 
20:53:31.645094676 +0100
@@ -1,0 +2,12 @@
+Wed Dec 13 16:29:27 UTC 2017 - m...@suse.com
+
+- Rename python3-lldb to python3-lldb4 so it can work with llvm
+  meta package.
+
+---
+Mon Dec 11 10:33:00 UTC 2017 - m...@suse.com
+
+- Rename python packages to follow naming conventions.
+- Remove unnecessary dependencies on python3.
+
+---



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.TtPrJE/_old  2017-12-16 20:53:34.180972258 +0100
+++ /var/tmp/diff_new_pack.TtPrJE/_new  2017-12-16 20:53:34.188971873 +0100
@@ -383,14 +383,15 @@
 %descriptionemacs-plugins
 This package contains Emacs plugins for LLVM like syntax highlighting.
 
-%package -n python-clang
+%package -n python3-clang
 Summary:Python bindings for libclang
 Group:  Development/Languages/Python
 Requires:   clang%{_sonum}-devel = %{version}
-Requires:   python3
 BuildArch:  noarch
+Provides:   %{python3_sitearch}/clang/
+Conflicts:  %{python3_sitearch}/clang/
 
-%description -n python-clang
+%description -n python3-clang
 This package contains the Python bindings to clang (C language)
 frontend for LLVM.
 
@@ -472,16 +473,15 @@
 %description -n lldb%{_sonum}-devel
 This package contains the development files for LLDB.
 
-%package -n python%{_sonum}-lldb
+%package -n python3-lldb%{_sonum}
 Summary:Python bindings for liblldb
 # Avoid multiple provider errors
 Group:  Development/Languages/Python
 Requires:   liblldb%{_sonum} = %{version}
-Requires:   python3
 Provides:   %{python3_sitearch}/lldb/
 Conflicts:  %{python3_sitearch}/lldb/
 
-%description -n python%{_sonum}-lldb
+%description -n python3-lldb%{_sonum}
 This package contains the Python bindings to clang (C language) frontend for 
LLVM.
 %endif
 
@@ -1460,7 +1460,7 @@
 %{_datadir}/clang/clang-include-fixer.py
 
 %if %{with pyclang}
-%files -n python-clang
+%files -n python3-clang
 %defattr(-,root,root)
 %{python3_sitelib}/clang/
 %{_docdir}/python-clang/
@@ -1501,7 +1501,7 @@
 %ghost %{_sysconfdir}/alternatives/lldb-mi
 %ghost %{_sysconfdir}/alternatives/lldb-server
 
-%files -n python%{_sonum}-lldb
+%files -n python3-lldb%{_sonum}
 %defattr(-,root,root)
 %{python3_sitearch}/_lldb.so
 %{python3_sitearch}/lldb/




commit llvm4 for openSUSE:Factory

2017-12-10 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-12-10 18:12:58

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Sun Dec 10 18:12:58 2017 rev:10 rq:554941 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-10-19 
19:31:32.154563247 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-12-10 
18:13:09.987422038 +0100
@@ -1,0 +2,38 @@
+Mon Dec  4 15:39:30 UTC 2017 - m...@suse.com
+
+- Fix %check tests when used with python3.
+  * llvm-lit-Make-util.executeCommand-python3-friendly.patch
+  * llvm-lit-Re-apply-Fix-some-convoluted-logic-around-Unicod.patch
+  * libcxx-fix-python3-syntax-error.patch
+  * Define LANG=C.UTF-8 when running the tests.
+- Add explicit Provides/Conflicts to llvm4-devel,
+  clang4-devel-static and lldb4-devel.
+  * These are required to be validated by obs repo-checker.
+
+---
+Fri Dec  1 12:37:33 UTC 2017 - m...@suse.com
+
+- Switch to python3.
+  * clang-add-python-3-support-to-clang-cindex.patch
+  * clang-bindings-allow-null-strings-in-python-3.patch
+
+---
+Tue Nov 21 14:50:26 UTC 2017 - m...@suse.com
+
+- Use LLVM_OPTIMIZED_TABLEGEN to speed up build. (bnc#1064786)
+- Fix files of lldb4 to work correctly with update-alternatives.
+- Remove Conflicts clang(LLDB) from lldb4-devel - it does not
+  exist. It would be provided automatically, but no such cmake file
+  is installed.
+
+---
+Fri Oct 27 07:09:07 UTC 2017 - m...@suse.com
+
+- llvm-do-not-install-static-libraries.patch
+  * Do not install static libraries instead of installing them and
+deleting after.
+  * Reduces disk usage during build. (bnc#1064786)
+- Do not build unnecessary parts during stage1.
+  * Speeds up build a bit. (bnc#1064786)
+
+---

New:

  clang-add-python-3-support-to-clang-cindex.patch
  clang-bindings-allow-null-strings-in-python-3.patch
  libcxx-fix-python3-syntax-error.patch
  llvm-do-not-install-static-libraries.patch
  llvm-lit-Make-util.executeCommand-python3-friendly.patch
  llvm-lit-Re-apply-Fix-some-convoluted-logic-around-Unicod.patch



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.6iQ3gi/_old  2017-12-10 18:13:12.451304682 +0100
+++ /var/tmp/diff_new_pack.6iQ3gi/_new  2017-12-10 18:13:12.455304491 +0100
@@ -42,6 +42,7 @@
 %bcond_with oprofile
 %bcond_with valgrind
 %bcond_without pyclang
+
 Name:   llvm4
 Version:4.0.1
 Release:0
@@ -88,6 +89,12 @@
 Patch16:lldb-add-pthread-dl-libs.patch
 Patch17:lldb-gcc7.patch
 Patch18:llvm-normally-versioned-libllvm.patch
+Patch19:llvm-do-not-install-static-libraries.patch
+Patch20:clang-add-python-3-support-to-clang-cindex.patch
+Patch21:clang-bindings-allow-null-strings-in-python-3.patch
+Patch22:llvm-lit-Make-util.executeCommand-python3-friendly.patch
+Patch23:llvm-lit-Re-apply-Fix-some-convoluted-logic-around-Unicod.patch
+Patch24:libcxx-fix-python3-syntax-error.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -99,8 +106,7 @@
 BuildRequires:  ninja
 BuildRequires:  pkgconfig
 BuildRequires:  procps
-BuildRequires:  python-base
-BuildRequires:  python-xml
+BuildRequires:  python3
 BuildRequires:  pkgconfig(libedit)
 BuildRequires:  pkgconfig(zlib)
 # Avoid multiple provider errors
@@ -157,6 +163,8 @@
 Requires:   ncurses-devel
 Requires:   pkgconfig
 Requires:   pkgconfig(libedit)
+Provides:   llvm-devel-provider
+Conflicts:  llvm-devel-provider
 Conflicts:  cmake(LLVM)
 %if %{with ffi}
 Requires:   pkgconfig(libffi)
@@ -256,6 +264,8 @@
 Summary:Static libraries for CLANG
 Group:  Development/Languages/Other
 Requires:   clang%{_sonum}-devel = %{version}
+Provides:   clang-devel-static-provider
+Conflicts:  clang-devel-static-provider
 
 %description -n clang%{_sonum}-devel-static
 This package contains static libraries for clang  (C language)
@@ -374,14 +384,14 @@
 This package contains Emacs plugins for LLVM like syntax highlighting.
 
 %package -n python-clang
-Summary:Python 2 bindings for libclang
+Summary:Python bindings for libclang
 Group:  Development/Languages/Python
 Requires:   clang%{_sonum}-devel = %{version}
-Requires:   python
+Requires:   python3
 BuildArch:  noarch
 
 %description -n 

commit llvm4 for openSUSE:Factory

2017-10-19 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-10-19 19:31:30

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Thu Oct 19 19:31:30 2017 rev:9 rq:534875 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-09-11 
16:17:10.368042154 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-10-19 
19:31:32.154563247 +0200
@@ -1,0 +2,51 @@
+Tue Oct 17 07:31:06 UTC 2017 - m...@suse.com
+
+- llvm-normally-versioned-libllvm.patch
+  * Change libLLVM naming scheme to match our naming guidelines.
+  * The reasons for the original naming scheme are no longer valid,
+more details in the patch.
+
+---
+Fri Oct 13 08:19:24 UTC 2017 - m...@suse.com
+
+- Disable all thread related tests in libcxx. Many of them use
+  timeouts to detect failure. They can fail randomly if the machine
+  is under heavy load (happens often in OBS).
+
+---
+Tue Oct 10 12:14:31 UTC 2017 - m...@suse.com
+
+- Drop llvm4-devel-static. llvm4-devel contains shared library with
+  the same content.
+
+---
+Wed Aug 30 12:08:17 UTC 2017 - m...@suse.com
+
+- Use LLVM_BUILD_LLVM_DYLIB instead of BUILD_SHARED_LIBS to build
+  single libLLVM library. This is the recommended way. The old way
+  was causing various issues.
+  * llvm-split-static-library-exports-into-their-own-export-file.diff
+  * clang-split-static-library-exports-into-their-own-export-file.diff
+  (bnc#1049703)
+
+- Add lld, linker for Clang/LLVM
+  (sr#517692)
+
+- Include clang++-MAJOR.MINOR symbolic link
+  (bnc#1012260)
+
+- Remove unnecessary dependency on flex and bison.
+
+- Make sure all binaries are managed by update-alternatives
+
+- Add llvm-add_a_LLVM_USE_LINKER.patch and link using gold to
+  prevent memory exhaustion on some build machines.
+
+- Reduce debuginfo on x86 architecture. LLVM libraries are so big that they
+  exhaust all memory on 32 bit machine if linked with full debuginfo.
+
+- Speed up build by skipping parts that are not required in stage1.
+
+- Build lldb in-tree as one of the llvm tools.
+
+---

Old:

  lldb4.changes
  lldb4.spec

New:

  clang-split-static-library-exports-into-their-own-export-file.diff
  lld-4.0.1.src.tar.xz
  llvm-add_a_LLVM_USE_LINKER.patch
  llvm-normally-versioned-libllvm.patch
  llvm-split-static-library-exports-into-their-own-export-file.diff



Other differences:
--
++ llvm4.spec ++
 811 lines (skipped)
 between /work/SRC/openSUSE:Factory/llvm4/llvm4.spec
 and /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.spec

++ _constraints ++
--- /var/tmp/diff_new_pack.uaao2c/_old  2017-10-19 19:31:34.422457134 +0200
+++ /var/tmp/diff_new_pack.uaao2c/_new  2017-10-19 19:31:34.422457134 +0200
@@ -2,10 +2,10 @@
 
   
 
-30
+45
 
 
-  4000
+  6500
 
   
   

++ clang-split-static-library-exports-into-their-own-export-file.diff ++
Index: cfe-4.0.1.src/cmake/modules/AddClang.cmake
===
--- cfe-4.0.1.src.orig/cmake/modules/AddClang.cmake
+++ cfe-4.0.1.src/cmake/modules/AddClang.cmake
@@ -92,7 +92,11 @@ macro(add_clang_library name)
 
   if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
   NOT LLVM_DISTRIBUTION_COMPONENTS)
-set(export_to_clangtargets EXPORT ClangTargets)
+if(ARG_SHARED)
+  set(export_to_clangtargets EXPORT ClangTargets)
+else()
+  set(export_to_clangtargets EXPORT ClangStaticTargets)
+endif()
 set_property(GLOBAL PROPERTY CLANG_HAS_EXPORTS True)
   endif()
 
Index: cfe-4.0.1.src/cmake/modules/CMakeLists.txt
===
--- cfe-4.0.1.src.orig/cmake/modules/CMakeLists.txt
+++ cfe-4.0.1.src/cmake/modules/CMakeLists.txt
@@ -10,12 +10,14 @@ export(TARGETS ${CLANG_EXPORTS} FILE ${c
 # Generate ClangConfig.cmake for the build tree.
 set(CLANG_CONFIG_CMAKE_DIR "${clang_cmake_builddir}")
 set(CLANG_CONFIG_EXPORTS_FILE "${clang_cmake_builddir}/ClangTargets.cmake")
+set(CLANG_CONFIG_STATIC_EXPORTS_FILE 
"${clang_cmake_builddir}/ClangStaticTargets.cmake")
 configure_file(
   ${CMAKE_CURRENT_SOURCE_DIR}/ClangConfig.cmake.in
   ${clang_cmake_builddir}/ClangConfig.cmake
   @ONLY)
 set(CLANG_CONFIG_CMAKE_DIR)
 set(CLANG_CONFIG_EXPORTS_FILE)
+set(CLANG_CONFIG_STATIC_EXPORTS_FILE)
 
 # Generate ClangConfig.cmake 

commit llvm4 for openSUSE:Factory

2017-09-11 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-09-11 16:17:09

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Mon Sep 11 16:17:09 2017 rev:8 rq:522234 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-08-24 
17:39:46.935031653 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-09-11 
16:17:10.368042154 +0200
@@ -1,0 +2,6 @@
+Tue Aug 29 11:32:24 UTC 2017 - meiss...@suse.com
+
+- clang-ignore-stack-clash-protector.patch: ignore -fstack-clash-protection
+  for now.
+
+---

New:

  clang-ignore-stack-clash-protector.patch



Other differences:
--
++ lldb4.spec ++
--- /var/tmp/diff_new_pack.k5NH25/_old  2017-09-11 16:17:13.299630461 +0200
+++ /var/tmp/diff_new_pack.k5NH25/_new  2017-09-11 16:17:13.299630461 +0200
@@ -64,8 +64,8 @@
 
 %package -n liblldb%{_sonum}
 Summary:LLDB software debugger runtime library
-Group:  System/Libraries
 # Avoid multiple provider errors
+Group:  System/Libraries
 Requires:   libLLVM%{_sonum} = %{version}
 Requires:   libclang%{_sonum} = %{version}
 
@@ -74,8 +74,8 @@
 
 %package devel
 Summary:Development files for LLDB
-Group:  Development/Languages/Other
 # Avoid multiple provider errors
+Group:  Development/Languages/Other
 Requires:   clang%{_sonum}-devel = %{version}
 Requires:   cmake
 Requires:   liblldb%{_sonum} = %{version}
@@ -93,8 +93,8 @@
 
 %package -n python%{_sonum}-lldb
 Summary:Python bindings for liblldb
-Group:  Development/Languages/Python
 # Avoid multiple provider errors
+Group:  Development/Languages/Python
 Requires:   liblldb%{_sonum} = %{version}
 Requires:   python
 Provides:   %{python_sitearch}/lldb/

++ llvm4.spec ++
--- /var/tmp/diff_new_pack.k5NH25/_old  2017-09-11 16:17:13.335625406 +0200
+++ /var/tmp/diff_new_pack.k5NH25/_new  2017-09-11 16:17:13.339624845 +0200
@@ -71,6 +71,7 @@
 Patch8: arm_suse_support.diff
 Patch9: xlocale.patch
 Patch10:libsanitizer.patch
+Patch11:clang-ignore-stack-clash-protector.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  bison
 BuildRequires:  cmake
@@ -157,8 +158,8 @@
 
 %package -n clang%{_sonum}
 Summary:CLANG frontend for LLVM
-Group:  Development/Languages/Other
 # Avoid multiple provider errors
+Group:  Development/Languages/Other
 Requires:   libLTO%{_sonum}
 Requires:   libclang%{_sonum}
 Recommends: clang-checker
@@ -176,8 +177,8 @@
 
 %package -n clang%{_sonum}-checker
 Summary:Static code analyzer for CLANG
-Group:  Development/Languages/Other
 # Avoid multiple provider errors
+Group:  Development/Languages/Other
 Requires:   libclang%{_sonum}
 # Due to a packaging error in clang3_8 we have to conflict.
 Conflicts:  clang3_8
@@ -192,8 +193,8 @@
 
 %package -n clang%{_sonum}-include-fixer
 Summary:Automatically add missing includes
-Group:  Development/Languages/Other
 # Avoid multiple provider errors
+Group:  Development/Languages/Other
 Requires:   libclang%{_sonum} = %{version}
 Conflicts:  clang-include-fixer
 Conflicts:  find-all-symbols
@@ -214,8 +215,8 @@
 
 %package -n libclang%{_sonum}
 Summary:Library files needed for clang
-Group:  Development/Libraries/C and C++
 # Avoid multiple provider errors
+Group:  Development/Libraries/C and C++
 Requires:   libLLVM%{_sonum}
 Requires:   libstdc++-devel
 
@@ -235,8 +236,8 @@
 
 %package -n libLTO%{_sonum}
 Summary:Link-time optimizer for LLVM
-Group:  Development/Languages/Other
 # Avoid multiple provider errors
+Group:  Development/Languages/Other
 Requires:   libLLVM%{_sonum}
 
 %description -n libLTO%{_sonum}
@@ -244,8 +245,8 @@
 
 %package LTO-devel
 Summary:Link-time optimizer for LLVM (devel package)
-Group:  Development/Languages/Other
 # Avoid multiple provider errors
+Group:  Development/Languages/Other
 Requires:   %{name}-devel = %{version}
 Requires:   libLTO%{_sonum}
 Conflicts:  libLTO.so
@@ -257,8 +258,8 @@
 
 %package gold
 Summary:Gold linker plugin for LLVM
-Group:  Development/Languages/Other
 # Avoid multiple provider errors
+Group:  Development/Languages/Other
 Requires:   %{name}-devel = %{version}
 Requires:   libLLVM%{_sonum}
 Conflicts:  LLVMgold.so()(64bit)
@@ -269,8 +270,8 @@
 
 %package -n libomp%{_sonum}-devel
 Summary:MPI plugin 

commit llvm4 for openSUSE:Factory

2017-08-24 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-08-24 17:39:43

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Thu Aug 24 17:39:43 2017 rev:7 rq:515148 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-07-21 
22:37:43.423547650 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-08-24 
17:39:46.935031653 +0200
@@ -1,0 +2,6 @@
+Tue Aug  8 08:02:38 UTC 2017 - sch...@suse.de
+
+- xlocale.patch: don't use obsolete 
+- libsanitizer.patch: fix use of undocumented types
+
+---

New:

  libsanitizer.patch
  xlocale.patch



Other differences:
--
++ lldb4.spec ++
--- /var/tmp/diff_new_pack.bLYji2/_old  2017-08-24 17:39:51.366407774 +0200
+++ /var/tmp/diff_new_pack.bLYji2/_new  2017-08-24 17:39:51.378406084 +0200
@@ -64,8 +64,8 @@
 
 %package -n liblldb%{_sonum}
 Summary:LLDB software debugger runtime library
-# Avoid multiple provider errors
 Group:  System/Libraries
+# Avoid multiple provider errors
 Requires:   libLLVM%{_sonum} = %{version}
 Requires:   libclang%{_sonum} = %{version}
 
@@ -74,8 +74,8 @@
 
 %package devel
 Summary:Development files for LLDB
-# Avoid multiple provider errors
 Group:  Development/Languages/Other
+# Avoid multiple provider errors
 Requires:   clang%{_sonum}-devel = %{version}
 Requires:   cmake
 Requires:   liblldb%{_sonum} = %{version}
@@ -93,8 +93,8 @@
 
 %package -n python%{_sonum}-lldb
 Summary:Python bindings for liblldb
-# Avoid multiple provider errors
 Group:  Development/Languages/Python
+# Avoid multiple provider errors
 Requires:   liblldb%{_sonum} = %{version}
 Requires:   python
 Provides:   %{python_sitearch}/lldb/

++ llvm4.spec ++
--- /var/tmp/diff_new_pack.bLYji2/_old  2017-08-24 17:39:51.442397075 +0200
+++ /var/tmp/diff_new_pack.bLYji2/_new  2017-08-24 17:39:51.454395386 +0200
@@ -69,6 +69,8 @@
 Patch7: aarch64-disable-memorytest.patch
 # PATCH-FIX-OPENSUSE arm_suse_support.diff -- Enable ARM suse toolchain support
 Patch8: arm_suse_support.diff
+Patch9: xlocale.patch
+Patch10:libsanitizer.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  bison
 BuildRequires:  cmake
@@ -155,8 +157,8 @@
 
 %package -n clang%{_sonum}
 Summary:CLANG frontend for LLVM
-# Avoid multiple provider errors
 Group:  Development/Languages/Other
+# Avoid multiple provider errors
 Requires:   libLTO%{_sonum}
 Requires:   libclang%{_sonum}
 Recommends: clang-checker
@@ -174,8 +176,8 @@
 
 %package -n clang%{_sonum}-checker
 Summary:Static code analyzer for CLANG
-# Avoid multiple provider errors
 Group:  Development/Languages/Other
+# Avoid multiple provider errors
 Requires:   libclang%{_sonum}
 # Due to a packaging error in clang3_8 we have to conflict.
 Conflicts:  clang3_8
@@ -190,8 +192,8 @@
 
 %package -n clang%{_sonum}-include-fixer
 Summary:Automatically add missing includes
-# Avoid multiple provider errors
 Group:  Development/Languages/Other
+# Avoid multiple provider errors
 Requires:   libclang%{_sonum} = %{version}
 Conflicts:  clang-include-fixer
 Conflicts:  find-all-symbols
@@ -212,8 +214,8 @@
 
 %package -n libclang%{_sonum}
 Summary:Library files needed for clang
-# Avoid multiple provider errors
 Group:  Development/Libraries/C and C++
+# Avoid multiple provider errors
 Requires:   libLLVM%{_sonum}
 Requires:   libstdc++-devel
 
@@ -233,8 +235,8 @@
 
 %package -n libLTO%{_sonum}
 Summary:Link-time optimizer for LLVM
-# Avoid multiple provider errors
 Group:  Development/Languages/Other
+# Avoid multiple provider errors
 Requires:   libLLVM%{_sonum}
 
 %description -n libLTO%{_sonum}
@@ -242,8 +244,8 @@
 
 %package LTO-devel
 Summary:Link-time optimizer for LLVM (devel package)
-# Avoid multiple provider errors
 Group:  Development/Languages/Other
+# Avoid multiple provider errors
 Requires:   %{name}-devel = %{version}
 Requires:   libLTO%{_sonum}
 Conflicts:  libLTO.so
@@ -255,8 +257,8 @@
 
 %package gold
 Summary:Gold linker plugin for LLVM
-# Avoid multiple provider errors
 Group:  Development/Languages/Other
+# Avoid multiple provider errors
 Requires:   %{name}-devel = %{version}
 Requires:   libLLVM%{_sonum}
 Conflicts:  LLVMgold.so()(64bit)
@@ -267,8 +269,8 @@
 
 %package -n libomp%{_sonum}-devel
 Summary:MPI plugin for LLVM
-# Avoid multiple provider 

commit llvm4 for openSUSE:Factory

2017-07-21 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-07-21 22:37:42

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Fri Jul 21 22:37:42 2017 rev:6 rq:510859 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-07-04 
13:32:32.901593632 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-07-21 
22:37:43.423547650 +0200
@@ -1,0 +2,12 @@
+Sun Jul 16 18:16:07 UTC 2017 - dmuel...@suse.com
+
+- build fixes for armv6 (skip testsuite as it requires 64bit,
+  set the list of targets to include ARM and remove triplet hack)
+
+---
+Sat Jul  1 01:52:09 UTC 2017 - ji...@boombatower.com
+
+- Include provides and conflics in baselibs.conf for llvm4-devel,
+  clang4-devel, llvm4-LTO-devel, and llvm4-gold.
+
+---



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.itWBEa/_old  2017-07-21 22:37:45.667231146 +0200
+++ /var/tmp/diff_new_pack.itWBEa/_new  2017-07-21 22:37:45.671230582 +0200
@@ -407,15 +407,6 @@
 sed -i s,SVN_REVISION,\"%{_revsn}\",g tools/clang/lib/Basic/Version.cpp
 sed -i s,LLVM_REVISION,\"%{_revsn}\",g tools/clang/lib/Basic/Version.cpp
 
-# ARMv6 needs this exact host triple
-%ifarch armv6hl
-mkdir -p autoconf
-cat > autoconf/config.guess << EOF
-#!/bin/sh
-echo armv6hl-suse-linux-gnueabi
-EOF
-%endif
-
 %build
 # Disable c/xx/flags as the clang fails to build with hardening right now
 #flags="%%{optflags} -fno-strict-aliasing"
@@ -432,6 +423,9 @@
 %ifarch s390 s390x
 # No graphics cards on System z
 TARGETS_TO_BUILD="host;BPF"
+%endif
+%ifarch %arm
+TARGETS_TO_BUILD="host;ARM;AMDGPU;BPF;NVPTX"
 %else
 TARGETS_TO_BUILD="host;AMDGPU;BPF;NVPTX"
 %endif
@@ -656,7 +650,7 @@
 
 %check
 cd build
-%ifnarch armv7hl armv7l
+%ifnarch armv6hl armv7hl armv7l
 %if !0%{?qemu_user_space_build:1}
 # we just do not have enough memory with qemu emulation
 

++ baselibs.conf ++
--- /var/tmp/diff_new_pack.itWBEa/_old  2017-07-21 22:37:45.719223811 +0200
+++ /var/tmp/diff_new_pack.itWBEa/_new  2017-07-21 22:37:45.719223811 +0200
@@ -3,7 +3,15 @@
 liblldb4
 libLTO4
 llvm4-devel
+  provides "llvm-devel- = "
+  conflicts "otherproviders(llvm-devel-)"
 clang4-devel
+  provides "clang-devel- = "
+  conflicts "otherproviders(clang-devel-)"
 lldb4-devel
 llvm4-LTO-devel
+  provides "llvm-LTO-devel- = "
+  conflicts "otherproviders(llvm-LTO-devel-)"
 llvm4-gold
+  provides "llvm-gold-devel- = "
+  conflicts "otherproviders(llvm-gold-devel-)"




commit llvm4 for openSUSE:Factory

2017-07-04 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-07-04 13:32:29

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Tue Jul  4 13:32:29 2017 rev:5 rq:506237 version:4.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/lldb4.changes  2017-05-27 
13:08:52.392022137 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/lldb4.changes 2017-07-04 
13:32:32.265683177 +0200
@@ -1,0 +2,6 @@
+Mon Jun 26 09:10:25 UTC 2017 - idon...@suse.com
+
+- Update to version 4.0.1
+  * No changelog upstream
+
+---
--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-06-05 
18:49:20.881625185 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-07-04 
13:32:32.901593632 +0200
@@ -1,0 +2,6 @@
+Mon Jun 26 09:10:01 UTC 2017 - idon...@suse.com
+
+- Update to version 4.0.1
+  * Minor bugfixes
+
+---

Old:

  cfe-4.0.0.src.tar.xz
  cfe-docs-4.0.0.src.tar.xz
  clang-tools-extra-4.0.0.src.tar.xz
  compiler-rt-4.0.0.src.tar.xz
  libcxx-4.0.0.src.tar.xz
  libcxxabi-4.0.0.src.tar.xz
  lldb-4.0.0.src.tar.xz
  llvm-4.0.0.src.tar.xz
  llvm-docs-4.0.0.src.tar.xz
  openmp-4.0.0.src.tar.xz

New:

  cfe-4.0.1.src.tar.xz
  cfe-docs-4.0.1.src.tar.xz
  clang-tools-extra-4.0.1.src.tar.xz
  compiler-rt-4.0.1.src.tar.xz
  libcxx-4.0.1.src.tar.xz
  libcxxabi-4.0.1.src.tar.xz
  lldb-4.0.1.src.tar.xz
  llvm-4.0.1.src.tar.xz
  llvm-docs-4.0.1.src.tar.xz
  openmp-4.0.1.src.tar.xz



Other differences:
--
++ lldb4.spec ++
--- /var/tmp/diff_new_pack.yp7RPg/_old  2017-07-04 13:32:36.105142523 +0200
+++ /var/tmp/diff_new_pack.yp7RPg/_new  2017-07-04 13:32:36.109141960 +0200
@@ -16,12 +16,12 @@
 #
 
 
-%define _llvm_revision 297347
+%define _llvm_revision 305264
 %define _sonum  4
 # Integer version used by update-alternatives
-%define _uaver  400
+%define _uaver  401
 Name:   lldb4
-Version:4.0.0
+Version:4.0.1
 Release:0
 Summary:Software debugger built using LLVM libraries
 License:NCSA

++ llvm4.spec ++
--- /var/tmp/diff_new_pack.yp7RPg/_old  2017-07-04 13:32:36.141137455 +0200
+++ /var/tmp/diff_new_pack.yp7RPg/_new  2017-07-04 13:32:36.141137455 +0200
@@ -16,13 +16,13 @@
 #
 
 
-%define _relver 4.0.0
+%define _relver 4.0.1
 %define _minor  4.0
 %define _sonum  4
 # Integer version used by update-alternatives
-%define _uaver  400
+%define _uaver  401
 %define _socxx  1
-%define _revsn  297347
+%define _revsn  305264
 %ifarch x86_64
 %bcond_without libcxx
 %else
@@ -38,7 +38,7 @@
 %bcond_with valgrind
 %bcond_without pyclang
 Name:   llvm4
-Version:4.0.0
+Version:4.0.1
 Release:0
 Summary:Low Level Virtual Machine
 License:NCSA
@@ -516,14 +516,14 @@
 
 # Docs are prebuilt due to sphinx dependency
 #
-# pushd llvm-4.0.0.src/docs
+# pushd llvm-4.0.1.src/docs
 # make -f Makefile.sphinx man html
 # popd
-# pushd cfe-4.0.0.src/docs
+# pushd cfe-4.0.1.src/docs
 # make -f Makefile.sphinx man html
 # popd
-# tar cvJf llvm-docs-4.0.0.src.tar.xz llvm-4.0.0.src/docs/_build/{man,html}
-# tar cvJf cfe-docs-4.0.0.src.tar.xz cfe-4.0.0.src/docs/_build/{man,html}
+# tar cvJf llvm-docs-4.0.1.src.tar.xz llvm-4.0.1.src/docs/_build/{man,html}
+# tar cvJf cfe-docs-4.0.1.src.tar.xz cfe-4.0.1.src/docs/_build/{man,html}
 
 # Build man/html pages
 pushd docs

++ aarch64-disable-memorytest.patch ++
--- /var/tmp/diff_new_pack.yp7RPg/_old  2017-07-04 13:32:36.185131260 +0200
+++ /var/tmp/diff_new_pack.yp7RPg/_new  2017-07-04 13:32:36.185131260 +0200
@@ -1,7 +1,7 @@
-Index: llvm-4.0.0.src/unittests/Support/CMakeLists.txt
+Index: llvm-4.0.1.src/unittests/Support/CMakeLists.txt
 ===
 llvm-4.0.0.src.orig/unittests/Support/CMakeLists.txt
-+++ llvm-4.0.0.src/unittests/Support/CMakeLists.txt
+--- llvm-4.0.1.src.orig/unittests/Support/CMakeLists.txt
 llvm-4.0.1.src/unittests/Support/CMakeLists.txt
 @@ -31,7 +31,6 @@ add_llvm_unittest(SupportTests
ManagedStatic.cpp
MathExtrasTest.cpp

++ arm_suse_support.diff ++
--- /var/tmp/diff_new_pack.yp7RPg/_old  2017-07-04 13:32:36.197129570 +0200
+++ /var/tmp/diff_new_pack.yp7RPg/_new  2017-07-04 13:32:36.201129007 +0200
@@ -1,5 +1,5 @@
 cfe-4.0.0.src/lib/Driver/ToolChains.cpp
-+++ cfe-4.0.0.src/lib/Driver/ToolChains.cpp
+--- cfe-4.0.1.src/lib/Driver/ToolChains.cpp
 cfe-4.0.1.src/lib/Driver/ToolChains.cpp
 @@ -1427,7 +1427,9 @@ bool Generic_GCC::GCCInstallationDetecto
static const char *const ARMTriples[] = 

commit llvm4 for openSUSE:Factory

2017-06-05 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-06-05 18:49:18

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Mon Jun  5 18:49:18 2017 rev:4 rq:500669 version:4.0.0

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-05-27 
13:08:54.279755239 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-06-05 
18:49:20.881625185 +0200
@@ -1,0 +2,5 @@
+Fri Jun  2 12:42:08 UTC 2017 - idon...@suse.com
+
+- Use gcc6 only for SLE boo#1041469
+
+---



Other differences:
--
++ lldb4.spec ++
--- /var/tmp/diff_new_pack.Ff6rIL/_old  2017-06-05 18:49:22.481399692 +0200
+++ /var/tmp/diff_new_pack.Ff6rIL/_new  2017-06-05 18:49:22.481399692 +0200
@@ -52,7 +52,7 @@
 Requires:   liblldb%{_sonum} = %{version}
 Requires:   python
 Requires:   python-six
-ExclusiveArch:  arm x86_64
+ExclusiveArch:  x86_64
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 

++ llvm4.spec ++
--- /var/tmp/diff_new_pack.Ff6rIL/_old  2017-06-05 18:49:22.517394619 +0200
+++ /var/tmp/diff_new_pack.Ff6rIL/_new  2017-06-05 18:49:22.517394619 +0200
@@ -91,7 +91,7 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # llvm does not work on ppc or s390
 ExcludeArch:ppc s390
-%if 0%{?sle_version} <= 13
+%if 0%{?sle_version} && 0%{?sle_version} <= 13
 BuildRequires:  gcc6
 BuildRequires:  gcc6-c++
 %else
@@ -451,7 +451,7 @@
 test "$ninjaproc" -le 0 && ninjaproc=1 && echo "Warning: Do not use the 
parallel build at all becuse of memory limits"
 fi
 
-%if 0%{?sle_version} <= 13
+%if 0%{?sle_version} && 0%{?sle_version} <= 13
 export CC=gcc-6
 export CXX=g++-6
 %endif




commit llvm4 for openSUSE:Factory

2017-05-27 Thread root
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 - idon...@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 - idon...@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 
 #include 
+#include 
 #include 
 #include 
 #include 



commit llvm4 for openSUSE:Factory

2017-04-25 Thread root
Hello community,

here is the log from the commit of package llvm4 for openSUSE:Factory checked 
in at 2017-04-25 08:56:35

Comparing /work/SRC/openSUSE:Factory/llvm4 (Old)
 and  /work/SRC/openSUSE:Factory/.llvm4.new (New)


Package is "llvm4"

Tue Apr 25 08:56:35 2017 rev:2 rq:489790 version:4.0.0

Changes:

--- /work/SRC/openSUSE:Factory/llvm4/llvm4.changes  2017-04-17 
10:20:17.757327901 +0200
+++ /work/SRC/openSUSE:Factory/.llvm4.new/llvm4.changes 2017-04-25 
08:56:37.568342272 +0200
@@ -1,0 +2,6 @@
+Wed Apr 19 15:08:25 UTC 2017 - dmuel...@suse.com
+
+- readd arm_suse_support.diff which was accidentally removed
+  in the 4.0.0 update
+
+---

New:

  arm_suse_support.diff



Other differences:
--
++ llvm4.spec ++
--- /var/tmp/diff_new_pack.3LYW3j/_old  2017-04-25 08:56:39.892013703 +0200
+++ /var/tmp/diff_new_pack.3LYW3j/_new  2017-04-25 08:56:39.900012572 +0200
@@ -67,6 +67,8 @@
 Patch5: llvm-remove-clang-only-flags.patch
 Patch6: llvm-fix-find-gcc5-install.patch
 Patch7: aarch64-disable-memorytest.patch
+# PATCH-FIX-OPENSUSE arm_suse_support.diff -- Enable ARM suse toolchain support
+Patch8: arm_suse_support.diff
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  bison
 BuildRequires:  cmake
@@ -361,6 +363,7 @@
 %ifarch aarch64
 %patch7 -p1
 %endif
+%patch8
 
 # Move into right place
 mv cfe-%{version}.src tools/clang
@@ -410,7 +413,7 @@
 flags+=" -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
 %endif
 %ifarch armv7hl
-flags+=" -mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16"
+flags+=" -mfloat-abi=hard -march=armv7-a -mtune=cortex-a15 -mfpu=vfpv3-d16"
 %endif
 %ifarch %{ix86} x86_64
 TARGETS_TO_BUILD="all"

++ arm_suse_support.diff ++
--- cfe-4.0.0.src/lib/Driver/ToolChains.cpp
+++ cfe-4.0.0.src/lib/Driver/ToolChains.cpp
@@ -1427,7 +1427,9 @@ bool Generic_GCC::GCCInstallationDetecto
   static const char *const ARMTriples[] = {"arm-linux-gnueabi",
"arm-linux-androideabi"};
   static const char *const ARMHFTriples[] = {"arm-linux-gnueabihf",
- "armv7hl-redhat-linux-gnueabi"};
+ "armv7hl-redhat-linux-gnueabi",
+ "armv6hl-suse-linux-gnueabi",
+ "armv7hl-suse-linux-gnueabi"};
   static const char *const ARMebLibDirs[] = {"/lib"};
   static const char *const ARMebTriples[] = {"armeb-linux-gnueabi",
  "armeb-linux-androideabi"};