commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2019-10-21 12:30:56 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new.2352 (New) Package is "llvm6" Mon Oct 21 12:30:56 2019 rev:16 rq:741336 version:6.0.1 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2019-09-02 13:26:40.929297381 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new.2352/llvm6.changes2019-10-21 12:31:02.840140711 +0200 @@ -1,0 +2,9 @@ +Fri Oct 18 18:35:58 UTC 2019 - Stefan Brüns + +- (Build)Require only python3-base instead of full python3 package, + the additional modules are not required. Helps shortening the + build dependency chain. +- Remove python3-* requires from lldb6 subpackage, and add it to + the bindings/pretty-printer subpackage (python3-lldb6). + +--- Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.QbuglC/_old 2019-10-21 12:31:07.060145495 +0200 +++ /var/tmp/diff_new_pack.QbuglC/_new 2019-10-21 12:31:07.064145500 +0200 @@ -111,7 +111,7 @@ BuildRequires: ncurses-devel BuildRequires: ninja BuildRequires: pkgconfig -BuildRequires: python3 +BuildRequires: python3-base BuildRequires: pkgconfig(libedit) BuildRequires: pkgconfig(zlib) # Avoid multiple provider errors @@ -394,8 +394,8 @@ %package opt-viewer Summary:Tools for visualising the LLVM optimization records Group: Development/Languages/Other -BuildRequires: python3 -Requires: python3 +BuildRequires: python3-base +Requires: python3-base Requires: python3-PyYAML Requires: python3-Pygments BuildArch: noarch @@ -420,8 +420,6 @@ BuildRequires: pkgconfig(zlib) # Avoid multiple provider errors Requires: liblldb%{_sonum} = %{version} -Requires: python3 -Requires: python3-six ExclusiveArch: x86_64 Requires(post): update-alternatives Requires(postun): update-alternatives @@ -465,10 +463,12 @@ %if %{with lldb_python} %package -n python3-lldb%{_sonum} Summary:Python bindings for liblldb -# Avoid multiple provider errors Group: Development/Languages/Python BuildRequires: swig >= 3.0.11 +# Avoid multiple provider errors Requires: liblldb%{_sonum} = %{version} +Requires: python3-base +Requires: python3-six Provides: %{python3_sitearch}/lldb/ Conflicts: %{python3_sitearch}/lldb/
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2019-09-02 13:26:37 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new.7948 (New) Package is "llvm6" Mon Sep 2 13:26:37 2019 rev:15 rq:727579 version:6.0.1 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2019-05-03 22:26:33.256230262 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new.7948/llvm6.changes2019-09-02 13:26:40.929297381 +0200 @@ -1,0 +2,24 @@ +Thu Aug 15 23:41:42 UTC 2019 - Aaron Puchert + +- Remove -fno-strict-aliasing, which upstream doesn't use any more + since r245304 in 2015. (http://reviews.llvm.org/D12036) + It's probably also not needed for modern versions of GCC. + It was enabled in r105644 because of some bugs there. +- Add a clang-%{_sonum} symlink, which is referenced by + /usr/lib64/cmake/clang/ClangTargets.cmake (boo#1120098). +- Make rpm macros work properly. +- Reduce memory requirements for compile jobs depending on arch. +- Use the documented LLVM_ENABLE_RTTI to enable RTTI instead of + LLVM_REQUIRES_RTTI, which "is an internal flag that individual + targets can use to force RTTI". (boo#1139584) +- Drop obsolete llvm-build-tests-with-rtti.patch. +- Remove unused (since r268685) CMake flags LLVM_ENABLE_TIMESTAMPS. +- Fix typo. +- Don't build libc++ and python3-clang anymore, because they come + from llvm8 now (boo#1145735), and previously llvm7. +- Don't recommend scan-build and scan-view in clang. (boo#1145444) +- Add versions to Provides/Conflicts except for files. +- Fix installation of opt-viewer files when python3-clang is no + longer built. + +--- Old: llvm-build-tests-with-rtti.patch Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.KdOXM3/_old 2019-09-02 13:26:42.957296999 +0200 +++ /var/tmp/diff_new_pack.KdOXM3/_new 2019-09-02 13:26:42.969296997 +0200 @@ -23,11 +23,10 @@ %define _uaver 601 %define _socxx 1 %define _revsn 335528 -%ifarch x86_64 -%bcond_without libcxx -%else + +# Superseded by llvm7. %bcond_with libcxx -%endif + %ifarch ppc64 ppc64le %{ix86} x86_64 %bcond_without openmp %else @@ -52,7 +51,7 @@ %bcond_with ffi %bcond_with oprofile %bcond_with valgrind -%bcond_without pyclang +%bcond_with pyclang Name: llvm6 Version:6.0.1 @@ -97,7 +96,6 @@ Patch15:opt-viewer-Do-not-require-python-2.patch Patch16:n_clang_allow_BUILD_SHARED_LIBRARY.patch Patch17:polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch -Patch18:llvm-build-tests-with-rtti.patch Patch20:llvm_build_tablegen_component_as_shared_library.patch Patch21:llvm6-fix-gdb-index-crash.patch Patch22:lldb-fix-build-with-python-3.7.patch @@ -166,8 +164,8 @@ Requires: ncurses-devel Requires: pkgconfig Requires: pkgconfig(libedit) -Provides: llvm-devel-provider -Conflicts: llvm-devel-provider +Provides: llvm-devel-provider = %{version} +Conflicts: llvm-devel-provider < %{version} Conflicts: cmake(LLVM) %if %{with ffi} Requires: pkgconfig(libffi) @@ -193,8 +191,6 @@ Recommends: libc++-devel Recommends: libomp%{_sonum}-devel Recommends: llvm-gold-devel -Recommends: scan-build -Recommends: scan-view %if %{with cxx} Requires: libc++%{_socxx} %endif @@ -211,10 +207,10 @@ Requires: libclang%{_sonum} # Due to a packaging error in clang3_8 we have to conflict. Conflicts: clang3_8 -Conflicts: scan-build -Conflicts: scan-view -Provides: scan-build -Provides: scan-view +Conflicts: scan-build < %{version} +Conflicts: scan-view < %{version} +Provides: scan-build = %{version} +Provides: scan-view = %{version} %description -n clang%{_sonum}-checker This package contains scan-build and scan-view, command line @@ -225,10 +221,10 @@ # Avoid multiple provider errors Group: Development/Languages/Other Requires: libclang%{_sonum} = %{version} -Conflicts: clang-include-fixer -Conflicts: find-all-symbols -Provides: clang-include-fixer -Provides: find-all-symbols +Conflicts: clang-include-fixer < %{version} +Conflicts: find-all-symbols < %{version} +Provides: clang-include-fixer = %{version} +Provides: find-all-symbols = %{version} %description -n clang%{_sonum}-include-fixer One of the major nuisances of C++ compared to other languages @@ -278,8 +274,8 @@ Group: Development/Languages/Other Requires: %{name}-devel = %{version} Requires: libLTO%{_sonum} -Conflicts: libLTO.so -Provides:
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2019-05-03 22:26:33 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new.5148 (New) Package is "llvm6" Fri May 3 22:26:33 2019 rev:14 rq:700032 version:6.0.1 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-12-24 11:35:24.21018 +0100 +++ /work/SRC/openSUSE:Factory/.llvm6.new.5148/llvm6.changes2019-05-03 22:26:33.256230262 +0200 @@ -1,0 +2,5 @@ +Wed Apr 24 17:19:21 UTC 2019 - Martin Liška + +- Disable LTO (boo#1133254). + +--- Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.keEIG3/_old 2019-05-03 22:26:34.820233468 +0200 +++ /var/tmp/diff_new_pack.keEIG3/_new 2019-05-03 22:26:34.820233468 +0200 @@ -1,7 +1,7 @@ # # spec file for package llvm6 # -# Copyright (c) 2018 SUSE LINUX 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 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -588,6 +588,7 @@ sed -i s,LLVM_REVISION,\"%{_revsn}\",g tools/clang/lib/Basic/Version.cpp %build +%define _lto_cflags %{nil} # Use optflags, but: # 1) Remove the -D_FORTIFY_SOURCE=2 because llvm does not build correctly with
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-12-24 11:35:24 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new.28833 (New) Package is "llvm6" Mon Dec 24 11:35:24 2018 rev:13 rq:660215 version:6.0.1 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-11-06 13:58:54.239882235 +0100 +++ /work/SRC/openSUSE:Factory/.llvm6.new.28833/llvm6.changes 2018-12-24 11:35:24.21018 +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: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.QAmlyJ/_old 2018-12-24 11:35:26.213769298 +0100 +++ /var/tmp/diff_new_pack.QAmlyJ/_new 2018-12-24 11:35:26.217769294 +0100 @@ -895,8 +895,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 llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-11-06 13:58:46 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Tue Nov 6 13:58:46 2018 rev:12 rq:643929 version:6.0.1 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-10-02 19:41:03.598241860 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-11-06 13:58:54.239882235 +0100 @@ -1,0 +2,7 @@ +Tue Oct 23 10:22:55 UTC 2018 - m...@suse.com + +- opt-viewer-Find-style-css-in-usr-share.patch + * Make sure opt-viewer installed in /usr/bin can find resources +from /usr/share/opt-viewer. (boo#1112730) + +--- New: opt-viewer-Find-style-css-in-usr-share.patch Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.ACPMqS/_old 2018-11-06 13:59:00.095874212 +0100 +++ /var/tmp/diff_new_pack.ACPMqS/_new 2018-11-06 13:59:00.099874206 +0100 @@ -101,6 +101,7 @@ Patch20:llvm_build_tablegen_component_as_shared_library.patch Patch21:llvm6-fix-gdb-index-crash.patch Patch22:lldb-fix-build-with-python-3.7.patch +Patch23:opt-viewer-Find-style-css-in-usr-share.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake @@ -520,6 +521,7 @@ %patch18 -p1 %patch20 -p1 %patch21 -p1 +%patch23 -p1 pushd cfe-%{version}.src %patch1 -p1 ++ opt-viewer-Find-style-css-in-usr-share.patch ++ Index: llvm-6.0.1.src/tools/opt-viewer/opt-viewer.py === --- llvm-6.0.1.src.orig/tools/opt-viewer/opt-viewer.py +++ llvm-6.0.1.src/tools/opt-viewer/opt-viewer.py @@ -252,8 +252,7 @@ def generate_report(all_remarks, sorted_remarks = sorted(optrecord.itervalues(all_remarks), key=lambda r: (r.File, r.Line, r.Column, r.PassWithDiffPrefix, r.yaml_tag, r.Function)) IndexRenderer(args.output_dir, should_display_hotness).render(sorted_remarks) -shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)), -"style.css"), output_dir) +shutil.copy("/usr/share/opt-viewer/style.css", output_dir) if __name__ == '__main__':
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-10-02 19:41:02 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Tue Oct 2 19:41:02 2018 rev:11 rq:638745 version:6.0.1 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-09-11 17:13:15.363783969 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-10-02 19:41:03.598241860 +0200 @@ -1,0 +2,7 @@ +Thu Sep 27 10:44:05 UTC 2018 - m...@suse.com + +- Add direct conflict between llvm6-polly-devel and future + llvm7-polly-devel to prevent OBS from falsely reporting file + conflicts. + +--- Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.JsUDB6/_old 2018-10-02 19:41:05.850238516 +0200 +++ /var/tmp/diff_new_pack.JsUDB6/_new 2018-10-02 19:41:05.854238510 +0200 @@ -499,6 +499,8 @@ Summary:Development files for Polly Group: Development/Languages/Other Requires: llvm%{_sonum}-polly = %{version} +Conflicts: llvm-polly-devel-provider +Provides: llvm-polly-devel-provider %description polly-devel This package contains the development files for Polly.
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-09-11 17:13:14 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Tue Sep 11 17:13:14 2018 rev:10 rq:631810 version:6.0.1 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-07-27 10:55:07.785518825 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-09-11 17:13:15.363783969 +0200 @@ -1,0 +2,11 @@ +Mon Aug 27 11:30:36 UTC 2018 - m...@suse.com + +- Updated llvm-remove-clang-only-flags.patch + - Exclude also "-Werror=unguarded-availability-new" (bsc#1106000) + +--- +Tue Aug 21 09:09:15 UTC 2018 - m...@suse.com + +- Make sure llvm6-polly will not conflict with future llvm7-polly. + +--- Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.w1k2ph/_old 2018-09-11 17:13:16.991781450 +0200 +++ /var/tmp/diff_new_pack.w1k2ph/_new 2018-09-11 17:13:16.991781450 +0200 @@ -484,6 +484,8 @@ %package polly Summary:Polly is a high-level loop and data-locality optimizer and optimization infrastructure for LLVM. Group: Development/Languages/Other +Conflicts: llvm-polly-provider +Provides: llvm-polly-provider %description polly Polly uses an abstract mathematical representation based on integer polyhedra ++ llvm-remove-clang-only-flags.patch ++ --- /var/tmp/diff_new_pack.w1k2ph/_old 2018-09-11 17:13:17.071781326 +0200 +++ /var/tmp/diff_new_pack.w1k2ph/_new 2018-09-11 17:13:17.071781326 +0200 @@ -1,16 +1,17 @@ -Index: llvm-6.0.0rc1.src/cmake/modules/HandleLLVMOptions.cmake +Index: llvm-6.0.1.src/cmake/modules/HandleLLVMOptions.cmake === llvm-6.0.0rc1.src.orig/cmake/modules/HandleLLVMOptions.cmake -+++ llvm-6.0.0rc1.src/cmake/modules/HandleLLVMOptions.cmake -@@ -402,7 +402,6 @@ if( MSVC ) +--- llvm-6.0.1.src.orig/cmake/modules/HandleLLVMOptions.cmake llvm-6.0.1.src/cmake/modules/HandleLLVMOptions.cmake +@@ -402,8 +402,6 @@ if( MSVC ) elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE ) append_if(LLVM_ENABLE_WERROR "-Werror" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) append_if(LLVM_ENABLE_WERROR "-Wno-error" CMAKE_REQUIRED_FLAGS) - add_flag_if_supported("-Werror=date-time" WERROR_DATE_TIME) - add_flag_if_supported("-Werror=unguarded-availability-new" WERROR_UNGUARDED_AVAILABILITY_NEW) +- add_flag_if_supported("-Werror=unguarded-availability-new" WERROR_UNGUARDED_AVAILABILITY_NEW) if (LLVM_ENABLE_CXX1Y) check_cxx_compiler_flag("-std=c++1y" CXX_SUPPORTS_CXX1Y) -@@ -570,7 +569,6 @@ if (LLVM_ENABLE_WARNINGS AND (LLVM_COMPI + append_if(CXX_SUPPORTS_CXX1Y "-std=c++1y" CMAKE_CXX_FLAGS) +@@ -570,7 +568,6 @@ if (LLVM_ENABLE_WARNINGS AND (LLVM_COMPI append("-Wno-long-long" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) endif() @@ -18,7 +19,7 @@ append_if(USE_NO_UNINITIALIZED "-Wno-uninitialized" CMAKE_CXX_FLAGS) append_if(USE_NO_MAYBE_UNINITIALIZED "-Wno-maybe-uninitialized" CMAKE_CXX_FLAGS) -@@ -707,13 +705,6 @@ add_definitions( -D__STDC_CONSTANT_MACRO +@@ -707,13 +704,6 @@ add_definitions( -D__STDC_CONSTANT_MACRO add_definitions( -D__STDC_FORMAT_MACROS ) add_definitions( -D__STDC_LIMIT_MACROS )
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-07-27 10:54:23 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Fri Jul 27 10:54:23 2018 rev:9 rq:625304 version:6.0.1 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-07-07 21:56:57.755426941 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-07-27 10:55:07.785518825 +0200 @@ -1,0 +2,10 @@ +Wed Jul 25 07:29:54 UTC 2018 - m...@suse.com + +- Update to llvm 6.0.1 + * This release contains bug-fixes for the LLVM 6.0.0 release. It +is API and ABI compatible with 6.0.0. +- Remove no longer needed llvm6-fix-InstCombine.patch +- Add lldb-fix-build-with-python-3.7.patch + * Fix build with python 3.7 + +--- Old: cfe-6.0.0.src.tar.xz cfe-docs-6.0.0.src.tar.xz clang-tools-extra-6.0.0.src.tar.xz compiler-rt-6.0.0.src.tar.xz libcxx-6.0.0.src.tar.xz libcxxabi-6.0.0.src.tar.xz lld-6.0.0.src.tar.xz lldb-6.0.0.src.tar.xz llvm-6.0.0.src.tar.xz llvm-docs-6.0.0.src.tar.xz llvm6-fix-InstCombine.patch openmp-6.0.0.src.tar.xz polly-6.0.0.src.tar.xz New: cfe-6.0.1.src.tar.xz cfe-docs-6.0.1.src.tar.xz clang-tools-extra-6.0.1.src.tar.xz compiler-rt-6.0.1.src.tar.xz libcxx-6.0.1.src.tar.xz libcxxabi-6.0.1.src.tar.xz lld-6.0.1.src.tar.xz lldb-6.0.1.src.tar.xz lldb-fix-build-with-python-3.7.patch llvm-6.0.1.src.tar.xz llvm-docs-6.0.1.src.tar.xz openmp-6.0.1.src.tar.xz polly-6.0.1.src.tar.xz Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.6AKN45/_old 2018-07-27 10:55:10.877524744 +0200 +++ /var/tmp/diff_new_pack.6AKN45/_new 2018-07-27 10:55:10.881524751 +0200 @@ -16,13 +16,13 @@ # -%define _relver 6.0.0 +%define _relver 6.0.1 %define _minor 6.0 %define _sonum 6 # Integer version used by update-alternatives -%define _uaver 600 +%define _uaver 601 %define _socxx 1 -%define _revsn 326550 +%define _revsn 335528 %ifarch x86_64 %bcond_without libcxx %else @@ -55,7 +55,7 @@ %bcond_without pyclang Name: llvm6 -Version:6.0.0 +Version:6.0.1 Release:0 Summary:Low Level Virtual Machine License:NCSA @@ -98,9 +98,9 @@ Patch16:n_clang_allow_BUILD_SHARED_LIBRARY.patch Patch17:polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch Patch18:llvm-build-tests-with-rtti.patch -Patch19:llvm6-fix-InstCombine.patch Patch20:llvm_build_tablegen_component_as_shared_library.patch Patch21:llvm6-fix-gdb-index-crash.patch +Patch22:lldb-fix-build-with-python-3.7.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake @@ -514,7 +514,6 @@ %patch14 -p1 %patch15 -p1 %patch18 -p1 -%patch19 -p2 %patch20 -p1 %patch21 -p1 @@ -532,6 +531,7 @@ pushd lldb-%{version}.src %patch11 -p1 %patch12 -p1 +%patch22 -p1 # Set LLDB revision sed -i s,LLDB_REVISION,\"%{_llvm_revision}\",g source/lldb.cpp #" popd @@ -739,14 +739,14 @@ # Docs are prebuilt due to sphinx dependency # -# pushd llvm-6.0.0.src/docs +# pushd llvm-6.0.1.src/docs # make -f Makefile.sphinx man html # popd -# pushd cfe-6.0.0.src/docs +# pushd cfe-6.0.1.src/docs # make -f Makefile.sphinx man html # popd -# tar cvJf llvm-docs-6.0.0.src.tar.xz llvm-6.0.0.src/docs/_build/{man,html} -# tar cvJf cfe-docs-6.0.0.src.tar.xz cfe-6.0.0.src/docs/_build/{man,html} +# tar cvJf llvm-docs-6.0.1.src.tar.xz llvm-6.0.1.src/docs/_build/{man,html} +# tar cvJf cfe-docs-6.0.1.src.tar.xz cfe-6.0.1.src/docs/_build/{man,html} # Build man/html pages pushd docs ++ cfe-6.0.0.src.tar.xz -> cfe-6.0.1.src.tar.xz ++ /work/SRC/openSUSE:Factory/llvm6/cfe-6.0.0.src.tar.xz /work/SRC/openSUSE:Factory/.llvm6.new/cfe-6.0.1.src.tar.xz differ: char 25, line 1 ++ cfe-docs-6.0.0.src.tar.xz -> cfe-docs-6.0.1.src.tar.xz ++ 156019 lines of diff (skipped) ++ clang-tools-extra-6.0.0.src.tar.xz -> clang-tools-extra-6.0.1.src.tar.xz ++ ++ compiler-rt-6.0.0.src.tar.xz -> compiler-rt-6.0.1.src.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/compiler-rt-6.0.0.src/lib/sanitizer_common/sanitizer_platform_limits_posix.cc new/compiler-rt-6.0.1.src/lib/sanitizer_common/sanitizer_platform_limits_posix.cc --- old/compiler-rt-6.0.0.src/lib/sanitizer_common/sanitizer_platform_limits_posix.cc 2017-11-21 10:36:07.0 +0100 +++ new/compiler-rt-6.0.1.src/lib/sanitizer_common/sanitizer_platform_limits_posix.cc 2018-06-15 00:33:33.0 +0200 @@
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-07-07 21:55:47 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Sat Jul 7 21:55:47 2018 rev:8 rq:620159 version:6.0.0 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-06-18 13:50:05.853661425 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-07-07 21:56:57.755426941 +0200 @@ -1,0 +2,6 @@ +Fri Jun 29 00:21:52 UTC 2018 - l.lu...@centrum.cz + +- llvm6-fix-gdb-index-crash.patch + * From upstream, fix lld --gdb-index crash. + +--- New: llvm6-fix-gdb-index-crash.patch Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.44NS8p/_old 2018-07-07 21:56:59.575424631 +0200 +++ /var/tmp/diff_new_pack.44NS8p/_new 2018-07-07 21:56:59.579424625 +0200 @@ -100,6 +100,7 @@ Patch18:llvm-build-tests-with-rtti.patch Patch19:llvm6-fix-InstCombine.patch Patch20:llvm_build_tablegen_component_as_shared_library.patch +Patch21:llvm6-fix-gdb-index-crash.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake @@ -515,6 +516,7 @@ %patch18 -p1 %patch19 -p2 %patch20 -p1 +%patch21 -p1 pushd cfe-%{version}.src %patch1 -p1 ++ llvm6-fix-gdb-index-crash.patch ++ commit d227a3b47ef9e57d86127c7a94b4d06fdf1bfd2d Author: Rafael Espindola Date: Wed Mar 21 21:31:25 2018 + Handle abbr_offset with relocations. This is mostly just plumbing to get a DWARFDataExtractor where we compute abbr_offset so we can use getRelocatedValue. This is part of PR36793. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328154 91177308-0d34-0410-b5e6-96231b3b80d8 --- llvm-6.0.0.src/test/DebugInfo/X86/abbr_offset.s.sav 2018-06-29 02:29:06.993601497 +0200 +++ llvm-6.0.0.src/test/DebugInfo/X86/abbr_offset.s 2018-06-29 02:29:06.993601497 +0200 @@ -0,0 +1,51 @@ +# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj -o - | \ +# RUN: llvm-dwarfdump - | FileCheck %s + +# This test simulates the result of ld -r. That produces files where +# abbr_offset is not zero. + +# CHECK: abbr_offset = 0x +# CHECK: abbr_offset = 0x0008 + + .section.debug_abbrev,"",@progbits +.Labbrev1: + .byte 1 # Abbreviation Code + .byte 17 # DW_TAG_compile_unit + .byte 0 # DW_CHILDREN_no + .byte 16 # DW_AT_stmt_list + .byte 23 # DW_FORM_sec_offset + .byte 0 # EOM(1) + .byte 0 # EOM(2) + .byte 0 # EOM(3) + +.Labbrev2: + .byte 1 # Abbreviation Code + .byte 17 # DW_TAG_compile_unit + .byte 0 # DW_CHILDREN_no + .byte 16 # DW_AT_stmt_list + .byte 23 # DW_FORM_sec_offset + .byte 0 # EOM(1) + .byte 0 # EOM(2) + .byte 0 # EOM(3) + + .section.debug_info,"",@progbits + .long .Lend0 - .Lbegin0 # Length of Unit +.Lbegin0: + .short 4 # DWARF version number + .long .Labbrev1 # Offset Into Abbrev. Section + .byte 8 # Address Size (in bytes) + .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit + .long .Lline_table_start0 # DW_AT_stmt_list +.Lend0: + + .long .Lend1 - .Lbegin1 # Length of Unit +.Lbegin1: + .short 4 # DWARF version number + .long .Labbrev2 # Offset Into Abbrev. Section + .byte 8 # Address Size (in bytes) + .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit + .long .Lline_table_start0 # DW_AT_stmt_list +.Lend1: + + .section.debug_line,"",@progbits +.Lline_table_start0: --- llvm-6.0.0.src/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp.sav2018-06-29 02:29:01.217592047 +0200 +++ llvm-6.0.0.src/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp2018-06-29 02:29:06.993601497 +0200 @@ -18,7 +18,7 @@ using namespace llvm; -bool DWARFTypeUnit::extractImpl(DataExtractor debug_info, +bool DWARFTypeUnit::extractImpl(const DWARFDataExtractor _info, uint32_t *offset_ptr) { if
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-06-18 13:49:49 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Mon Jun 18 13:49:49 2018 rev:7 rq:616831 version:6.0.0 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-06-05 12:49:52.260320606 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-06-18 13:50:05.853661425 +0200 @@ -1,0 +2,7 @@ +Thu Jun 14 10:21:57 UTC 2018 - m...@suse.com + +- Do not requires gcc6 for older sle versions. + * llvm6 is not built on <= 12 SP3 and this was preventing build +on 12 SP4. + +--- Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.AaThQP/_old 2018-06-18 13:50:12.901400921 +0200 +++ /var/tmp/diff_new_pack.AaThQP/_new 2018-06-18 13:50:12.905400773 +0200 @@ -121,13 +121,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 @@ -638,11 +633,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 llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-06-05 12:49:51 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Tue Jun 5 12:49:51 2018 rev:6 rq:613475 version:6.0.0 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-05-23 16:06:59.174631208 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-06-05 12:49:52.260320606 +0200 @@ -1,0 +2,8 @@ +Thu May 17 15:26:21 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#1086445) + +--- New: llvm_build_tablegen_component_as_shared_library.patch Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.WSevyR/_old 2018-06-05 12:49:54.452240289 +0200 +++ /var/tmp/diff_new_pack.WSevyR/_new 2018-06-05 12:49:54.452240289 +0200 @@ -99,6 +99,7 @@ Patch17:polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch Patch18:llvm-build-tests-with-rtti.patch Patch19:llvm6-fix-InstCombine.patch +Patch20:llvm_build_tablegen_component_as_shared_library.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake @@ -518,6 +519,7 @@ %patch15 -p1 %patch18 -p1 %patch19 -p2 +%patch20 -p1 pushd cfe-%{version}.src %patch1 -p1 @@ -1541,6 +1543,7 @@ %defattr(-,root,root,-) %{_bindir}/llvm-config %{_libdir}/libLLVM.so +%{_libdir}/libLLVMTableGen.so %{_libdir}/BugpointPasses.* %{_libdir}/LLVMHello.* %{_includedir}/llvm/ ++ llvm_build_tablegen_component_as_shared_library.patch ++ The LLVMTableGen component is a special case that is excluded from libLLVM and normally is only built as static library and linked into llvm-tblgen. We need to have it as a shared library to be available for other projects such as ldc. This patch makes it even more special and forces it to be build and installed as separate shared library. diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index d631fcc0f05..6fba74a6e5b 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -524,7 +524,7 @@ function(llvm_add_library name) if(ARG_MODULE AND LLVM_EXPORT_SYMBOLS_FOR_PLUGINS AND ARG_PLUGIN_TOOL AND (WIN32 OR CYGWIN)) # On DLL platforms symbols are imported from the tool by linking against it. set(llvm_libs ${ARG_PLUGIN_TOOL}) - elseif (DEFINED LLVM_LINK_COMPONENTS OR DEFINED ARG_LINK_COMPONENTS) + elseif (DEFINED LLVM_LINK_COMPONENTS OR DEFINED ARG_LINK_COMPONENTS OR (${name} STREQUAL "LLVMTableGen" AND LLVM_BUILD_LLVM_DYLIB)) if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB) set(llvm_libs LLVM) else() @@ -602,7 +602,7 @@ macro(add_llvm_library name) "" "" ${ARGN}) - if( BUILD_SHARED_LIBS OR ARG_SHARED ) + if( BUILD_SHARED_LIBS OR ARG_SHARED) llvm_add_library(${name} SHARED ${ARG_UNPARSED_ARGUMENTS}) else() llvm_add_library(${name} ${ARG_UNPARSED_ARGUMENTS}) @@ -621,7 +621,7 @@ macro(add_llvm_library name) set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS_BUILDTREE_ONLY ${name}) else() if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO" OR -(LLVM_LINK_LLVM_DYLIB AND ${name} STREQUAL "LLVM")) +(LLVM_LINK_LLVM_DYLIB AND (${name} STREQUAL "LLVM" OR ${name} STREQUAL "LLVMTableGen"))) set(install_dir lib${LLVM_LIBDIR_SUFFIX}) if(ARG_SHARED OR BUILD_SHARED_LIBS) if(WIN32 OR CYGWIN OR MINGW) diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake index d1afcb42f9d..486105474a4 100644 --- a/cmake/modules/TableGen.cmake +++ b/cmake/modules/TableGen.cmake @@ -127,7 +127,8 @@ macro(add_tablegen target project) set(LLVM_ENABLE_OBJLIB ON) endif() - add_llvm_executable(${target} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARGN}) + add_llvm_executable(${target} ${ARGN}) + target_link_libraries(${target} PRIVATE LLVMTableGen) set(LLVM_LINK_COMPONENTS ${${target}_OLD_LLVM_LINK_COMPONENTS}) set(${project}_TABLEGEN "${target}" CACHE diff --git a/lib/TableGen/CMakeLists.txt b/lib/TableGen/CMakeLists.txt index 9333b653777..eb9af223025 100644 --- a/lib/TableGen/CMakeLists.txt +++ b/lib/TableGen/CMakeLists.txt @@ -1,3 +1,7 @@ +if (LLVM_BUILD_LLVM_DYLIB) +set(MAYBE_SHARED SHARED) +endif() + add_llvm_library(LLVMTableGen Error.cpp Main.cpp @@ -8,6 +12,8 @@ add_llvm_library(LLVMTableGen TGLexer.cpp TGParser.cpp + ${MAYBE_SHARED} + ADDITIONAL_HEADER_DIRS
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-05-23 16:06:54 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Wed May 23 16:06:54 2018 rev:5 rq:610052 version:6.0.0 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-05-13 15:56:11.585754221 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-05-23 16:06:59.174631208 +0200 @@ -1,0 +2,6 @@ +Thu May 17 11:18:46 UTC 2018 - tchva...@suse.com + +- Add patch llvm6-fix-InstCombine.patch to fix InstCombine init + * Will be fixed in 6.0.1 release + +--- New: llvm6-fix-InstCombine.patch Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.obC8bR/_old 2018-05-23 16:07:03.082488067 +0200 +++ /var/tmp/diff_new_pack.obC8bR/_new 2018-05-23 16:07:03.086487920 +0200 @@ -98,6 +98,7 @@ Patch16:n_clang_allow_BUILD_SHARED_LIBRARY.patch Patch17:polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch Patch18:llvm-build-tests-with-rtti.patch +Patch19:llvm6-fix-InstCombine.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake @@ -516,6 +517,7 @@ %patch14 -p1 %patch15 -p1 %patch18 -p1 +%patch19 -p2 pushd cfe-%{version}.src %patch1 -p1 ++ llvm6-fix-InstCombine.patch ++ Index: llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp === --- llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp +++ llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -34,6 +34,7 @@ //===--===// #include "InstCombineInternal.h" +#include "llvm-c/Initialization.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h"
commit llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-05-13 15:56:06 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Sun May 13 15:56:06 2018 rev:4 rq:606102 version:6.0.0 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-04-17 11:12:59.091163887 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-05-13 15:56:11.585754221 +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: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.X0jxyt/_old 2018-05-13 15:56:15.453613079 +0200 +++ /var/tmp/diff_new_pack.X0jxyt/_new 2018-05-13 15:56:15.457612933 +0200 @@ -582,10 +582,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 llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-04-17 11:12:49 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Tue Apr 17 11:12:49 2018 rev:3 rq:595685 version:6.0.0 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-04-07 20:53:31.566058542 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-04-17 11:12:59.091163887 +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: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.U7tLqt/_old 2018-04-17 11:13:02.183018871 +0200 +++ /var/tmp/diff_new_pack.U7tLqt/_new 2018-04-17 11:13:02.187018683 +0200 @@ -97,6 +97,7 @@ Patch15:opt-viewer-Do-not-require-python-2.patch Patch16:n_clang_allow_BUILD_SHARED_LIBRARY.patch Patch17:polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch +Patch18:llvm-build-tests-with-rtti.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake @@ -514,6 +515,7 @@ %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch18 -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 llvm6 for openSUSE:Factory
Hello community, here is the log from the commit of package llvm6 for openSUSE:Factory checked in at 2018-04-07 20:53:29 Comparing /work/SRC/openSUSE:Factory/llvm6 (Old) and /work/SRC/openSUSE:Factory/.llvm6.new (New) Package is "llvm6" Sat Apr 7 20:53:29 2018 rev:2 rq:593934 version:6.0.0 Changes: --- /work/SRC/openSUSE:Factory/llvm6/llvm6.changes 2018-03-28 10:31:39.384452214 +0200 +++ /work/SRC/openSUSE:Factory/.llvm6.new/llvm6.changes 2018-04-07 20:53:31.566058542 +0200 @@ -1,0 +2,10 @@ +Thu Apr 5 09:33:40 UTC 2018 - m...@suse.com + +- Do not export Polly static libraries which we do not distribute. + * Updated llvm-do-not-install-static-libraries.patch +- Use external jsoncpp instead of the bundled one. + * Added polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch +- llvm6-devel must require llvm6-polly-devel + * Files in llvm6-devel reference Polly. + +--- New: polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch Other differences: -- ++ llvm6.spec ++ --- /var/tmp/diff_new_pack.EvDd7X/_old 2018-04-07 20:53:36.701872658 +0200 +++ /var/tmp/diff_new_pack.EvDd7X/_new 2018-04-07 20:53:36.705872513 +0200 @@ -96,11 +96,13 @@ 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:polly-cmake-Trust-pkg-config-in-FindJsoncpp.patch BuildRequires: binutils-devel >= 2.21.90 BuildRequires: binutils-gold BuildRequires: cmake BuildRequires: fdupes BuildRequires: groff +BuildRequires: jsoncpp-devel BuildRequires: libstdc++-devel BuildRequires: libtool BuildRequires: ncurses-devel @@ -160,6 +162,7 @@ Requires: libtool Requires: llvm%{_sonum}-LTO-devel Requires: llvm%{_sonum}-gold +Requires: llvm%{_sonum}-polly-devel Requires: ncurses-devel Requires: pkgconfig Requires: pkgconfig(libedit) @@ -531,6 +534,10 @@ popd %endif +pushd polly-%{version}.src +%patch17 -p1 +popd + # Move into right place mv cfe-%{version}.src tools/clang mv compiler-rt-%{version}.src projects/compiler-rt @@ -723,7 +730,7 @@ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--build-id=sha1" \ -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 \ -DPOLLY_BUNDLED_ISL:BOOL=ON \ --DPOLLY_BUNDLED_JSONCPP:BOOL=ON +-DPOLLY_BUNDLED_JSONCPP:BOOL=OFF ninja -v %{?_smp_mflags} cd .. @@ -830,9 +837,6 @@ # XXX: FIXME we should put these in a sub-package rm %{buildroot}%{_datadir}/clang/run-find-all-symbols.py -# Polly static libraries (we only distribute LLVMPolly.so) -rm %{buildroot}%{_libdir}/libPolly*.a - # Prepare for update-alternatives usage mkdir -p %{buildroot}%{_sysconfdir}/alternatives binfiles=( bugpoint llc lli \ ++ llvm-do-not-install-static-libraries.patch ++ --- /var/tmp/diff_new_pack.EvDd7X/_old 2018-04-07 20:53:36.809868749 +0200 +++ /var/tmp/diff_new_pack.EvDd7X/_new 2018-04-07 20:53:36.809868749 +0200 @@ -69,3 +69,48 @@ endif() if (NOT CMAKE_CONFIGURATION_TYPES) add_llvm_install_targets(install-${name} +Index: llvm-6.0.0.src/polly-6.0.0.src/cmake/polly_macros.cmake +=== +--- llvm-6.0.0.src.orig/polly-6.0.0.src/cmake/polly_macros.cmake llvm-6.0.0.src/polly-6.0.0.src/cmake/polly_macros.cmake +@@ -42,12 +42,22 @@ macro(add_polly_library name) + llvm_config(${name} ${LLVM_LINK_COMPONENTS}) + endif( LLVM_LINK_COMPONENTS ) + if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LLVMPolly") +-install(TARGETS ${name} +- EXPORT LLVMExports +- LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} +- ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) ++if (MODULE OR SHARED_LIBRARY) ++ install(TARGETS ${name} ++EXPORT LLVMExports ++LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} ++ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) ++ set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name}) ++else() ++ if(NOT LLVM_BUILD_LLVM_DYLIB) ++install(TARGETS ${name} ++ EXPORT LLVMExports ++ LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} ++ ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) ++set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name}) ++ endif() ++endif() + endif() +- set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name}) + endmacro(add_polly_library) + + macro(add_polly_loadable_module name) +Index: llvm-6.0.0.src/polly-6.0.0.src/lib/CMakeLists.txt +=== +---