commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2020-05-20 18:45:58 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new.2738 (New) Package is "include-what-you-use" Wed May 20 18:45:58 2020 rev:10 rq:807416 version:0.14 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2020-04-10 23:54:41.532762125 +0200 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new.2738/include-what-you-use.changes 2020-05-20 18:46:24.801410513 +0200 @@ -1,0 +2,18 @@ +Tue May 19 21:48:58 UTC 2020 - Aaron Puchert + +- Update to version 0.14, update LLVM/Clang to version 10. + * Report non-builtin enum base types. + * Disable forward-declares for decls in inline namespaces. + * Make C structs forward-declarable again. + * Always keep Qt .moc includes. + * Include binary type traits in analysis. + * In iwyu_tool, fail fast if include-what-you-use is not found. + * In iwyu_tool, print all diagnostic ouptut to stderr. + * In fix_includes, improve file extension detection. + * Add man page for include-what-you-use. +- Rebase fix-shebang.patch. +- Remove upstreamed link-llvm9.patch. +- Use man page from upstream. +- Use %cmake_build for parallel build. + +--- Old: include-what-you-use-0.13.src.tar.gz include-what-you-use.1 link-llvm9.patch New: include-what-you-use-0.14.src.tar.gz Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.AWVrpu/_old 2020-05-20 18:46:25.661412446 +0200 +++ /var/tmp/diff_new_pack.AWVrpu/_new 2020-05-20 18:46:25.665412455 +0200 @@ -2,7 +2,7 @@ # spec file for package include-what-you-use # # Copyright (c) 2020 SUSE LLC -# Copyright (c) 2019 Aaron Puchert. +# Copyright (c) 2020 Aaron Puchert. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,23 +18,21 @@ Name: include-what-you-use -Version:0.13 +Version:0.14 Release:0 Summary:A tool to analyze #includes in C and C++ source files License:NCSA Group: Development/Languages/C and C++ URL:https://include-what-you-use.org/ Source0: https://include-what-you-use.org/downloads/%{name}-%{version}.src.tar.gz -Source1:%{name}.1 Patch1: fix-shebang.patch Patch2: iwyu_include_picker.patch Patch3: remove-x86-specific-code.patch -Patch4: link-llvm9.patch BuildRequires: c++_compiler -BuildRequires: clang9-devel +BuildRequires: clang10-devel BuildRequires: cmake BuildRequires: libstdc++-devel -BuildRequires: llvm9-devel +BuildRequires: llvm10-devel BuildRequires: python BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -66,7 +64,6 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 -%patch4 -p1 %build # Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc. @@ -75,12 +72,11 @@ rm iwyu.gcc.imp %cmake -DIWYU_LLVM_ROOT_PATH=%{_libdir} .. +%cmake_build %install %cmake_install -install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1 - %check # We don't support MS style inline assembly, because we removed the dependency # on the X86 target of LLVM. ++ fix-shebang.patch ++ --- /var/tmp/diff_new_pack.AWVrpu/_old 2020-05-20 18:46:25.689412509 +0200 +++ /var/tmp/diff_new_pack.AWVrpu/_new 2020-05-20 18:46:25.689412509 +0200 @@ -15,6 +15,6 @@ @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python - """ Driver to consume a Clang compilation database and invoke IWYU. - Example usage with CMake: + ##===--- iwyu_tool.py -===## + # ++ include-what-you-use-0.13.src.tar.gz -> include-what-you-use-0.14.src.tar.gz ++ 2633 lines of diff (skipped)
commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2020-04-10 23:54:09 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new.3248 (New) Package is "include-what-you-use" Fri Apr 10 23:54:09 2020 rev:9 rq:792943 version:0.13 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2019-11-25 00:08:33.695930164 +0100 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new.3248/include-what-you-use.changes 2020-04-10 23:54:41.532762125 +0200 @@ -1,0 +2,5 @@ +Fri Apr 10 11:20:39 UTC 2020 - Aaron Puchert + +- Use c++_compiler instead of clang to avoid dependence oddities. + +--- Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.YoblWs/_old 2020-04-10 23:54:42.164762588 +0200 +++ /var/tmp/diff_new_pack.YoblWs/_new 2020-04-10 23:54:42.168762591 +0200 @@ -1,7 +1,7 @@ # # spec file for package include-what-you-use # -# Copyright (c) 2019 SUSE LLC. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2019 Aaron Puchert. # # All modifications and additions to the file contributed by third parties @@ -30,7 +30,7 @@ Patch2: iwyu_include_picker.patch Patch3: remove-x86-specific-code.patch Patch4: link-llvm9.patch -BuildRequires: clang9 +BuildRequires: c++_compiler BuildRequires: clang9-devel BuildRequires: cmake BuildRequires: libstdc++-devel @@ -69,34 +69,12 @@ %patch4 -p1 %build -# Make _lto_cflags compatible with Clang, deactivate LTO where it doesn't work. -%ifnarch %{arm} -%define _lto_cflags "-flto=thin" -%else -%define _lto_cflags %{nil} -%endif - # Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc. rm gcc.libc.imp gcc.symbols.imp gcc.stl.headers.imp stl.c.headers.imp # This also obsoletes iwyu.gcc.imp. rm iwyu.gcc.imp -# Since Clang is built using Clang, use it here too. -%cmake \ --DCMAKE_C_COMPILER=clang \ --DCMAKE_CXX_COMPILER=clang++ \ --DCMAKE_AR=%{_bindir}/llvm-ar \ --DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \ --DIWYU_LLVM_ROOT_PATH=%{_libdir} \ -.. - -# ThinLTO uses multiple threads from the linker process for optimizations, which -# causes an extremely high lock contention on allocations due to MALLOC_CHECK_, -# so we deactivate it for compilation. The tests will have it activated again. -MALLOC_CHECK_BACK=$MALLOC_CHECK_ -unset MALLOC_CHECK_ -%make_jobs -MALLOC_CHECK_=$MALLOC_CHECK_BACK +%cmake -DIWYU_LLVM_ROOT_PATH=%{_libdir} .. %install %cmake_install
commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2019-11-25 00:08:28 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new.26869 (New) Package is "include-what-you-use" Mon Nov 25 00:08:28 2019 rev:8 rq:750467 version:0.13 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2019-11-03 12:27:30.337759857 +0100 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new.26869/include-what-you-use.changes 2019-11-25 00:08:33.695930164 +0100 @@ -1,0 +2,5 @@ +Sat Nov 16 20:32:01 UTC 2019 - Aaron Puchert + +- Deactivate ThinLTO on ARM: there are internal linker errors. + +--- Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.bm9bJX/_old 2019-11-25 00:08:35.471929922 +0100 +++ /var/tmp/diff_new_pack.bm9bJX/_new 2019-11-25 00:08:35.471929922 +0100 @@ -1,7 +1,7 @@ # # spec file for package include-what-you-use # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC. # Copyright (c) 2019 Aaron Puchert. # # All modifications and additions to the file contributed by third parties @@ -23,7 +23,7 @@ Summary:A tool to analyze #includes in C and C++ source files License:NCSA Group: Development/Languages/C and C++ -Url:https://include-what-you-use.org/ +URL:https://include-what-you-use.org/ Source0: https://include-what-you-use.org/downloads/%{name}-%{version}.src.tar.gz Source1:%{name}.1 Patch1: fix-shebang.patch @@ -69,8 +69,12 @@ %patch4 -p1 %build -# Make _lto_cflags compatible with Clang. +# Make _lto_cflags compatible with Clang, deactivate LTO where it doesn't work. +%ifnarch %{arm} %define _lto_cflags "-flto=thin" +%else +%define _lto_cflags %{nil} +%endif # Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc. rm gcc.libc.imp gcc.symbols.imp gcc.stl.headers.imp stl.c.headers.imp
commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2019-11-03 12:27:28 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new.2990 (New) Package is "include-what-you-use" Sun Nov 3 12:27:28 2019 rev:7 rq:744930 version:0.13 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2019-07-11 13:17:54.818776461 +0200 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new.2990/include-what-you-use.changes 2019-11-03 12:27:30.337759857 +0100 @@ -1,0 +2,18 @@ +Sat Nov 2 22:57:53 UTC 2019 - Aaron Puchert + +- Update to version 0.13, update LLVM/Clang to version 9. + * Improved handling of relative includes in mappings and pragmas + * Path normalization now collapses .. + * Improve --no_fwd_decls not to remove required forward declarations + * Improved handling of builtin templates + * Don't mark forward declarations final + * Tolerate using declarations in precompiled header + * Add script to generate Qt mappings, and new mappings for Qt 5.11 + * Use directory from compilation database if available + * Numerous documentation and build improvements +- Add section about pragma comments to man page. +- Add link-llvm9.patch to adapt to packaging changes in LLVM. +- Enable ThinLTO where possible. +- Drop support for SLE12. + +--- Old: include-what-you-use-0.12.src.tar.gz New: include-what-you-use-0.13.src.tar.gz link-llvm9.patch Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.ZJqXLF/_old 2019-11-03 12:27:30.949760620 +0100 +++ /var/tmp/diff_new_pack.ZJqXLF/_new 2019-11-03 12:27:30.953760624 +0100 @@ -2,7 +2,7 @@ # spec file for package include-what-you-use # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. -# Copyright (c) 2018 Aaron Puchert. +# Copyright (c) 2019 Aaron Puchert. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: include-what-you-use -Version:0.12 +Version:0.13 Release:0 Summary:A tool to analyze #includes in C and C++ source files License:NCSA @@ -29,14 +29,12 @@ Patch1: fix-shebang.patch Patch2: iwyu_include_picker.patch Patch3: remove-x86-specific-code.patch -BuildRequires: clang8 -BuildRequires: clang8-devel +Patch4: link-llvm9.patch +BuildRequires: clang9 +BuildRequires: clang9-devel BuildRequires: cmake -%if 0%{?sle_version} && 0%{?sle_version} <= 13 && !0%{?is_opensuse} -BuildRequires: gcc6 -BuildRequires: gcc6-c++ -%endif -BuildRequires: llvm8-devel +BuildRequires: libstdc++-devel +BuildRequires: llvm9-devel BuildRequires: python BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -68,24 +66,33 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build -%define _lto_cflags %{nil} +# Make _lto_cflags compatible with Clang. +%define _lto_cflags "-flto=thin" # Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc. rm gcc.libc.imp gcc.symbols.imp gcc.stl.headers.imp stl.c.headers.imp # This also obsoletes iwyu.gcc.imp. rm iwyu.gcc.imp -# Since Clang is built using Clang, use it here too. Except for SLES, where we -# need to use GCC 6 for some reason. (Otherwise there are segfaults.) -%if 0%{?sle_version} && 0%{?sle_version} <= 13 && !0%{?is_opensuse} -export CC=gcc-6 CXX=g++-6 -%else -export CC=clang CXX=clang++ -%endif -%cmake -DIWYU_LLVM_ROOT_PATH=%{_libdir} .. +# Since Clang is built using Clang, use it here too. +%cmake \ +-DCMAKE_C_COMPILER=clang \ +-DCMAKE_CXX_COMPILER=clang++ \ +-DCMAKE_AR=%{_bindir}/llvm-ar \ +-DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \ +-DIWYU_LLVM_ROOT_PATH=%{_libdir} \ +.. + +# ThinLTO uses multiple threads from the linker process for optimizations, which +# causes an extremely high lock contention on allocations due to MALLOC_CHECK_, +# so we deactivate it for compilation. The tests will have it activated again. +MALLOC_CHECK_BACK=$MALLOC_CHECK_ +unset MALLOC_CHECK_ %make_jobs +MALLOC_CHECK_=$MALLOC_CHECK_BACK %install %cmake_install ++ include-what-you-use-0.12.src.tar.gz -> include-what-you-use-0.13.src.tar.gz ++ 7943 lines of diff (skipped) ++ include-what-you-use.1 ++ --- /var/tmp/diff_new_pack.ZJqXLF/_old 2019-11-03 12:27:31.221760958 +0100 +++ /var/tmp/diff_new_pack.ZJqXLF/_new 2019-11-03 12:27:31.221760958 +0100 @@ -7,87 +7,89 @@ .\" NCSA Open Source
commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2019-07-11 13:17:38 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new.4615 (New) Package is "include-what-you-use" Thu Jul 11 13:17:38 2019 rev:6 rq:714306 version:0.12 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2019-06-25 22:22:30.397157523 +0200 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new.4615/include-what-you-use.changes 2019-07-11 13:17:54.818776461 +0200 @@ -1,0 +2,5 @@ +Tue Jul 9 10:19:25 UTC 2019 - Aaron Puchert + +- Disable LTO, because -flto= doesn't work with Clang. + +--- Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.g0Zmyo/_old 2019-07-11 13:17:55.318776303 +0200 +++ /var/tmp/diff_new_pack.g0Zmyo/_new 2019-07-11 13:17:55.318776303 +0200 @@ -70,6 +70,8 @@ %patch3 -p1 %build +%define _lto_cflags %{nil} + # Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc. rm gcc.libc.imp gcc.symbols.imp gcc.stl.headers.imp stl.c.headers.imp # This also obsoletes iwyu.gcc.imp.
commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2019-06-25 22:22:23 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new.4615 (New) Package is "include-what-you-use" Tue Jun 25 22:22:23 2019 rev:5 rq:711905 version:0.12 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2019-03-28 22:49:07.567049965 +0100 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new.4615/include-what-you-use.changes 2019-06-25 22:22:30.397157523 +0200 @@ -1,0 +2,22 @@ +Sun May 26 19:41:55 UTC 2019 - aaronpuch...@alice-dsl.net + +- Update to version 0.12, update LLVM/Clang to version 8. + * New command-line option: --keep to mirror IWYU pragma: keep + * New command-line option: --cxx17ns to suggest compact C++17 +nested namespaces + * Improve --no_fwd_decls to optimize for minimal number of +redeclarations + * Improved mappings for POSIX types and let mappings apply to +builtins as well + * More principled handling of explicit template instantiations + * Breaking change in iwyu_tool: extra args are no longer +automatically prefixed with -Xiwyu (so you can use them for +Clang args too) + * Better handling of template forward-decls in fix_includes. +- Run test suite in %check. +- Package license file and documentation. +- Remove unnecessary %defattr. +- Update man page. +- Rebase fix-shebang.patch. + +--- Old: include-what-you-use-0.11.src.tar.gz include-what-you-use.1.gz New: include-what-you-use-0.12.src.tar.gz include-what-you-use.1 Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.H6fmtx/_old 2019-06-25 22:22:30.941158269 +0200 +++ /var/tmp/diff_new_pack.H6fmtx/_new 2019-06-25 22:22:30.941158269 +0200 @@ -18,25 +18,26 @@ Name: include-what-you-use -Version:0.11 +Version:0.12 Release:0 Summary:A tool to analyze #includes in C and C++ source files License:NCSA Group: Development/Languages/C and C++ Url:https://include-what-you-use.org/ Source0: https://include-what-you-use.org/downloads/%{name}-%{version}.src.tar.gz -Source1:%{name}.1.gz +Source1:%{name}.1 Patch1: fix-shebang.patch Patch2: iwyu_include_picker.patch Patch3: remove-x86-specific-code.patch -BuildRequires: clang7 -BuildRequires: clang7-devel +BuildRequires: clang8 +BuildRequires: clang8-devel BuildRequires: cmake %if 0%{?sle_version} && 0%{?sle_version} <= 13 && !0%{?is_opensuse} BuildRequires: gcc6 BuildRequires: gcc6-c++ %endif -BuildRequires: llvm7-devel +BuildRequires: llvm8-devel +BuildRequires: python BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -71,8 +72,6 @@ %build # Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc. rm gcc.libc.imp gcc.symbols.imp gcc.stl.headers.imp stl.c.headers.imp -# The includes from third_party.imp probably only make sense in some code bases. -rm third_party.imp # This also obsoletes iwyu.gcc.imp. rm iwyu.gcc.imp @@ -89,16 +88,39 @@ %install %cmake_install -install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1.gz +install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1 + +%check +# We don't support MS style inline assembly, because we removed the dependency +# on the X86 target of LLVM. +rm tests/cxx/ms_inline_asm.cc + +# Test doesn't work on ARM. +%ifarch %arm +rm tests/cxx/badinc.cc +%endif + +# IWYU needs to find Clang's builtin headers. It looks for them relative to the +# binary (https://clang.llvm.org/docs/LibTooling.html#builtin-includes), but +# since it isn't installed into /usr/bin, it fails to find them. So we pass +# the directory manually to the executable, and because the test driver doesn't +# allow us to specify additional flags, we build a stub. +# Note that this isn't a problem for the installed package, because it will be +# in the same directory as the Clang binary. +export CLANG_BUILTIN_DIR=%{_libdir}/clang/%{_llvm_relver}/include +echo -e "#!/bin/bash\\nbuild/bin/include-what-you-use -isystem ${CLANG_BUILTIN_DIR} \$@" >iwyu-stub +chmod +x iwyu-stub +# We suppress stdout because it's pretty noisy. Failures are written to stderr. +./run_iwyu_tests.py -- ./iwyu-stub >/dev/null %files -%defattr(-, root, root, -) +%license LICENSE.TXT +%doc docs/* %{_bindir}/%{name} -%{_mandir}/man1/%{name}.1.gz +%{_mandir}/man1/%{name}.1%{ext_man} %{_datadir}/%{name}/ %files tools -%defattr(-, root,
commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2019-03-28 22:49:06 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new.25356 (New) Package is "include-what-you-use" Thu Mar 28 22:49:06 2019 rev:4 rq:689274 version:0.11 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2018-05-10 15:49:52.400222759 +0200 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new.25356/include-what-you-use.changes 2019-03-28 22:49:07.567049965 +0100 @@ -1,0 +2,20 @@ +Tue Dec 18 22:08:52 UTC 2018 - aaronpuch...@alice-dsl.net + +- Update to version 0.11, update LLVM/Clang to version 7. + * Improved recognition of template and specialization uses. + * Improved CMake build system, see docs for build instructions. + * Improved mappings for Boost, Intel intrinsics and libstdc++. + * Several bug fixes and improvements. + * Add --basedir argument to interpret IWYU output from another +source tree. + * Handle namespaces better. + * Add --only_re switch to filter affected files. + * Add --reorder/--noreorder switch to toggle reordering of +includes. +- Drop obsolete llvm-link.patch. +- Rebase iwyu_include_picker.patch. +- Update man page, sort options alphabetically. +- Remove runtime dependency on clang - the builtin headers are now + included in libclang. + +--- Old: include-what-you-use-0.10.src.tar.gz llvm-link.patch New: include-what-you-use-0.11.src.tar.gz Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.KWPj4i/_old 2019-03-28 22:49:08.103049868 +0100 +++ /var/tmp/diff_new_pack.KWPj4i/_new 2019-03-28 22:49:08.103049868 +0100 @@ -1,7 +1,7 @@ # # spec file for package include-what-you-use # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 Aaron Puchert. # # All modifications and additions to the file contributed by third parties @@ -13,12 +13,12 @@ # 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/ # Name: include-what-you-use -Version:0.10 +Version:0.11 Release:0 Summary:A tool to analyze #includes in C and C++ source files License:NCSA @@ -26,20 +26,17 @@ Url:https://include-what-you-use.org/ Source0: https://include-what-you-use.org/downloads/%{name}-%{version}.src.tar.gz Source1:%{name}.1.gz -Patch0: llvm-link.patch Patch1: fix-shebang.patch Patch2: iwyu_include_picker.patch Patch3: remove-x86-specific-code.patch -BuildRequires: clang6 -BuildRequires: clang6-devel +BuildRequires: clang7 +BuildRequires: clang7-devel BuildRequires: cmake %if 0%{?sle_version} && 0%{?sle_version} <= 13 && !0%{?is_opensuse} BuildRequires: gcc6 BuildRequires: gcc6-c++ %endif -BuildRequires: llvm6-devel -# We need the compiler-specific headers in /usr/lib64/clang/. -Requires: clang6 +BuildRequires: llvm7-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -67,7 +64,6 @@ %prep %setup -q -n %{name} -%patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 ++ fix-shebang.patch ++ --- /var/tmp/diff_new_pack.KWPj4i/_old 2019-03-28 22:49:08.123049864 +0100 +++ /var/tmp/diff_new_pack.KWPj4i/_new 2019-03-28 22:49:08.123049864 +0100 @@ -16,5 +16,5 @@ -#!/usr/bin/env python +#!/usr/bin/python - """ Driver to consume a Clang compilation database and invoke IWYU. + from __future__ import print_function ++ include-what-you-use-0.10.src.tar.gz -> include-what-you-use-0.11.src.tar.gz ++ 17843 lines of diff (skipped) ++ include-what-you-use.1.gz ++ --- /var/tmp/diff_new_pack.KWPj4i/_old 2019-03-28 22:49:08.459049803 +0100 +++ /var/tmp/diff_new_pack.KWPj4i/_new 2019-03-28 22:49:08.459049803 +0100 @@ -61,9 +61,21 @@ .BI --mapping_file= filename Use the given mapping file. .TP +.B --max_line_length +Maximum line length for includes. +Note that this only affects the comments and their alignment, the maximum line +length can still be exceeded with long filenames (default: 80). +.TP +.B --no_comments +Do not add comments after includes about which symbols the header was required +for. +.TP .B --no_default_mappings Do not use the default mappings. .TP +.B --no_fwd_decls +Do not use
commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2018-05-10 15:49:50 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new (New) Package is "include-what-you-use" Thu May 10 15:49:50 2018 rev:3 rq:605646 version:0.10 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2018-03-19 23:40:43.684267225 +0100 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new/include-what-you-use.changes 2018-05-10 15:49:52.400222759 +0200 @@ -1,0 +2,13 @@ +Tue May 8 21:49:09 UTC 2018 - aaronpuch...@alice-dsl.net + +- Update to version 0.10, update LLVM/Clang to version 6. + * Add --no_fwd_decls option to avoid replacing includes with +forward-declarations. + * Treat definitions of free functions as uses of the +corresponding prototypes. + * Support C++11 range-for loops. + * Several template misattribution bugs fixed. + * Better support for non-ASCII encodings in fix_includes.py. + * Remove support for VCS commands from fix_includes.py. + +--- Old: include-what-you-use-0.9.src.tar.gz New: include-what-you-use-0.10.src.tar.gz Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.sMXkVV/_old 2018-05-10 15:49:53.188193879 +0200 +++ /var/tmp/diff_new_pack.sMXkVV/_new 2018-05-10 15:49:53.188193879 +0200 @@ -18,7 +18,7 @@ Name: include-what-you-use -Version:0.9 +Version:0.10 Release:0 Summary:A tool to analyze #includes in C and C++ source files License:NCSA @@ -30,16 +30,16 @@ Patch1: fix-shebang.patch Patch2: iwyu_include_picker.patch Patch3: remove-x86-specific-code.patch -BuildRequires: clang5 -BuildRequires: clang5-devel +BuildRequires: clang6 +BuildRequires: clang6-devel BuildRequires: cmake %if 0%{?sle_version} && 0%{?sle_version} <= 13 && !0%{?is_opensuse} BuildRequires: gcc6 BuildRequires: gcc6-c++ %endif -BuildRequires: llvm5-devel +BuildRequires: llvm6-devel # We need the compiler-specific headers in /usr/lib64/clang/. -Requires: clang5 +Requires: clang6 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ++ include-what-you-use-0.9.src.tar.gz -> include-what-you-use-0.10.src.tar.gz ++ 2076 lines of diff (skipped) ++ include-what-you-use.1.gz ++ --- /var/tmp/diff_new_pack.sMXkVV/_old 2018-05-10 15:49:53.456184057 +0200 +++ /var/tmp/diff_new_pack.sMXkVV/_new 2018-05-10 15:49:53.460183910 +0200 @@ -7,7 +7,7 @@ .\" License as specified in the file COPYING that comes with the .\" man-db distribution. .\" -.TH include-what-you-use 1 "2018-02-19" include-what-you-use "User Manuals" +.TH include-what-you-use 1 "2018-05-08" include-what-you-use "User Manuals" .SH NAME include-what-you-use \- Analyze includes in C and C++ source files. .SH SYNOPSIS @@ -107,6 +107,9 @@ Do not add comments after includes about which symbols the header was required for. .TP +.B --no_fwd_decls +Do not use forward declarations, and instead always include the required header. +.TP .BI --verbose= level Set verbosity. At the highest level, this will dump the AST of the source file and explain all decisions. ++ iwyu_include_picker.patch ++ --- /var/tmp/diff_new_pack.sMXkVV/_old 2018-05-10 15:49:53.484183031 +0200 +++ /var/tmp/diff_new_pack.sMXkVV/_new 2018-05-10 15:49:53.484183031 +0200 @@ -329,7 +329,7 @@ { "", kPrivate, "", kPublic }, { "", kPrivate, "", kPublic }, { "", kPrivate, "", kPublic }, -@@ -618,101 +739,85 @@ const IncludeMapEntry libstdcpp_include_map[] = { +@@ -618,99 +739,85 @@ const IncludeMapEntry libstdcpp_include_map[] = { { "", kPrivate, "", kPublic }, { "", kPrivate, "", kPublic }, { "", kPrivate, "", kPublic }, @@ -382,9 +382,7 @@ - { "", kPrivate, "", kPublic }, - { "", kPrivate, "", kPublic }, - { "", kPrivate, "", kPublic }, -- // This didn't come from the grep, but seems to be where swap() -- // is defined? -- { "", kPrivate, "", kPublic }, // for swap<>() +- { "", kPrivate, "", kPublic }, - // Hash and hashtable-based containers. - { "", kPrivate, "", kPublic }, - { "", kPrivate, "", kPublic }, @@ -476,7 +474,7 @@ // and carefully picked reasonable-looking results (algorithm // *uses* pair but doesn't *re-export* pair, for instance). { "", kPrivate, -@@ -751,14 +856,19 @@ const IncludeMapEntry libstdcpp_include_map[] = { +@@ -749,14 +856,19 @@ const IncludeMapEntry libstdcpp_include_map[] = { { "", kPrivate, "", kPublic },
commit include-what-you-use for openSUSE:Factory
Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2018-03-19 23:40:19 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new (New) Package is "include-what-you-use" Mon Mar 19 23:40:19 2018 rev:2 rq:588707 version:0.9 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2018-02-24 16:38:49.962630249 +0100 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new/include-what-you-use.changes 2018-03-19 23:40:43.684267225 +0100 @@ -1,0 +2,11 @@ +Sat Mar 17 16:28:32 UTC 2018 - aaronpuch...@alice-dsl.net + +- Make tools package "noarch", since it contains only scripts. + +--- +Thu Mar 15 20:12:47 UTC 2018 - aaronpuch...@alice-dsl.net + +- Use tarball from website, where it is now available. + There should be no functional change. + +--- Old: clang_5.0.tar.gz New: include-what-you-use-0.9.src.tar.gz Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.7AJhhu/_old 2018-03-19 23:40:44.968220908 +0100 +++ /var/tmp/diff_new_pack.7AJhhu/_new 2018-03-19 23:40:44.968220908 +0100 @@ -1,6 +1,7 @@ # # spec file for package include-what-you-use # +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 Aaron Puchert. # # All modifications and additions to the file contributed by third parties @@ -15,8 +16,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%define clang_ver clang_5.0 -%define commitshort 15b3f1d Name: include-what-you-use Version:0.9 @@ -25,7 +24,7 @@ License:NCSA Group: Development/Languages/C and C++ Url:https://include-what-you-use.org/ -Source0:https://github.com/%{name}/%{name}/archive/%{clang_ver}.tar.gz +Source0: https://include-what-you-use.org/downloads/%{name}-%{version}.src.tar.gz Source1:%{name}.1.gz Patch0: llvm-link.patch Patch1: fix-shebang.patch @@ -60,22 +59,20 @@ Summary:Additional tools to use %{name} effectively Group: Development/Languages/C and C++ Requires: %{name} = %{version}-%{release} +BuildArch: noarch %description tools This package contains additional scripts for using %{name} as automated refactoring tool. %prep -%setup -q -n %{name}-%{clang_ver} +%setup -q -n %{name} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build -# Set git hash -sed -i "s,\${IWYU_GIT_REV},%{commitshort},g" CMakeLists.txt - # Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc. rm gcc.libc.imp gcc.symbols.imp gcc.stl.headers.imp stl.c.headers.imp # The includes from third_party.imp probably only make sense in some code bases.