commit llvm5 for openSUSE:Factory

2019-02-08 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2019-02-08 12:11:22

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


Package is "llvm5"

Fri Feb  8 12:11:22 2019 rev:15 rq:672114 version:5.0.2

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-12-21 
08:22:20.673518005 +0100
+++ /work/SRC/openSUSE:Factory/.llvm5.new.28833/llvm5.changes   2019-02-08 
12:11:36.525509622 +0100
@@ -1,0 +2,6 @@
+Wed Feb  6 10:27:50 UTC 2019 - m...@suse.com
+
+- Add lldb-fix-build-with-python-3.7.patch
+  * Fix build with python 3.7
+
+---

New:

  lldb-fix-build-with-python-3.7.patch



Other differences:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.tQbwM2/_old  2019-02-08 12:11:38.577508853 +0100
+++ /var/tmp/diff_new_pack.tQbwM2/_new  2019-02-08 12:11:38.577508853 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package llvm5
 #
-# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -100,6 +100,7 @@
 Patch16:n_clang_allow_BUILD_SHARED_LIBRARY.patch
 Patch17:llvm-build-tests-with-rtti.patch
 Patch18:llvm_build_tablegen_component_as_shared_library.patch
+Patch19:lldb-fix-build-with-python-3.7.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -518,6 +519,7 @@
 pushd lldb-%{version}.src
 %patch11 -p1
 %patch12 -p1
+%patch19 -p1
 # Set LLDB revision
 sed -i s,LLDB_REVISION,\"%{_llvm_revision}\",g source/lldb.cpp #"
 popd

++ lldb-fix-build-with-python-3.7.patch ++
>From acbe5dc5cf0cf6852f02794987178595051a3a4e Mon Sep 17 00:00:00 2001
From: Michal Srb 
Date: Wed, 25 Jul 2018 10:08:58 +0200
Subject: [PATCH] Fix build with python 3.7.

The PyUnicode_AsUTF8AndSize now returns const char*, so we can not cast
it to char*. However, the PyString_AsStringAndSize from python 2 still
needs char**.
---
 source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp 
b/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
index 6a9d57d5a..3382813a5 100644
--- a/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
+++ b/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
@@ -399,11 +399,11 @@ llvm::StringRef PythonString::GetString() const {
 return llvm::StringRef();
 
   Py_ssize_t size;
-  char *c;
 
 #if PY_MAJOR_VERSION >= 3
-  c = PyUnicode_AsUTF8AndSize(m_py_obj, );
+  const char *c = PyUnicode_AsUTF8AndSize(m_py_obj, );
 #else
+  char *c;
   PyString_AsStringAndSize(m_py_obj, , );
 #endif
   return llvm::StringRef(c, size);
-- 
2.16.4




commit llvm5 for openSUSE:Factory

2018-12-20 Thread root
Hello community,

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

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


Package is "llvm5"

Fri Dec 21 08:22:07 2018 rev:14 rq:660217 version:5.0.2

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-10-11 
11:58:28.809792525 +0200
+++ /work/SRC/openSUSE:Factory/.llvm5.new.28833/llvm5.changes   2018-12-21 
08:22:20.673518005 +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:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.7qcLuO/_old  2018-12-21 08:22:22.137516633 +0100
+++ /var/tmp/diff_new_pack.7qcLuO/_new  2018-12-21 08:22:22.141516630 +0100
@@ -876,8 +876,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 llvm5 for openSUSE:Factory

2018-10-11 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2018-10-11 11:58:28

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


Package is "llvm5"

Thu Oct 11 11:58:28 2018 rev:13 rq:640999 version:5.0.2

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-06-19 
12:01:41.626419983 +0200
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-10-11 
11:58:28.809792525 +0200
@@ -1,0 +2,8 @@
+Tue Oct  9 10:51:41 UTC 2018 - m...@suse.com
+
+- llvm_build_tablegen_component_as_shared_library.patch
+  * Build TableGen component as its own shared library because it
+is not included in the libLLVM library and is needed for ldc.
+(bsc#190)
+
+---

New:

  llvm_build_tablegen_component_as_shared_library.patch



Other differences:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.l0NTUm/_old  2018-10-11 11:58:31.657788905 +0200
+++ /var/tmp/diff_new_pack.l0NTUm/_new  2018-10-11 11:58:31.657788905 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package llvm5
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -99,6 +99,7 @@
 Patch15:opt-viewer-Do-not-require-python-2.patch
 Patch16:n_clang_allow_BUILD_SHARED_LIBRARY.patch
 Patch17:llvm-build-tests-with-rtti.patch
+Patch18:llvm_build_tablegen_component_as_shared_library.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -180,8 +181,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%{_sonum}-checker
@@ -201,8 +202,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
@@ -217,8 +218,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
@@ -239,8 +240,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
 
@@ -260,8 +261,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}
@@ -269,8 +270,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
@@ -282,8 +283,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:  llvm-gold-provider
@@ -294,8 +295,8 @@
 
 %package -n libomp%{_sonum}-devel
 Summary:MPI plugin for LLVM
-# Avoid multiple provider errors
 Group:  Development/Languages/Other
+# Avoid multiple provider errors
 Requires:   libLLVM%{_sonum}
 Conflicts:  libomp-devel
 Provides:   libomp-devel
@@ -315,8 +316,8 @@
 
 %package -n libc++-devel
 Summary:C++ standard library implementation (devel package)
-# Avoid multiple provider errors
 Group:  Development/Languages/C and C++
+# Avoid multiple provider errors
 Requires:   libc++%{_socxx} = %{version}
 Requires:   libc++abi-devel = %{version}
 Conflicts:  libc++.so
@@ -444,8 +445,8 @@
 
 %package -n liblldb%{_sonum}
 Summary:LLDB software debugger runtime 

commit llvm5 for openSUSE:Factory

2018-06-19 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2018-06-19 12:01:37

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


Package is "llvm5"

Tue Jun 19 12:01:37 2018 rev:12 rq:616832 version:5.0.2

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-05-23 
16:09:18.925512729 +0200
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-06-19 
12:01:41.626419983 +0200
@@ -1,0 +2,7 @@
+Thu Jun 14 10:20:30 UTC 2018 - m...@suse.com
+
+- Do not requires gcc6 for older sle versions.
+  * llvm5 is not built on <= 12 SP3 and this was preventing build
+on 12 SP4.
+
+---



Other differences:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.qYuc6h/_old  2018-06-19 12:01:44.658307411 +0200
+++ /var/tmp/diff_new_pack.qYuc6h/_new  2018-06-19 12:01:44.670306966 +0200
@@ -119,13 +119,8 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # llvm does not work on ppc or s390
 ExcludeArch:ppc s390
-%if 0%{?sle_version} && 0%{?sle_version} <= 13 && !0%{?is_opensuse}
-BuildRequires:  gcc6
-BuildRequires:  gcc6-c++
-%else
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
-%endif
 %if %{with ffi}
 BuildRequires:  pkgconfig(libffi)
 %endif
@@ -619,11 +614,6 @@
 test "$max_compile_jobs" -le 0 && max_compile_jobs=1 && echo "Warning: Not 
compiling in parallel at all becuse of memory limits"
 fi
 
-%if 0%{?sle_version} && 0%{?sle_version} <= 13 && !0%{?is_opensuse}
-export CC=gcc-6
-export CXX=g++-6
-%endif
-
 %define __builder ninja
 %define __builddir stage1
 # -z,now is breaking now, it needs to be fixed




commit llvm5 for openSUSE:Factory

2018-05-19 Thread root
Hello community,

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

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


Package is "llvm5"

Sat May 19 15:42:29 2018 rev:10 rq:610299 version:5.0.1

Changes:

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



Other differences:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.Vw4eXs/_old  2018-05-19 15:42:37.830267114 +0200
+++ /var/tmp/diff_new_pack.Vw4eXs/_new  2018-05-19 15:42:37.834266967 +0200
@@ -23,11 +23,15 @@
 %define _uaver  500
 %define _socxx  1
 %define _revsn  312548
-%ifarch x86_64
-%bcond_without libcxx
-%else
+
+# libcxx is provided by the newer llvm, so it is disabled by default here to
+# not have conflicting binaries
 %bcond_with libcxx
-%endif
+
+# 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
@@ -52,7 +56,6 @@
 %bcond_with ffi
 %bcond_with oprofile
 %bcond_with valgrind
-%bcond_without pyclang
 
 Name:   llvm5
 Version:5.0.1
@@ -785,8 +788,10 @@
 mv %{buildroot}%{_datadir}/opt-viewer/opt-diff.py 
%{buildroot}%{_bindir}/opt-diff
 mv %{buildroot}%{_datadir}/opt-viewer/opt-stats.py 
%{buildroot}%{_bindir}/opt-stats
 mv %{buildroot}%{_datadir}/opt-viewer/opt-viewer.py 
%{buildroot}%{_bindir}/opt-viewer
+%if %{with pyclang}
 mv %{buildroot}%{_datadir}/opt-viewer/optpmap.py 
%{buildroot}%{python3_sitelib}/optpmap.py
 mv %{buildroot}%{_datadir}/opt-viewer/optrecord.py 
%{buildroot}%{python3_sitelib}/optrecord.py
+%endif
 
 mkdir -p %{buildroot}%{_libdir}/clang/%{version}
 mv %{buildroot}%{_datadir}/clang/bash-autocomplete.sh 
%{buildroot}%{_libdir}/clang/%{version}/bash-autocomplete.sh
@@ -1439,8 +1444,10 @@
 %{_bindir}/opt-diff
 %{_bindir}/opt-stats
 %{_bindir}/opt-viewer
+%if %{with pyclang}
 %{python3_sitelib}/optpmap.py
 %{python3_sitelib}/optrecord.py
+%endif
 %{_datadir}/opt-viewer/
 
 %files -n libLLVM%{_sonum}




commit llvm5 for openSUSE:Factory

2018-05-11 Thread root
Hello community,

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

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


Package is "llvm5"

Fri May 11 09:16:41 2018 rev:9 rq:606100 version:5.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-04-17 
11:16:00.966634836 +0200
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-05-11 
09:16:52.401562471 +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:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.OjHtec/_old  2018-05-11 09:16:54.569483928 +0200
+++ /var/tmp/diff_new_pack.OjHtec/_new  2018-05-11 09:16:54.573483783 +0200
@@ -564,10 +564,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 llvm5 for openSUSE:Factory

2018-04-17 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2018-04-17 11:15:56

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


Package is "llvm5"

Tue Apr 17 11:15:56 2018 rev:8 rq:595686 version:5.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-03-26 
12:01:25.194373524 +0200
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-04-17 
11:16:00.966634836 +0200
@@ -1,0 +2,6 @@
+Wed Apr 11 09:18:29 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:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.jzWEs1/_old  2018-04-17 11:16:02.982540316 +0200
+++ /var/tmp/diff_new_pack.jzWEs1/_new  2018-04-17 11:16:02.986540128 +0200
@@ -95,6 +95,7 @@
 Patch14:llvm-do-not-install-static-libraries.patch
 Patch15:opt-viewer-Do-not-require-python-2.patch
 Patch16:n_clang_allow_BUILD_SHARED_LIBRARY.patch
+Patch17:llvm-build-tests-with-rtti.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -502,6 +503,7 @@
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+%patch17 -p1
 
 pushd cfe-%{version}.src
 %patch1 -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 llvm5 for openSUSE:Factory

2018-03-26 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2018-03-26 12:01:17

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


Package is "llvm5"

Mon Mar 26 12:01:17 2018 rev:7 rq:589018 version:5.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-02-03 
15:37:54.946225330 +0100
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-03-26 
12:01:25.194373524 +0200
@@ -1,0 +2,27 @@
+Fri Mar 16 12:25:57 UTC 2018 - m...@suse.com
+
+- Use alternatives for clang's bash autocomplete to prevent
+  conflicts with future versions.
+
+---
+Thu Feb 15 11:38:38 UTC 2018 - m...@suse.com
+
+- Remove liblldb5 and lldb5-devel from baselibs.conf. They are only
+  build for x86_64, so no point having them in baselibs.conf.
+
+---
+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



Other differences:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.EYEcf0/_old  2018-03-26 12:01:29.882204399 +0200
+++ /var/tmp/diff_new_pack.EYEcf0/_new  2018-03-26 12:01:29.906203533 +0200
@@ -87,8 +87,6 @@
 Patch6: llvm-fix-find-gcc5-install.patch
 Patch7: aarch64-disable-memorytest.patch
 Patch8: clang-ignore-stack-clash-protector.patch
-Patch9: 
llvm-split-static-library-exports-into-their-own-export-file.diff
-Patch10:
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.
 Patch11: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.
@@ -117,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
@@ -500,7 +498,6 @@
 %patch7 -p1
 %endif
 
-%patch9 -p0
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
@@ -513,7 +510,6 @@
 %patch4 -p1
 %patch6 -p1
 %patch8 -p1
-%patch10 -p1
 popd
 
 %if %{with lldb}
@@ -565,9 +561,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
@@ -597,15 +598,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))"
+mem_per_link_job=300
+max_jobs="$(($max_mem / $mem_per_link_job))"
 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 test -n "$max_compile_jobs" -a "$max_compile_jobs" -gt 1 ; then
+mem_per_compile_job=150
+max_jobs="$(($max_mem / $mem_per_compile_job))"
+test "$max_compile_jobs" -gt "$max_jobs" && max_compile_jobs="$max_jobs" 
&& echo "Warning: 

commit llvm5 for openSUSE:Factory

2018-02-03 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2018-02-03 15:37:54

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


Package is "llvm5"

Sat Feb  3 15:37:54 2018 rev:6 rq:571410 version:5.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-01-26 
13:57:55.829655298 +0100
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-02-03 
15:37:54.946225330 +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:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.ELoTp3/_old  2018-02-03 15:37:56.898134159 +0100
+++ /var/tmp/diff_new_pack.ELoTp3/_new  2018-02-03 15:37:56.898134159 +0100
@@ -107,7 +107,6 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  ninja
 BuildRequires:  pkgconfig
-BuildRequires:  procps
 BuildRequires:  python3
 BuildRequires:  pkgconfig(libedit)
 BuildRequires:  pkgconfig(zlib)
@@ -575,32 +574,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
@@ -618,6 +620,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 \
@@ -639,7 +643,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 ..
 
 # Remove files that won't be needed anymore.
@@ -666,6 +670,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" \
@@ -697,7 +703,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 

commit llvm5 for openSUSE:Factory

2018-01-26 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2018-01-26 13:57:54

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


Package is "llvm5"

Fri Jan 26 13:57:54 2018 rev:5 rq:569073 version:5.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-01-16 
09:34:17.544373868 +0100
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-01-26 
13:57:55.829655298 +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:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.DF4WK9/_old  2018-01-26 13:58:01.513389929 +0100
+++ /var/tmp/diff_new_pack.DF4WK9/_new  2018-01-26 13:58:01.521389555 +0100
@@ -96,6 +96,7 @@
 Patch13:llvm-normally-versioned-libllvm.patch
 Patch14:llvm-do-not-install-static-libraries.patch
 Patch15:opt-viewer-Do-not-require-python-2.patch
+Patch16:n_clang_allow_BUILD_SHARED_LIBRARY.patch
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  binutils-gold
 BuildRequires:  cmake
@@ -261,17 +262,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
@@ -515,6 +505,7 @@
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
+%patch16 -p1
 
 pushd cfe-%{version}.src
 %patch1 -p1
@@ -670,6 +661,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" \
@@ -1439,6 +1431,7 @@
 %files -n libclang%{_sonum}
 %defattr(-,root,root,-)
 %{_libdir}/libclang*.so.*
+%{_libdir}/libfindAllSymbols.so.*
 
 %files -n libLTO%{_sonum}
 %defattr(-,root,root)
@@ -1488,7 +1481,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
@@ -1496,18 +1488,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-5.0.1.src/cfe-5.0.1.src/CMakeLists.txt
===
--- llvm-5.0.1.src.orig/cfe-5.0.1.src/CMakeLists.txt
+++ llvm-5.0.1.src/cfe-5.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 llvm5 for openSUSE:Factory

2018-01-16 Thread root
Hello community,

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

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


Package is "llvm5"

Tue Jan 16 09:34:15 2018 rev:4 rq:565785 version:5.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2018-01-07 
17:22:17.626686459 +0100
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-01-16 
09:34:17.544373868 +0100
@@ -1,0 +2,22 @@
+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.
+
+---
+Wed Jan 10 10:24:49 UTC 2018 - norm...@linux.vnet.ibm.com
+
+- ignore make check error for PowerPC as bypass
+  https://bugs.llvm.org/show_bug.cgi?id=35871
+
+---
+Mon Jan  8 13:12:13 UTC 2018 - dmuel...@suse.com
+
+- disable debuginfo build for ARM as well
+
+---



Other differences:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.L9Y96F/_old  2018-01-16 09:34:20.612230329 +0100
+++ /var/tmp/diff_new_pack.L9Y96F/_new  2018-01-16 09:34:20.616230142 +0100
@@ -300,8 +300,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.
@@ -674,7 +674,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
@@ -758,8 +758,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
@@ -919,7 +920,11 @@
 %if !0%{?qemu_user_space_build:1}
 # we just do not have enough memory with qemu emulation
 
+%ifarch ppc64 ppc64le
+ninja -v %{?_smp_mflags} check || { echo "Ignore PowerPC failures 
https://bugs.llvm.org/show_bug.cgi?id=35871;; }
+%else
 ninja -v %{?_smp_mflags} check
+%endif
 ninja -v %{?_smp_mflags} check-clang
 
 %if %{with libcxx}
@@ -1442,8 +1447,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.L9Y96F/_old  2018-01-16 09:34:20.644228832 +0100
+++ /var/tmp/diff_new_pack.L9Y96F/_new  2018-01-16 09:34:20.644228832 +0100
@@ -2,18 +2,39 @@
 
   
 
-49
+  49
 
 
   9000
 
   
   
+
+
+  i586
+  s390
+
+
+  
+10
+  
+  
+4096
+  
+
+  
+  
 
   armv6l
   armv7l
 
 
+  
+10
+  
   
 768
   

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




commit llvm5 for openSUSE:Factory

2018-01-07 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2018-01-07 17:22:06

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


Package is "llvm5"

Sun Jan  7 17:22:06 2018 rev:3 rq:561808 version:5.0.1

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2017-12-31 
00:43:58.202472010 +0100
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2018-01-07 
17:22:17.626686459 +0100
@@ -1,0 +2,15 @@
+Fri Jan  5 08:55:59 UTC 2018 - m...@suse.com
+
+- Delete intermediate files during build to reduce total disk usage
+  (bnc#1074625)
+
+---
+Thu Jan  4 10:28:07 UTC 2018 - m...@suse.com
+
+- Update to llvm 5.0.1
+  * This release contains bug-fixes for the LLVM 5.0.0 release.
+  * This release is API and ABI compatible with 5.0.0.
+- llvm-do-not-install-static-libraries.patch
+  * Updated.
+
+---

Old:

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

New:

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



Other differences:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.OermVO/_old  2018-01-07 17:22:20.354558596 +0100
+++ /var/tmp/diff_new_pack.OermVO/_new  2018-01-07 17:22:20.358558409 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package llvm5
 #
-# 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
@@ -16,7 +16,7 @@
 #
 
 
-%define _relver 5.0.0
+%define _relver 5.0.1
 %define _minor  5.0
 %define _sonum  5
 # Integer version used by update-alternatives
@@ -55,7 +55,7 @@
 %bcond_without pyclang
 
 Name:   llvm5
-Version:5.0.0
+Version:5.0.1
 Release:0
 Summary:Low Level Virtual Machine
 License:NCSA
@@ -651,6 +651,16 @@
 ninja -v -j $ninjaproc clang
 cd ..
 
+# Remove files that won't be needed anymore.
+# This reduces the total amount of disk space used during build. (bnc#1074625)
+find ./stage1 -name '*.o' -delete
+find ./stage1 -name '*.a' \
+  -and -not -name 'libclang*.a' \
+  -and -not -name 'libFuzzer.a' \
+  -and -not -name 'libc++.a' \
+  -and -not -name 'libc++experimental.a' \
+  -delete
+
 %define __builddir build
 export PATH=${PWD}/stage1/bin:$PATH
 export CC=${PWD}/stage1/bin/clang
@@ -710,14 +720,14 @@
 
 # Docs are prebuilt due to sphinx dependency
 #
-# pushd llvm-5.0.0.src/docs
+# pushd llvm-5.0.1.src/docs
 # make -f Makefile.sphinx man html
 # popd
-# pushd cfe-5.0.0.src/docs
+# pushd cfe-5.0.1.src/docs
 # make -f Makefile.sphinx man html
 # popd
-# tar cvJf llvm-docs-5.0.0.src.tar.xz llvm-5.0.0.src/docs/_build/{man,html}
-# tar cvJf cfe-docs-5.0.0.src.tar.xz cfe-5.0.0.src/docs/_build/{man,html}
+# tar cvJf llvm-docs-5.0.1.src.tar.xz llvm-5.0.1.src/docs/_build/{man,html}
+# tar cvJf cfe-docs-5.0.1.src.tar.xz cfe-5.0.1.src/docs/_build/{man,html}
 
 # Build man/html pages
 pushd docs
@@ -904,7 +914,7 @@
 # UTF-8.
 export LANG=C.UTF-8
 
-cd build
+pushd build
 %ifnarch armv6hl armv7hl armv7l
 %if !0%{?qemu_user_space_build:1}
 # we just do not have enough memory with qemu emulation
@@ -920,6 +930,13 @@
 
 %endif
 %endif
+popd
+
+# Remove files that won't be needed anymore.
+# This reduces the total amount of disk space used during build. (bnc#1074625)
+# This is meant to happen after build, install and check, but before
+# extracting debuginfos or creating the final RPMs.
+rm -rf ./stage1 ./build
 
 %post -n libLLVM%{_sonum} -p /sbin/ldconfig
 %postun -n libLLVM%{_sonum} -p /sbin/ldconfig

++ cfe-5.0.0.src.tar.xz -> cfe-5.0.1.src.tar.xz ++
/work/SRC/openSUSE:Factory/llvm5/cfe-5.0.0.src.tar.xz 
/work/SRC/openSUSE:Factory/.llvm5.new/cfe-5.0.1.src.tar.xz differ: char 25, 
line 1

++ cfe-docs-5.0.0.src.tar.xz -> cfe-docs-5.0.1.src.tar.xz ++
 39950 lines of diff (skipped)

++ clang-tools-extra-5.0.0.src.tar.xz -> clang-tools-extra-5.0.1.src.tar.xz 
++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 

commit llvm5 for openSUSE:Factory

2017-12-30 Thread root
Hello community,

here is the log from the commit of package llvm5 for openSUSE:Factory checked 
in at 2017-12-31 00:43:47

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


Package is "llvm5"

Sun Dec 31 00:43:47 2017 rev:2 rq:559569 version:5.0.0

Changes:

--- /work/SRC/openSUSE:Factory/llvm5/llvm5.changes  2017-12-16 
20:54:31.854188129 +0100
+++ /work/SRC/openSUSE:Factory/.llvm5.new/llvm5.changes 2017-12-31 
00:43:58.202472010 +0100
@@ -1,0 +2,6 @@
+Fri Dec 22 08:56:05 UTC 2017 - fcro...@suse.com
+
+- Increase minimum memory and disk sizes required for building in
+  _constraints.
+
+---



Other differences:
--
++ llvm5.spec ++
--- /var/tmp/diff_new_pack.NTCZUq/_old  2017-12-31 00:44:00.585677106 +0100
+++ /var/tmp/diff_new_pack.NTCZUq/_new  2017-12-31 00:44:00.593674438 +0100
@@ -183,8 +183,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%{_sonum}-checker
@@ -204,8 +204,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
@@ -220,8 +220,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
@@ -242,8 +242,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
 
@@ -274,8 +274,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}
@@ -283,8 +283,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
@@ -296,8 +296,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)
@@ -308,8 +308,8 @@
 
 %package -n libomp%{_sonum}-devel
 Summary:MPI plugin for LLVM
-Group:  Development/Languages/Other
 # Avoid multiple provider errors
+Group:  Development/Languages/Other
 Requires:   libLLVM%{_sonum}
 Conflicts:  libomp-devel
 Provides:   libomp-devel
@@ -329,8 +329,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

++ _constraints ++
--- /var/tmp/diff_new_pack.NTCZUq/_old  2017-12-31 00:44:00.629662434 +0100
+++ /var/tmp/diff_new_pack.NTCZUq/_new  2017-12-31 00:44:00.629662434 +0100
@@ -2,10 +2,10 @@
 
   
 
-45
+49
 
 
-  6500
+  9000