Hello community, here is the log from the commit of package llvm8 for openSUSE:Factory checked in at 2020-03-22 14:16:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/llvm8 (Old) and /work/SRC/openSUSE:Factory/.llvm8.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "llvm8" Sun Mar 22 14:16:58 2020 rev:12 rq:786940 version:8.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/llvm8/llvm8.changes 2020-02-26 15:05:15.381216313 +0100 +++ /work/SRC/openSUSE:Factory/.llvm8.new.3160/llvm8.changes 2020-03-22 14:17:03.638052599 +0100 @@ -1,0 +2,19 @@ +Thu Mar 19 22:51:37 UTC 2020 - Aaron Puchert <[email protected]> + +- Move all clang-related scripts (including those originally in + clangX-checker) and hmaptool into a common unversioned + subpackage clang-tools, like python3-clang. + The scripts reference the unversioned executables, so allowing + multiple versions via update-alternatives would be misleading. + This should be the proper solution to boo#1161873. +- Include run-find-all-symbols script in clang-tools. +- Drop the now empty llvm-emacs-plugins package. +- Remove metadata for clangX-include-fixer subpackage that never + had any files and thus wasn't released as rpm. There are so many + clang binaries that packaging them separately doesn't scale. +- Remove unneccesary libtool dependency. +- Don't let clang depend on libc++, we link it with libstdc++. +- Recommend gold plugin if clang and gold are installed. +- Require clang-tools for clangX-devel. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ llvm8.spec ++++++ --- /var/tmp/diff_new_pack.oWFMnI/_old 2020-03-22 14:17:07.490055070 +0100 +++ /var/tmp/diff_new_pack.oWFMnI/_new 2020-03-22 14:17:07.542055103 +0100 @@ -54,7 +54,7 @@ %bcond_with ffi %bcond_with oprofile %bcond_with valgrind -%bcond_with pyclang +%bcond_with clang_scripts Name: llvm8 Version: 8.0.1 @@ -111,7 +111,6 @@ BuildRequires: cmake BuildRequires: fdupes BuildRequires: libstdc++-devel -BuildRequires: libtool BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: python3-base @@ -186,12 +185,9 @@ # Avoid multiple provider errors Requires: libLTO%{_sonum} Requires: libclang%{_sonum} -Recommends: clang%{_sonum}-checker +Recommends: clang-tools Suggests: libstdc++-devel Suggests: libc++-devel -%if %{with cxx} -Requires: libc++%{_socxx} -%endif # Install after llvm packages that might have had diagtool as slave of llvm-ar # to prevent breaking the clang link group. OrderWithRequires: llvm7 @@ -202,44 +198,38 @@ %description -n clang%{_sonum} This package contains the clang (C language) frontend for LLVM. -%package -n clang%{_sonum}-checker -Summary: Static code analyzer for CLANG +%package -n clang-tools +Summary: Tools for Clang Group: Development/Languages/C and C++ URL: https://clang-analyzer.llvm.org/ # Avoid multiple provider errors -Requires: libclang%{_sonum} -# Due to a packaging error in clang3_8 we have to conflict. -Conflicts: clang3_8 +Requires: clang%{_sonum} +# Some binaries used to be in the clang package. +Conflicts: clang5 +Conflicts: clang6 +# hmaptool used to be contained in the llvm package. +Conflicts: llvm5 +Conflicts: llvm6 +Provides: clang%{_sonum}-checker Conflicts: scan-build < %{version} Conflicts: scan-view < %{version} +Provides: llvm%{_sonum}-emacs-plugins Provides: scan-build = %{version} Provides: scan-view = %{version} +Conflicts: emacs-llvm < %{version} +Provides: emacs-llvm = %{version} +Conflicts: vim-plugin-llvm < %{version} -%description -n clang%{_sonum}-checker -This package contains scan-build and scan-view, command line -static code analyzers for CLANG. - -%package -n clang%{_sonum}-include-fixer -Summary: Automatically add missing includes -# Avoid multiple provider errors -Group: Development/Languages/C and C++ -Requires: libclang%{_sonum} = %{_relver} -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 -is the manual management of include directives in any file. -clang-include-fixer addresses one aspect of this problem by -providing an automated way of adding include directives for -missing symbols in one translation unit. - -While inserting missing includes, clang-include-fixer adds -missing namespace qualifiers to all instances of an -unidentified symbol if the symbol is missing some prefix -namespace qualifiers. +%description -n clang-tools +This package contains tools and scripts for using Clang, including: +* bash completions for clang, +* the clang-doc tool, +* plugins for using clang-format, clang-rename, clang-include-fixer + in vim and emacs. +* scripts for using clang-format: git-clang-format and clang-format-diff, +* scripts for using clang-tidy: run-clang-tidy and clang-tidy-diff, +* scripts for using the Clang static analyzer: scan-build and scan-view, +* a script for using find-all-symbols: run-find-all-symbols. %package -n libclang%{_sonum} Summary: Library files needed for clang @@ -255,6 +245,7 @@ Group: Development/Libraries/C and C++ Requires: %{name}-devel = %{_relver} Requires: clang%{_sonum} = %{_relver} +Requires: clang-tools Conflicts: cmake(Clang) %description -n clang%{_sonum}-devel @@ -290,6 +281,7 @@ Requires: libLLVM%{_sonum} Conflicts: llvm-gold-provider < %{version} Provides: llvm-gold-provider = %{version} +Supplements: packageand(clang%{_sonum}:binutils-gold) %description gold This package contains the Gold linker plugin for LLVM. @@ -363,17 +355,6 @@ %description vim-plugins This package contains vim plugins for LLVM like syntax highlighting. -%package emacs-plugins -Summary: Emacs plugins for LLVM -Group: Productivity/Text/Editors -Supplements: packageand(llvm%{_sonum}-devel:emacs) -Conflicts: emacs-llvm < %{version} -Provides: emacs-llvm = %{version} -BuildArch: noarch - -%description emacs-plugins -This package contains Emacs plugins for LLVM like syntax highlighting. - %package -n python3-clang Summary: Python bindings for libclang Group: Development/Libraries/Python @@ -781,7 +762,7 @@ # install python bindings # The python bindings use the unversioned libclang.so, # so it doesn't make sense to have multiple versions of it -%if %{with pyclang} +%if %{with clang_scripts} install -d %{buildroot}%{python3_sitelib}/clang pushd tools/clang/bindings/python cp clang/*.py %{buildroot}%{python3_sitelib}/clang @@ -806,6 +787,7 @@ mv %{buildroot}%{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff mv %{buildroot}%{_datadir}/clang/clang-tidy-diff.py %{buildroot}%{_bindir}/clang-tidy-diff mv %{buildroot}%{_datadir}/clang/run-clang-tidy.py %{buildroot}%{_bindir}/run-clang-tidy +mv %{buildroot}%{_datadir}/clang/run-find-all-symbols.py %{buildroot}%{_bindir}/run-find-all-symbols install -d %{buildroot}%{python3_sitelib} mv %{buildroot}%{_datadir}/opt-viewer/opt-diff.py %{buildroot}%{_bindir}/opt-diff @@ -814,10 +796,8 @@ mv %{buildroot}%{_datadir}/opt-viewer/optpmap.py %{buildroot}%{python3_sitelib}/optpmap.py mv %{buildroot}%{_datadir}/opt-viewer/optrecord.py %{buildroot}%{python3_sitelib}/optrecord.py -mkdir -p %{buildroot}%{_libdir}/clang/%{_relver} -mv %{buildroot}%{_datadir}/clang/bash-autocomplete.sh %{buildroot}%{_libdir}/clang/%{_relver}/bash-autocomplete.sh mkdir -p %{buildroot}%{_datadir}/bash-completion/completions -ln -s %{_sysconfdir}/alternatives/clang-bash-autocomplete.sh %{buildroot}%{_datadir}/bash-completion/completions/clang.sh +mv %{buildroot}%{_datadir}/clang/bash-autocomplete.sh %{buildroot}%{_datadir}/bash-completion/completions/clang chmod -x %{buildroot}%{_mandir}/man1/scan-build.1 @@ -852,12 +832,9 @@ rm %{buildroot}%{_datadir}/clang/*.applescript rm %{buildroot}%{_datadir}/clang/clang-format-sublime.py -# XXX: FIXME we should put these in a sub-package -rm %{buildroot}%{_datadir}/clang/run-find-all-symbols.py - # Prepare for update-alternatives usage mkdir -p %{buildroot}%{_sysconfdir}/alternatives -binfiles=( bugpoint diagtool dsymutil hmaptool llc lli \ +binfiles=( bugpoint diagtool dsymutil llc lli \ llvm-ar llvm-as llvm-bcanalyzer llvm-c-test llvm-cat llvm-cfi-verify llvm-cov llvm-cxxdump llvm-cxxfilt llvm-cxxmap llvm-cvtres llvm-diff llvm-dis \ llvm-dlltool llvm-dwarfdump llvm-dwp llvm-elfabi llvm-exegesis llvm-extract \ @@ -869,10 +846,9 @@ sanstats verify-uselistorder yaml2obj \ c-index-test clang clangd clang++ clang-apply-replacements \ clang-change-namespace clang-check clang-cl clang-extdef-mapping clang-format \ - clang-import-test clang-include-fixer clang-format-diff \ + clang-import-test clang-include-fixer \ clang-offload-bundler clang-query clang-refactor clang-rename \ - clang-reorder-fields clang-tidy clang-tidy-diff find-all-symbols \ - git-clang-format modularize run-clang-tidy \ + clang-reorder-fields clang-tidy find-all-symbols modularize \ %if %{with lldb} lldb lldb-argdumper lldb-mi lldb-server lldb-test lldb-vscode \ %endif @@ -929,13 +905,13 @@ %_llvm_with_ffi %{with ffi} %_llvm_with_oprofile %{with oprofile} %_llvm_with_valgrind %{with valgrind} -%_llvm_with_pyclang %{with pyclang} +%_llvm_with_clang_scripts %{with clang_scripts} %_llvm_with_lldb %{with lldb} EOF # Don't use env in shebangs, and prefer python3. (https://www.python.org/dev/peps/pep-0394/#for-python-runtime-distributors) -for script in %{buildroot}%{_bindir}/{{clang-{format,tidy}-diff,git-clang-format,\ -hmaptool,run-clang-tidy}-%{_relver},{ccc,c++}-analyzer,scan-{build,view},opt-{diff,stats,viewer}} \ +for script in %{buildroot}%{_bindir}/{clang-{format,tidy}-diff,git-clang-format,\ +hmaptool,run-{clang-tidy,find-all-symbols},scan-{build,view},opt-{diff,stats,viewer}} \ %{buildroot}%{python3_sitelib}/optrecord.py; do sed -i '1s|/usr/bin/env *|/usr/bin/|;1s|/usr/bin/python$|/usr/bin/python3|' $script done @@ -943,10 +919,22 @@ # Remove executable bit where not needed. chmod -x \ %{buildroot}%{python3_sitelib}/optpmap.py \ - %{buildroot}%{_libdir}/clang/%{_relver}/bash-autocomplete.sh \ + %{buildroot}%{_datadir}/bash-completion/completions/clang \ %{buildroot}%{_datadir}/clang/clang-{format,include-fixer,rename}.{el,py} \ %{buildroot}%{_datadir}/opt-viewer/style.css +%if !%{with clang_scripts} +rm %{buildroot}%{_bindir}/{c++,ccc}-analyzer +rm %{buildroot}%{_bindir}/clang-{format-diff,tidy-diff} +rm %{buildroot}%{_bindir}/git-clang-format +rm %{buildroot}%{_bindir}/hmaptool +rm %{buildroot}%{_bindir}/run-{clang-tidy,find-all-symbols} +rm %{buildroot}%{_bindir}/scan-{build,view} +rm %{buildroot}%{_datadir}/bash-completion/completions/clang +rm -r %{buildroot}%{_datadir}/{clang,scan-build,scan-view}/ +rm %{buildroot}%{_mandir}/man1/scan-build.1 +%endif + # Remove documentation sources. rm -r %{buildroot}%{_docdir}/llvm{,-clang}/html/_sources @@ -1035,7 +1023,6 @@ --install %{_bindir}/llvm-ar llvm-ar %{_bindir}/llvm-ar-%{_relver} %{_uaver} \ --slave %{_bindir}/bugpoint bugpoint %{_bindir}/bugpoint-%{_relver} \ --slave %{_bindir}/dsymutil dsymutil %{_bindir}/dsymutil-%{_relver} \ - --slave %{_bindir}/hmaptool hmaptool %{_bindir}/hmaptool-%{_relver} \ --slave %{_bindir}/llc llc %{_bindir}/llc-%{_relver} \ --slave %{_bindir}/lli lli %{_bindir}/lli-%{_relver} \ --slave %{_bindir}/llvm-as llvm-as %{_bindir}/llvm-as-%{_relver} \ @@ -1136,7 +1123,6 @@ --slave %{_bindir}/clang-cl clang-cl %{_bindir}/clang-cl-%{_relver} \ --slave %{_bindir}/clang-extdef-mapping clang-extdef-mapping %{_bindir}/clang-extdef-mapping-%{_relver} \ --slave %{_bindir}/clang-format clang-format %{_bindir}/clang-format-%{_relver} \ - --slave %{_bindir}/clang-format-diff clang-format-diff %{_bindir}/clang-format-diff-%{_relver} \ --slave %{_bindir}/clang-import-test clang-import-test %{_bindir}/clang-import-test-%{_relver} \ --slave %{_bindir}/clang-include-fixer clang-include-fixer %{_bindir}/clang-include-fixer-%{_relver} \ --slave %{_bindir}/clang-offload-bundler clang-offload-bundler %{_bindir}/clang-offload-bundler-%{_relver} \ @@ -1145,15 +1131,11 @@ --slave %{_bindir}/clang-rename clang-rename %{_bindir}/clang-rename-%{_relver} \ --slave %{_bindir}/clang-reorder-fields clang-reorder-fields %{_bindir}/clang-reorder-fields-%{_relver} \ --slave %{_bindir}/clang-tidy clang-tidy %{_bindir}/clang-tidy-%{_relver} \ - --slave %{_bindir}/clang-tidy-diff clang-tidy-diff %{_bindir}/clang-tidy-diff-%{_relver} \ --slave %{_bindir}/diagtool diagtool %{_bindir}/diagtool-%{_relver} \ --slave %{_bindir}/find-all-symbols find-all-symbols %{_bindir}/find-all-symbols-%{_relver} \ - --slave %{_bindir}/git-clang-format git-clang-format %{_bindir}/git-clang-format-%{_relver} \ --slave %{_bindir}/modularize modularize %{_bindir}/modularize-%{_relver} \ - --slave %{_bindir}/run-clang-tidy run-clang-tidy %{_bindir}/run-clang-tidy-%{_relver} \ --slave %{_mandir}/man1/clang.1%{ext_man} clang.1%{ext_man} %{_mandir}/man1/clang-%{_relver}.1%{ext_man} \ - --slave %{_mandir}/man1/diagtool.1%{ext_man} diagtool.1%{ext_man} %{_mandir}/man1/diagtool-%{_relver}.1%{ext_man} \ - --slave %{_datadir}/bash-completion/completions/clang.sh clang-bash-autocomplete.sh %{_libdir}/clang/%{_relver}/bash-autocomplete.sh + --slave %{_mandir}/man1/diagtool.1%{ext_man} diagtool.1%{ext_man} %{_mandir}/man1/diagtool-%{_relver}.1%{ext_man} %postun -n clang%{_sonum} if [ ! -f %{_bindir}/clang-%{_relver} ] ; then @@ -1194,7 +1176,6 @@ %{_bindir}/bugpoint %{_bindir}/dsymutil -%{_bindir}/hmaptool %{_bindir}/llc %{_bindir}/lli %{_bindir}/llvm-ar @@ -1253,7 +1234,6 @@ %{_bindir}/bugpoint-%{_relver} %{_bindir}/dsymutil-%{_relver} -%{_bindir}/hmaptool-%{_relver} %{_bindir}/llc-%{_relver} %{_bindir}/lli-%{_relver} %{_bindir}/llvm-ar-%{_relver} @@ -1312,7 +1292,6 @@ %ghost %{_sysconfdir}/alternatives/bugpoint %ghost %{_sysconfdir}/alternatives/dsymutil -%ghost %{_sysconfdir}/alternatives/hmaptool %ghost %{_sysconfdir}/alternatives/llc %ghost %{_sysconfdir}/alternatives/lli %ghost %{_sysconfdir}/alternatives/llvm-ar @@ -1471,7 +1450,6 @@ %{_bindir}/clang-cpp %{_bindir}/clang-extdef-mapping %{_bindir}/clang-format -%{_bindir}/clang-format-diff %{_bindir}/clang-import-test %{_bindir}/clang-include-fixer %{_bindir}/clang-offload-bundler @@ -1480,12 +1458,9 @@ %{_bindir}/clang-rename %{_bindir}/clang-reorder-fields %{_bindir}/clang-tidy -%{_bindir}/clang-tidy-diff %{_bindir}/diagtool %{_bindir}/find-all-symbols -%{_bindir}/git-clang-format %{_bindir}/modularize -%{_bindir}/run-clang-tidy %{_bindir}/c-index-test-%{_relver} %{_bindir}/clang-%{_relver} %{_bindir}/clangd-%{_relver} @@ -1496,7 +1471,6 @@ %{_bindir}/clang-cl-%{_relver} %{_bindir}/clang-extdef-mapping-%{_relver} %{_bindir}/clang-format-%{_relver} -%{_bindir}/clang-format-diff-%{_relver} %{_bindir}/clang-import-test-%{_relver} %{_bindir}/clang-include-fixer-%{_relver} %{_bindir}/clang-offload-bundler-%{_relver} @@ -1505,12 +1479,9 @@ %{_bindir}/clang-rename-%{_relver} %{_bindir}/clang-reorder-fields-%{_relver} %{_bindir}/clang-tidy-%{_relver} -%{_bindir}/clang-tidy-diff-%{_relver} %{_bindir}/diagtool-%{_relver} %{_bindir}/find-all-symbols-%{_relver} -%{_bindir}/git-clang-format-%{_relver} %{_bindir}/modularize-%{_relver} -%{_bindir}/run-clang-tidy-%{_relver} %ghost %{_sysconfdir}/alternatives/c-index-test %ghost %{_sysconfdir}/alternatives/clang %ghost %{_sysconfdir}/alternatives/clangd @@ -1521,7 +1492,6 @@ %ghost %{_sysconfdir}/alternatives/clang-cl %ghost %{_sysconfdir}/alternatives/clang-extdef-mapping %ghost %{_sysconfdir}/alternatives/clang-format -%ghost %{_sysconfdir}/alternatives/clang-format-diff %ghost %{_sysconfdir}/alternatives/clang-import-test %ghost %{_sysconfdir}/alternatives/clang-include-fixer %ghost %{_sysconfdir}/alternatives/clang-offload-bundler @@ -1530,13 +1500,9 @@ %ghost %{_sysconfdir}/alternatives/clang-rename %ghost %{_sysconfdir}/alternatives/clang-reorder-fields %ghost %{_sysconfdir}/alternatives/clang-tidy -%ghost %{_sysconfdir}/alternatives/clang-tidy-diff %ghost %{_sysconfdir}/alternatives/diagtool %ghost %{_sysconfdir}/alternatives/find-all-symbols -%ghost %{_sysconfdir}/alternatives/git-clang-format %ghost %{_sysconfdir}/alternatives/modularize -%ghost %{_sysconfdir}/alternatives/run-clang-tidy -%ghost %{_sysconfdir}/alternatives/clang-bash-autocomplete.sh %{_mandir}/man1/clang.1%{ext_man} %{_mandir}/man1/diagtool.1%{ext_man} %{_mandir}/man1/clang-%{_relver}.1%{ext_man} @@ -1545,23 +1511,31 @@ %ghost %{_sysconfdir}/alternatives/diagtool.1%{ext_man} %dir %{_libdir}/clang/ %dir %{_libdir}/clang/%{_relver}/ -%{_libdir}/clang/%{_relver}/bash-autocomplete.sh # The sanitizer runtime is not available for ppc. %ifnarch ppc %{_libdir}/clang/%{_relver}/lib %{_libdir}/clang/%{_relver}/share %endif -%{_datadir}/bash-completion/completions/clang.sh -%files -n clang%{_sonum}-checker +%if %{with clang_scripts} +%files -n clang-tools %license CREDITS.TXT LICENSE.TXT %{_bindir}/c++-analyzer %{_bindir}/ccc-analyzer +%{_bindir}/clang-format-diff +%{_bindir}/clang-tidy-diff +%{_bindir}/git-clang-format +%{_bindir}/hmaptool +%{_bindir}/run-clang-tidy +%{_bindir}/run-find-all-symbols %{_bindir}/scan-build %{_bindir}/scan-view +%{_datadir}/bash-completion/completions/clang +%{_datadir}/clang/ %{_datadir}/scan-build/ %{_datadir}/scan-view/ %{_mandir}/man1/scan-build.1%{ext_man} +%endif %files opt-viewer %license CREDITS.TXT LICENSE.TXT @@ -1653,23 +1627,12 @@ %license CREDITS.TXT LICENSE.TXT %{_libdir}/libLTO.so -%files emacs-plugins -%license CREDITS.TXT LICENSE.TXT -%dir %{_datadir}/clang/ -%{_datadir}/clang/clang-format.el -%{_datadir}/clang/clang-include-fixer.el -%{_datadir}/clang/clang-rename.el - %files vim-plugins %license CREDITS.TXT LICENSE.TXT %doc utils/vim/README.vim %{_datadir}/vim/ -%dir %{_datadir}/clang/ -%{_datadir}/clang/clang-format.py -%{_datadir}/clang/clang-rename.py -%{_datadir}/clang/clang-include-fixer.py -%if %{with pyclang} +%if %{with clang_scripts} %files -n python3-clang %license CREDITS.TXT LICENSE.TXT %{python3_sitelib}/clang/
