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 - [email protected]
+
+- 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} <= 130000 && !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, root, -)
%{_bindir}/*.py
%changelog
++++++ fix-shebang.patch ++++++
--- /var/tmp/diff_new_pack.H6fmtx/_old 2019-06-25 22:22:30.973158313 +0200
+++ /var/tmp/diff_new_pack.H6fmtx/_new 2019-06-25 22:22:30.973158313 +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.
- from __future__ import print_function
-
+ Example usage with CMake:
++++++ include-what-you-use-0.11.src.tar.gz ->
include-what-you-use-0.12.src.tar.gz ++++++
++++ 3567 lines of diff (skipped)
++++++ include-what-you-use.1 ++++++
--- /var/tmp/diff_new_pack.H6fmtx/_old 2019-06-25 22:22:31.233158670 +0200
+++ /var/tmp/diff_new_pack.H6fmtx/_new 2019-06-25 22:22:31.233158670 +0200
@@ -1,13 +1,13 @@
.\" t -*- coding: UTF-8 -*-
.\" Man page for include-what-you-use
.\"
-.\" Copyright (C) 2018 Aaron Puchert based on the built-in documentation.
+.\" Copyright (C) 2019 Aaron Puchert based on the built-in documentation.
.\"
-.\" You may distribute under the terms of the GNU General Public
-.\" License as specified in the file COPYING that comes with the
-.\" man-db distribution.
+.\" You may distribute under the terms of the University of Illinois/
+.\" NCSA Open Source License as specified in the file LICENSE.TXT that
+.\" comes with the software.
.\"
-.TH include-what-you-use 1 "2018-05-08" include-what-you-use "User Manuals"
+.TH include-what-you-use 1 "2019-05-25" include-what-you-use "User Manuals"
.SH NAME
include-what-you-use \- Analyze includes in C and C++ source files.
.SH SYNOPSIS
@@ -47,16 +47,13 @@
and associated header files).
This flag may be specified multiple times to specify multiple glob patterns.
.TP
-.BI --cwd= dir
-Set current working directory.
+.B --cxx17ns
+Suggest the more concise syntax for nested namespaces introduced in C++17.
.TP
-.BR --howtodebug [ =\fIfilename ]
-Without argument, prints instructions on how to run
-.B include-what-you-use
-under
-.BR gdb (1)
-for the input file, and exits. With argument, prints only when input file
-matches the argument.
+.BI --keep= glob
+Always keep the includes matched by
+.IR glob .
+This flag may be used multiple times to specify more than one glob pattern.
.TP
.BI --mapping_file= filename
Use the given mapping file.