commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2026-04-28 11:59:02
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.11940 (New)
Package is "include-what-you-use"
Tue Apr 28 11:59:02 2026 rev:25 rq:1349675 version:0.26
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2025-09-29 16:34:28.472073420 +0200
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.11940/include-what-you-use.changes
2026-04-28 12:02:50.765643518 +0200
@@ -1,0 +2,15 @@
+Sun Apr 26 21:00:08 UTC 2026 - Aaron Puchert
+
+- Update to version 0.26, update LLVM/Clang to version 22.
+ * Many improvements around the understanding of types,
+particularly templates.
+ * Improve handling of builtin type traits.
+ * Add support for distinguishing function overloads and template
+specializations in mappings.
+ * Add mapping generator for Windows.h.
+ * Add mapping generator for portable C++ standard library
+symbols.
+ * Improve libc, libc++ and POSIX mappings.
+- Rebase iwyu_include_picker.patch.
+
+---
Old:
include-what-you-use-0.25.src.tar.gz
New:
include-what-you-use-0.26.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.lt0oX6/_old 2026-04-28 12:02:51.341667380 +0200
+++ /var/tmp/diff_new_pack.lt0oX6/_new 2026-04-28 12:02:51.341667380 +0200
@@ -1,8 +1,7 @@
#
# spec file for package include-what-you-use
#
-# Copyright (c) 2025 SUSE LLC and contributors
-# Copyright (c) 2025 Aaron Puchert.
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +16,10 @@
#
-%define _llvm_version 21
+%define _llvm_version 22
Name: include-what-you-use
-Version:0.25
+Version:0.26
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
@@ -66,10 +65,14 @@
%prep
%autosetup -p1 -n %{name}
-sed -i s#lib/#lib\${LLVM_LIBDIR_SUFFIX}/#g CMakeLists.txt
%build
-%cmake -DIWYU_LLVM_ROOT_PATH=%{_libdir} \
+# We build static libraries because they're internal to the build and not
+# installed. (They're used for testing only.)
+%cmake \
+-DBUILD_SHARED_LIBS:BOOL=OFF \
+-DBUILD_STATIC_LIBS:BOOL=ON \
+-DIWYU_LLVM_ROOT_PATH=%{_libdir} \
-DCMAKE_SKIP_RPATH:BOOL=ON \
%if %{suse_version} <= 1500
-DPython3_EXECUTABLE=%{_bindir}/python3.11 \
@@ -87,6 +90,12 @@
%global exclude_tests %exclude_tests|cxx.test_badinc
%endif
+# On 32-bit architectures, some tests fail because "operator new" takes
+# unsigned int instead of unsigned long.
+%ifarch %arm i586
+%global exclude_tests %exclude_tests|cxx.test_(fn_def_args|placement_new)
+%endif
+
# Fails with older versions of libstdc++ (at least <= 7, maybe more) with error
# "type 'const std::hash' does not provide a call operator".
# Fails with newer versions of libstc++ with error "static assertion failed due
@@ -96,7 +105,11 @@
%global exclude_tests %exclude_tests|cxx.test_precomputed_tpl_args(|_cpp14)
%endif
+# On Leap 15 some tests sporadically fail with "Cannot open mapping file
+# '[...]': Cannot allocate memory." Reason is unclear.
+%if %{suse_version} >= 1600
%{ctest '-E' '^(%exclude_tests)$'}
+%endif
%files
%license LICENSE.TXT
++ include-what-you-use-0.25.src.tar.gz ->
include-what-you-use-0.26.src.tar.gz ++
45002 lines of diff (skipped)
++ iwyu_include_picker.patch ++
--- /var/tmp/diff_new_pack.lt0oX6/_old 2026-04-28 12:02:52.389710796 +0200
+++ /var/tmp/diff_new_pack.lt0oX6/_new 2026-04-28 12:02:52.421712123 +0200
@@ -1,8 +1,8 @@
diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc
-index fdb7364..1aa49f5 100644
+index 72cb6cb..5bb8ddc 100644
--- a/iwyu_include_picker.cc
+++ b/iwyu_include_picker.cc
-@@ -82,14 +82,14 @@ struct IncludeMapEntry { // A POD so we can make the
input static
+@@ -86,14 +86,14 @@ struct IncludeMapEntry { // A POD so we can make the
input static
namespace {
// Listed below are all IWYU's native symbol and include mappings,
@@ -19,10 +19,10 @@
// I ignored all entries that only appeared once on the list (eg uint32_t).
// I then added in NULL, which according to [diff.null] C.2.2.3, can
// be defined in , , , ,
-@@ -339,6 +339,23 @@ const IncludeMapEntry stdlib_cxx_symbol_map[] = {
- { "std::size_t", kPrivate, "", kPublic
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2025-09-29 16:32:15
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.11973 (New)
Package is "include-what-you-use"
Mon Sep 29 16:32:15 2025 rev:24 rq:1307511 version:0.25
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2025-07-14 10:57:41.739538919 +0200
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.11973/include-what-you-use.changes
2025-09-29 16:34:28.472073420 +0200
@@ -1,0 +2,14 @@
+Sat Sep 27 21:43:00 UTC 2025 - Aaron Puchert
+
+- Update to version 0.25, update LLVM/Clang to version 21.
+ * Add support for GNU __cleanup__ attribute.
+ * Improved handling of member pointers.
+ * Improved reporting of C arrays.
+ * Much improved understanding of builtin type traits.
+ * New --export_mappings option to generate external mappings from
+internal (breaking change).
+ * New --exclude option to skip individual source files.
+ * Improved libc and POSIX mappings.
+- Rebase iwyu_include_picker.patch.
+
+---
Old:
include-what-you-use-0.24.src.tar.gz
New:
include-what-you-use-0.25.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.YVVncu/_old 2025-09-29 16:34:28.992095313 +0200
+++ /var/tmp/diff_new_pack.YVVncu/_new 2025-09-29 16:34:28.992095313 +0200
@@ -1,7 +1,7 @@
#
# spec file for package include-what-you-use
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 Aaron Puchert.
#
# All modifications and additions to the file contributed by third parties
@@ -17,10 +17,10 @@
#
-%define _llvm_version 20
+%define _llvm_version 21
Name: include-what-you-use
-Version:0.24
+Version:0.25
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
@@ -69,11 +69,6 @@
sed -i s#lib/#lib\${LLVM_LIBDIR_SUFFIX}/#g CMakeLists.txt
%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
-# This also obsoletes iwyu.gcc.imp.
-rm iwyu.gcc.imp
-
%cmake -DIWYU_LLVM_ROOT_PATH=%{_libdir} \
-DCMAKE_SKIP_RPATH:BOOL=ON \
%if %{suse_version} <= 1500
++ include-what-you-use-0.24.src.tar.gz ->
include-what-you-use-0.25.src.tar.gz ++
10812 lines of diff (skipped)
++ iwyu_include_picker.patch ++
--- /var/tmp/diff_new_pack.YVVncu/_old 2025-09-29 16:34:29.648122932 +0200
+++ /var/tmp/diff_new_pack.YVVncu/_new 2025-09-29 16:34:29.656123268 +0200
@@ -1,8 +1,8 @@
diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc
-index 126e215..98b5ea0 100644
+index fdb7364..1aa49f5 100644
--- a/iwyu_include_picker.cc
+++ b/iwyu_include_picker.cc
-@@ -78,14 +78,14 @@ struct IncludeMapEntry { // A POD so we can make the
input static
+@@ -82,14 +82,14 @@ struct IncludeMapEntry { // A POD so we can make the
input static
namespace {
// Listed below are all IWYU's native symbol and include mappings,
@@ -19,7 +19,7 @@
// I ignored all entries that only appeared once on the list (eg uint32_t).
// I then added in NULL, which according to [diff.null] C.2.2.3, can
// be defined in , , , ,
-@@ -271,6 +271,23 @@ const IncludeMapEntry stdlib_cxx_symbol_map[] = {
+@@ -339,6 +339,23 @@ const IncludeMapEntry stdlib_cxx_symbol_map[] = {
{ "std::size_t", kPrivate, "", kPublic },
{ "std::size_t", kPrivate, "", kPublic },
{ "std::size_t", kPrivate, "", kPublic },
@@ -43,7 +43,7 @@
};
// Symbol -> include mappings for GNU libstdc++
-@@ -281,51 +298,63 @@ const IncludeMapEntry libstdcpp_symbol_map[] = {
+@@ -349,51 +366,63 @@ const IncludeMapEntry libstdcpp_symbol_map[] = {
const IncludeMapEntry libc_include_map[] = {
// Private -> public include mappings for GNU libc
@@ -59,18 +59,18 @@
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
+ { "", kPrivate, "", kPublic },
-+ { "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
++ { "", kPrivate, "", kPublic },
+ { "", kPrivate, "", kPublic },
+ { "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
+ { "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
+ { "", kPrivate, "", kP
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2025-04-07 17:37:34
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.1907 (New)
Package is "include-what-you-use"
Mon Apr 7 17:37:34 2025 rev:22 rq:1267431 version:0.24
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2024-11-15 15:43:49.451884046 +0100
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.1907/include-what-you-use.changes
2025-04-07 17:37:51.931957018 +0200
@@ -1,0 +2,10 @@
+Sun Apr 6 15:53:59 UTC 2025 - Aaron Puchert
+
+- Update to version 0.24, update LLVM/Clang to version 20.
+ * Improve handling of type traits.
+ * Improve type analysis for some edge cases.
+ * Improve libstdc++ mappings.
+ * Implement --quoted_includes_first.
+- Rebase iwyu_include_picker.patch.
+
+---
Old:
include-what-you-use-0.23.src.tar.gz
New:
include-what-you-use-0.24.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.90ZkiJ/_old 2025-04-07 17:37:52.395976430 +0200
+++ /var/tmp/diff_new_pack.90ZkiJ/_new 2025-04-07 17:37:52.395976430 +0200
@@ -1,8 +1,8 @@
#
# spec file for package include-what-you-use
#
-# Copyright (c) 2024 SUSE LLC
-# Copyright (c) 2023 Aaron Puchert.
+# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 Aaron Puchert.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,10 @@
#
-%define _llvm_version 19
+%define _llvm_version 20
Name: include-what-you-use
-Version:0.23
+Version:0.24
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
++ include-what-you-use-0.23.src.tar.gz ->
include-what-you-use-0.24.src.tar.gz ++
3023 lines of diff (skipped)
++ iwyu_include_picker.patch ++
--- /var/tmp/diff_new_pack.90ZkiJ/_old 2025-04-07 17:37:52.695988980 +0200
+++ /var/tmp/diff_new_pack.90ZkiJ/_new 2025-04-07 17:37:52.699989147 +0200
@@ -1,5 +1,5 @@
diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc
-index 1cbed6b..11a35f0 100644
+index 126e215..98b5ea0 100644
--- a/iwyu_include_picker.cc
+++ b/iwyu_include_picker.cc
@@ -78,14 +78,14 @@ struct IncludeMapEntry { // A POD so we can make the
input static
@@ -478,66 +478,15 @@
//
// Do not edit!
const IncludeMapEntry libstdcpp_include_map[] = {
-@@ -668,6 +837,8 @@ const IncludeMapEntry libstdcpp_include_map[] = {
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
-+ { "", kPrivate, "", kPublic },
-+ { "", kPrivate, "", kPublic },
- { "", kPrivate, "",
kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
-@@ -680,17 +851,12 @@ const IncludeMapEntry libstdcpp_include_map[] = {
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
-+ { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
-- { "", kPrivate, "", kPublic },
-- { "", kPrivate, "", kPublic },
-- { "", kPrivate, "", kPublic },
-- { "", kPrivate, "", kPublic },
-- { "", kPrivate, "", kPublic },
-- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "",
kPublic },
- { "", kPrivate, "", kPublic },
-@@ -708,6 +874,7 @@ const IncludeMapEntry libstdcpp_include_map[] = {
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
-+ { "", kPrivate, "", kPublic },
- { "", kPrivate, "", kPublic },
- { "", kPrivate,
"", kPublic },
- { "", kPrivate, "",
kPublic },
-@@ -755,16 +922,20 @@ const IncludeMapEntry libstdcpp_include_map[] = {
- // Private-to-private #include mappings.
- { "", kPrivate, "",
kPrivate },
- { "", kPrivate, "",
kPrivate },
-+ { "", kPrivate, "", kPrivate },
- { "", kPrivate, "", kPrivate },
- { "", kPrivate, "", kPrivate },
- { "", kPrivate, "", kPrivate },
- { "", kPrivate, "", kPrivate },
-+ { "", kPrivate, "", kPrivate },
-+ { "", kPrivate, "", kPrivate },
-+ { "", kPrivate, "", kPrivate },
+@@ -713,9 +882,8 @@ const IncludeMapEntry libstdcpp_include_map[] = {
{ "", kPrivate, "", kPrivate },
{ "", kPrivate, "", kPrivate },
{ "", kPrivate, "", kPrivat
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2023-11-09 21:34:46
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.17445 (New)
Package is "include-what-you-use"
Thu Nov 9 21:34:46 2023 rev:18 rq:1124310 version:0.21
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2023-04-05 21:35:17.286442797 +0200
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.17445/include-what-you-use.changes
2023-11-09 21:35:04.660176363 +0100
@@ -1,0 +2,17 @@
+Wed Nov 8 22:44:57 UTC 2023 - Aaron Puchert
+
+- Update to version 0.21, update LLVM/Clang to version 17.
+ * Improve analysis of type aliases (typedef and using).
+ * Improve analysis of namespace aliases (namespace xyz = foobar).
+ * Improve support for elaborated forward declarations
+(typedef struct Foo Bar).
+ * Improve handling of "autocast" and function return types,
+particularly with complex template types.
+ * Add new IWYU pragma: always_keep, which lets a header announce
+that it should always be kept wherever included.
+ * Automatically use builtin libc++ mappings if libc++ is the
+active standard library.
+ * Improve mappings for libc++ and posix headers.
+- Rebase iwyu_include_picker.patch.
+
+---
Old:
include-what-you-use-0.20.src.tar.gz
New:
include-what-you-use-0.21.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.muwHLz/_old 2023-11-09 21:35:05.348201717 +0100
+++ /var/tmp/diff_new_pack.muwHLz/_new 2023-11-09 21:35:05.348201717 +0100
@@ -17,10 +17,10 @@
#
-%define _llvm_version 16
+%define _llvm_version 17
Name: include-what-you-use
-Version:0.20
+Version:0.21
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
++ include-what-you-use-0.20.src.tar.gz ->
include-what-you-use-0.21.src.tar.gz ++
4990 lines of diff (skipped)
++ iwyu_include_picker.patch ++
--- /var/tmp/diff_new_pack.muwHLz/_old 2023-11-09 21:35:05.668213510 +0100
+++ /var/tmp/diff_new_pack.muwHLz/_new 2023-11-09 21:35:05.672213657 +0100
@@ -1,8 +1,8 @@
diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc
-index 638bf3f..bc0b0a1 100644
+index 22dbe15..7e6480c 100644
--- a/iwyu_include_picker.cc
+++ b/iwyu_include_picker.cc
-@@ -72,14 +72,14 @@ struct IncludeMapEntry { // A POD so we can make the
input static
+@@ -73,14 +73,14 @@ struct IncludeMapEntry { // A POD so we can make the
input static
namespace {
// Listed below are all IWYU's native symbol and include mappings,
@@ -19,7 +19,7 @@
// I ignored all entries that only appeared once on the list (eg uint32_t).
// I then added in NULL, which according to [diff.null] C.2.2.3, can
// be defined in , , , ,
-@@ -372,6 +372,23 @@ const IncludeMapEntry stdlib_cxx_symbol_map[] = {
+@@ -271,6 +271,23 @@ const IncludeMapEntry stdlib_cxx_symbol_map[] = {
{ "std::size_t", kPrivate, "", kPublic },
{ "std::size_t", kPrivate, "", kPublic },
{ "std::size_t", kPrivate, "", kPublic },
@@ -43,7 +43,7 @@
};
// Symbol -> include mappings for GNU libstdc++
-@@ -379,51 +396,63 @@ const IncludeMapEntry libstdcpp_symbol_map[] = {};
+@@ -281,51 +298,63 @@ const IncludeMapEntry libstdcpp_symbol_map[] = {
const IncludeMapEntry libc_include_map[] = {
// Private -> public include mappings for GNU libc
@@ -120,7 +120,7 @@
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPrivate },
-@@ -432,66 +461,107 @@ const IncludeMapEntry libc_include_map[] = {
+@@ -334,66 +363,107 @@ const IncludeMapEntry libc_include_map[] = {
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
@@ -252,7 +252,7 @@
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
-@@ -500,61 +570,155 @@ const IncludeMapEntry libc_include_map[] = {
+@@ -402,61 +472,155 @@ const IncludeMapEntry libc_include_map[] = {
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
@@ -424,7 +424,7 @@
// Top-level #includes that just forward to another file:
// $ for i in /usr/include/*; do [ -f $i ] && [ `wc -l < $i` = 1 ] && echo
$i; done
// (poll.h, syscall.h, syslog.h, ustat.h, wait.h).
-@@ -571,8 +735,9 @@ const IncludeMapEntry libc_include_map[] = {
+@@ -473,8 +637,9 @@ const In
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2023-04-05 21:27:22
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.19717 (New)
Package is "include-what-you-use"
Wed Apr 5 21:27:22 2023 rev:17 rq:1077380 version:0.20
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2023-01-29 14:29:35.685162065 +0100
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.19717/include-what-you-use.changes
2023-04-05 21:35:17.286442797 +0200
@@ -1,0 +2,14 @@
+Tue Apr 4 21:14:23 UTC 2023 - Aaron Puchert
+
+- Update to version 0.20, update LLVM/Clang to version 16.
+ * Support `IWYU pragma: export` for forward-declarations.
+ * Silently break cycles in mappings instead of crashing.
+ * Require full type inside `typeid`.
+ * Improve template reporting and resugaring.
+ * Improve reporting of explicit template instantiations.
+ * Fix a few crashes.
+ * Improve logging (many small fixes).
+ * Abandon python2 for scripts in favor of python3.
+- Rebase fix-shebang.patch and iwyu_include_picker.patch.
+
+---
Old:
include-what-you-use-0.19.src.tar.gz
New:
include-what-you-use-0.20.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.qfsPbr/_old 2023-04-05 21:35:17.714445240 +0200
+++ /var/tmp/diff_new_pack.qfsPbr/_new 2023-04-05 21:35:17.718445263 +0200
@@ -1,8 +1,8 @@
#
# spec file for package include-what-you-use
#
-# Copyright (c) 2022 SUSE LLC
-# Copyright (c) 2022 Aaron Puchert.
+# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2023 Aaron Puchert.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,10 @@
#
-%define _llvm_version 15
+%define _llvm_version 16
Name: include-what-you-use
-Version:0.19
+Version:0.20
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
++ fix-shebang.patch ++
--- /var/tmp/diff_new_pack.qfsPbr/_old 2023-04-05 21:35:17.746445423 +0200
+++ /var/tmp/diff_new_pack.qfsPbr/_new 2023-04-05 21:35:17.750445446 +0200
@@ -3,8 +3,8 @@
--- a/fix_includes.py
+++ b/fix_includes.py
@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/python
+-#!/usr/bin/env python3
++#!/usr/bin/python3
##===--- fix_includes.py - rewrite source files based on iwyu output
--===##
#
@@ -13,8 +13,8 @@
--- a/iwyu_tool.py
+++ b/iwyu_tool.py
@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/python
+-#!/usr/bin/env python3
++#!/usr/bin/python3
##===--- iwyu_tool.py
-===##
#
++ include-what-you-use-0.19.src.tar.gz ->
include-what-you-use-0.20.src.tar.gz ++
5760 lines of diff (skipped)
++ iwyu_include_picker.patch ++
--- /var/tmp/diff_new_pack.qfsPbr/_old 2023-04-05 21:35:18.098447432 +0200
+++ /var/tmp/diff_new_pack.qfsPbr/_new 2023-04-05 21:35:18.102447455 +0200
@@ -1,5 +1,5 @@
diff --git a/iwyu_include_picker.cc b/iwyu_include_picker.cc
-index 9862115..6515080 100644
+index 638bf3f..bc0b0a1 100644
--- a/iwyu_include_picker.cc
+++ b/iwyu_include_picker.cc
@@ -72,14 +72,14 @@ struct IncludeMapEntry { // A POD so we can make the
input static
@@ -19,7 +19,7 @@
// I ignored all entries that only appeared once on the list (eg uint32_t).
// I then added in NULL, which according to [diff.null] C.2.2.3, can
// be defined in , , , ,
-@@ -372,55 +372,84 @@ const IncludeMapEntry libstdcpp_symbol_map[] = {
+@@ -372,6 +372,23 @@ const IncludeMapEntry stdlib_cxx_symbol_map[] = {
{ "std::size_t", kPrivate, "", kPublic },
{ "std::size_t", kPrivate, "", kPublic },
{ "std::size_t", kPrivate, "", kPublic },
@@ -42,6 +42,9 @@
+ { "std::wfstream", kPrivate, "", kPublic },
};
+ // Symbol -> include mappings for GNU libstdc++
+@@ -379,51 +396,63 @@ const IncludeMapEntry libstdcpp_symbol_map[] = {};
+
const IncludeMapEntry libc_include_map[] = {
// Private -> public include mappings for GNU libc
- // ( cd /usr/include && grep '^ *# *include' {sys/,net/,}* | perl -nle
'm/^([^:]+).*<([^>]+)>/ && print qq@{ "<$2>", kPrivate, "<$1>", kPublic
},@' | grep bits/ | sort )
@@ -117,7 +120,7 @@
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPublic },
{ "", kPrivate, "", kPrivate },
-@@ -429,66 +458,107 @@ const IncludeMapEntry libc_include_map[] = {
+@@ -432,66
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package include-what-you-use for openSUSE:Factory checked in at 2023-01-29 14:11:18 Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old) and /work/SRC/openSUSE:Factory/.include-what-you-use.new.32243 (New) Package is "include-what-you-use" Sun Jan 29 14:11:18 2023 rev:16 rq:1061822 version:0.19 Changes: --- /work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes 2022-12-06 14:25:18.734617613 +0100 +++ /work/SRC/openSUSE:Factory/.include-what-you-use.new.32243/include-what-you-use.changes 2023-01-29 14:29:35.685162065 +0100 @@ -1,0 +2,19 @@ +Sat Jan 28 22:28:52 UTC 2023 - Aaron Puchert + +- Update to version 0.19, update LLVM/Clang to version 15. + * New `--comment_style` option to control verbosity of 'why' +comments. + * New `--regex` option to select regex dialect. + * Add support for regex replacement in mappings. + * Add `begin_keep`/`end_keep` pragmas for protecting ranges of +includes or forward-declares. + * Fix several crash bugs for unusual inputs. + * More exhaustive handling of type aliases and enums. + * Recognize IWYU pragmas in CRLF source files. + * Respect configured toolchain on macOS (and overrides via +`-nostdinc++` + `-isystem`). + * In fix_includes.py, recognize namespace alias declarations. + * Improve mappings for POSIX and libc headers. +- Update iwyu_include_picker.patch. + +--- Old: include-what-you-use-0.18.src.tar.gz New: include-what-you-use-0.19.src.tar.gz Other differences: -- ++ include-what-you-use.spec ++ --- /var/tmp/diff_new_pack.0ZX9op/_old 2023-01-29 14:29:36.845168431 +0100 +++ /var/tmp/diff_new_pack.0ZX9op/_new 2023-01-29 14:29:36.889168672 +0100 @@ -17,10 +17,10 @@ # -%define _llvm_version 14 +%define _llvm_version 15 Name: include-what-you-use -Version:0.18 +Version:0.19 Release:0 Summary:A tool to analyze #includes in C and C++ source files License:NCSA ++ include-what-you-use-0.18.src.tar.gz -> include-what-you-use-0.19.src.tar.gz ++ 6031 lines of diff (skipped) ++ iwyu_include_picker.patch ++ 792 lines (skipped) between /work/SRC/openSUSE:Factory/include-what-you-use/iwyu_include_picker.patch and /work/SRC/openSUSE:Factory/.include-what-you-use.new.32243/iwyu_include_picker.patch
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2022-12-06 14:25:02
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.1835 (New)
Package is "include-what-you-use"
Tue Dec 6 14:25:02 2022 rev:15 rq:1040626 version:0.18
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2022-04-16 00:15:56.577784791 +0200
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.1835/include-what-you-use.changes
2022-12-06 14:25:18.734617613 +0100
@@ -1,0 +2,6 @@
+Mon Dec 5 03:23:01 UTC 2022 - Steve Kowalik
+
+- Use autosetup macro.
+- Remove unneeded BuildRequires on Python 2.
+
+---
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.4hBFea/_old 2022-12-06 14:25:19.266622149 +0100
+++ /var/tmp/diff_new_pack.4hBFea/_new 2022-12-06 14:25:19.270622183 +0100
@@ -34,7 +34,6 @@
BuildRequires: cmake
BuildRequires: libstdc++-devel
BuildRequires: llvm%{_llvm_version}-devel
-BuildRequires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -61,9 +60,7 @@
refactoring tool.
%prep
-%setup -q -n %{name}
-%patch1 -p1
-%patch2 -p1
+%autosetup -p1 -n %{name}
sed -i s#lib/#lib\${LLVM_LIBDIR_SUFFIX}/#g CMakeLists.txt
%build
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2022-04-16 00:15:33
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.1941 (New)
Package is "include-what-you-use"
Sat Apr 16 00:15:33 2022 rev:14 rq:970336 version:0.18
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2021-12-13 20:50:31.972640160 +0100
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.1941/include-what-you-use.changes
2022-04-16 00:15:56.577784791 +0200
@@ -1,0 +2,11 @@
+Sun Apr 10 17:15:50 UTC 2022 - Aaron Puchert
+
+- Update to version 0.18, update LLVM/Clang to version 14.
+ * Fix crash on C++20 consteval expressions.
+ * Use more conventional exit codes. (Breaking change!)
+ * Fix deprecation warning for python3.
+ * Fix crash on va_list on AArch64.
+ * Improved support for using-declarations based on new Clang
+design.
+
+---
Old:
include-what-you-use-0.17.src.tar.gz
New:
include-what-you-use-0.18.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.rUNF3U/_old 2022-04-16 00:15:57.057785432 +0200
+++ /var/tmp/diff_new_pack.rUNF3U/_new 2022-04-16 00:15:57.065785443 +0200
@@ -1,8 +1,8 @@
#
# spec file for package include-what-you-use
#
-# Copyright (c) 2021 SUSE LLC
-# Copyright (c) 2021 Aaron Puchert.
+# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2022 Aaron Puchert.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,10 @@
#
+%define _llvm_version 14
+
Name: include-what-you-use
-Version:0.17
+Version:0.18
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
@@ -28,10 +30,10 @@
Patch1: fix-shebang.patch
Patch2: iwyu_include_picker.patch
BuildRequires: c++_compiler
-BuildRequires: clang13-devel
+BuildRequires: clang%{_llvm_version}-devel
BuildRequires: cmake
BuildRequires: libstdc++-devel
-BuildRequires: llvm13-devel
+BuildRequires: llvm%{_llvm_version}-devel
BuildRequires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++ include-what-you-use-0.17.src.tar.gz ->
include-what-you-use-0.18.src.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/include-what-you-use/.github/workflows/ci.yml
new/include-what-you-use/.github/workflows/ci.yml
--- old/include-what-you-use/.github/workflows/ci.yml 2021-12-05
13:58:23.0 +0100
+++ new/include-what-you-use/.github/workflows/ci.yml 2022-03-29
20:31:46.0 +0200
@@ -1,8 +1,11 @@
name: IWYU CI
on:
- - push
- - pull_request
+ push:
+ pull_request:
+ schedule:
+# Run build of master at 03:38 every day
+- cron: '38 3 * * *'
defaults:
run:
@@ -15,7 +18,7 @@
fail-fast: false
env:
- LLVM_TAG: -13
+ LLVM_TAG: -14
steps:
- name: Install prerequisites
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/include-what-you-use/README.md
new/include-what-you-use/README.md
--- old/include-what-you-use/README.md 2021-12-05 13:58:23.0 +0100
+++ new/include-what-you-use/README.md 2022-03-29 20:31:46.0 +0200
@@ -108,19 +108,23 @@
The original design was built for Make, but a number of alternative run modes
have come up over the years.
- Plugging into Make
+ Running on single source file
-The easiest way to run IWYU over your codebase is to run
+The simplest way to use IWYU is to run it against a single source file:
- make -k CXX=/path/to/llvm/Debug+Asserts/bin/include-what-you-use
+ include-what-you-use $CXXFLAGS myfile.cc
-or
+where `$CXXFLAGS` are the flags you would normally pass to the compiler.
- make -k CXX=/path/to/llvm/Release/bin/include-what-you-use
+ Plugging into existing build system
-(include-what-you-use always exits with an error code, so the build system
knows it didn't build a .o file. Hence the need for `-k`.)
+Typically there is already a build system containing the relevant compiler
flags for all source files. Replace your compiler with `include-what-you-use`
to generate a large batch of IWYU advice. Depending on your build system/build
tools, this can take many forms, but for a simple GNU Make system it might look
like this:
-Include-what-you-use only analy
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2021-12-13 20:44:28
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.2520 (New)
Package is "include-what-you-use"
Mon Dec 13 20:44:28 2021 rev:13 rq:940114 version:0.17
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2021-06-02 22:12:35.260101549 +0200
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.2520/include-what-you-use.changes
2021-12-13 20:50:31.972640160 +0100
@@ -1,0 +2,13 @@
+Sun Dec 12 20:01:41 UTC 2021 - Aaron Puchert
+
+- Update to version 0.17, update LLVM/Clang to version 13.
+ * Improve support for various C++ features (builtins, CTAD,
+specializations, type aliases).
+ * Fix crash on invalid code.
+ * Remove hard dependency on x86 LLVM target.
+ * Improve mappings for GNU libc.
+ * More concise output for clang output format in iwyu_tool.
+- Rebase iwyu_include_picker.patch.
+- Drop obsolete remove-x86-specific-code.patch, fixed upstream.
+
+---
Old:
include-what-you-use-0.16.src.tar.gz
remove-x86-specific-code.patch
New:
include-what-you-use-0.17.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.rHm944/_old 2021-12-13 20:50:32.416640444 +0100
+++ /var/tmp/diff_new_pack.rHm944/_new 2021-12-13 20:50:32.420640446 +0100
@@ -18,7 +18,7 @@
Name: include-what-you-use
-Version:0.16
+Version:0.17
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
@@ -27,12 +27,11 @@
Source0:
https://include-what-you-use.org/downloads/%{name}-%{version}.src.tar.gz
Patch1: fix-shebang.patch
Patch2: iwyu_include_picker.patch
-Patch3: remove-x86-specific-code.patch
BuildRequires: c++_compiler
-BuildRequires: clang12-devel
+BuildRequires: clang13-devel
BuildRequires: cmake
BuildRequires: libstdc++-devel
-BuildRequires: llvm12-devel
+BuildRequires: llvm13-devel
BuildRequires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -63,7 +62,6 @@
%setup -q -n %{name}
%patch1 -p1
%patch2 -p1
-%patch3 -p1
sed -i s#lib/#lib\${LLVM_LIBDIR_SUFFIX}/#g CMakeLists.txt
%build
++ include-what-you-use-0.16.src.tar.gz ->
include-what-you-use-0.17.src.tar.gz ++
1966 lines of diff (skipped)
++ iwyu_include_picker.patch ++
--- /var/tmp/diff_new_pack.rHm944/_old 2021-12-13 20:50:32.640640587 +0100
+++ /var/tmp/diff_new_pack.rHm944/_new 2021-12-13 20:50:32.644640590 +0100
@@ -42,8 +42,8 @@
+ { "std::wfstream", kPrivate, "", kPublic },
};
- // Private -> public include mappings for GNU libc
const IncludeMapEntry libc_include_map[] = {
+ // Private -> public include mappings for GNU libc
- // ( cd /usr/include && grep '^ *# *include' {sys/,net/,}* | perl -nle
'm/^([^:]+).*<([^>]+)>/ && print qq@{ "<$2>", kPrivate, "<$1>", kPublic
},@' | grep bits/ | sort )
+ // ( cd /usr/include && grep '^ *# *include' {sys/,net/,}* | perl -nle
'm/^([^:]+).*<([^>]+)>/ && print qq@ { "<$2>", kPrivate, "<$1>", kPublic },@'
| grep bits/ | sort )
// When I saw more than one mapping for these, I typically picked
commit include-what-you-use for openSUSE:Factory
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package include-what-you-use for
openSUSE:Factory checked in at 2021-06-02 22:12:08
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.1898 (New)
Package is "include-what-you-use"
Wed Jun 2 22:12:08 2021 rev:12 rq:896785 version:0.16
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2020-11-26 23:15:22.957037041 +0100
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.1898/include-what-you-use.changes
2021-06-02 22:12:35.260101549 +0200
@@ -1,0 +2,11 @@
+Fri May 28 21:39:05 UTC 2021 - Aaron Puchert
+
+- Update to version 0.16, update LLVM/Clang to version 12.
+ * Let iwyu_tool accept --load/-l argument for load limiting.
+ * Let iwyu_tool signal success/failure with exit code.
+ * Harmonize mapping generators.
+ * Add mapping generator for CPython.
+ * Improve mappings for libstdc++ and Boost.
+- Rebase iwyu_include_picker.patch.
+
+---
Old:
include-what-you-use-0.15.src.tar.gz
New:
include-what-you-use-0.16.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.YPqHwa/_old 2021-06-02 22:12:35.756100324 +0200
+++ /var/tmp/diff_new_pack.YPqHwa/_new 2021-06-02 22:12:35.760100314 +0200
@@ -1,8 +1,8 @@
#
# spec file for package include-what-you-use
#
-# Copyright (c) 2020 SUSE LLC
-# Copyright (c) 2020 Aaron Puchert.
+# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2021 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.15
+Version:0.16
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
@@ -29,10 +29,10 @@
Patch2: iwyu_include_picker.patch
Patch3: remove-x86-specific-code.patch
BuildRequires: c++_compiler
-BuildRequires: clang11-devel
+BuildRequires: clang12-devel
BuildRequires: cmake
BuildRequires: libstdc++-devel
-BuildRequires: llvm11-devel
+BuildRequires: llvm12-devel
BuildRequires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -60,7 +60,7 @@
refactoring tool.
%prep
-%setup -q -c
+%setup -q -n %{name}
%patch1 -p1
%patch2 -p1
%patch3 -p1
@@ -80,15 +80,13 @@
%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.
+# on the X86 target of LLVM. On ARM, badinc doesn't work for some reason.
%ifarch %arm
-rm tests/cxx/badinc.cc
+%define exclude_tests ^cxx.test_(badinc|ms_inline_asm)$
+%else
+%define exclude_tests ^cxx.test_ms_inline_asm$
%endif
-
-%ctest
+%{ctest '-E' '%exclude_tests'}
%files
%license LICENSE.TXT
++ include-what-you-use-0.15.src.tar.gz ->
include-what-you-use-0.16.src.tar.gz ++
170695 lines of diff (skipped)
++ iwyu_include_picker.patch ++
--- /var/tmp/diff_new_pack.YPqHwa/_old 2021-06-02 22:12:36.056099582 +0200
+++ /var/tmp/diff_new_pack.YPqHwa/_new 2021-06-02 22:12:36.056099582 +0200
@@ -20,9 +20,9 @@
// I then added in NULL, which according to [diff.null] C.2.2.3, can
// be defined in , , , ,
@@ -237,11 +237,28 @@ const IncludeMapEntry libstdcpp_symbol_map[] = {
- { "std::char_traits", kPrivate, "", kPublic },
- { "std::char_traits", kPrivate, "", kPublic },
- { "std::char_traits", kPrivate, "", kPublic },
+ { "std::size_t", kPrivate, "", kPublic },
+ { "std::size_t", kPrivate, "", kPublic },
+ { "std::size_t", kPrivate, "", kPublic },
+ // Using pair.
+ { "std::pair", kPrivate, "", kPublic },
+ { "std::pair", kPrivate, "", kPublic },
[opensuse-commit] 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-11-26 23:14:10
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
and /work/SRC/openSUSE:Factory/.include-what-you-use.new.5913 (New)
Package is "include-what-you-use"
Thu Nov 26 23:14:10 2020 rev:11 rq:850832 version:0.15
Changes:
---
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes
2020-05-20 18:46:24.801410513 +0200
+++
/work/SRC/openSUSE:Factory/.include-what-you-use.new.5913/include-what-you-use.changes
2020-11-26 23:15:22.957037041 +0100
@@ -1,0 +2,18 @@
+Wed Nov 25 22:20:24 UTC 2020 - Aaron Puchert
+
+- Update to version 0.15, update LLVM/Clang to version 11.
+ * Fix crash due to undefined behavior in AST traversal.
+ * Improve handling of operator new including C++17 features.
+ * Improve handling of templates.
+ * In iwyu_tool, remove known compiler wrappers from the command
+list.
+ * Improve Qt mapping generator.
+ * Improve boost mappings.
+ * Improve built-in mappings for .
+ * Add built-in mappings for max_align_t, ptrdiff_t, and wchar_t.
+ * Support shared LLVM/Clang libraries and other improvements.
+- Get rid of obsolete test workaround, which stopped working on
+ 32-bit architectures for some reason. Instead we use plain %ctest
+ now, but fix the mirror directory on 64-bit architectures.
+
+---
Old:
include-what-you-use-0.14.src.tar.gz
New:
include-what-you-use-0.15.src.tar.gz
Other differences:
--
++ include-what-you-use.spec ++
--- /var/tmp/diff_new_pack.umegmV/_old 2020-11-26 23:15:23.617037554 +0100
+++ /var/tmp/diff_new_pack.umegmV/_new 2020-11-26 23:15:23.621037557 +0100
@@ -18,7 +18,7 @@
Name: include-what-you-use
-Version:0.14
+Version:0.15
Release:0
Summary:A tool to analyze #includes in C and C++ source files
License:NCSA
@@ -29,10 +29,10 @@
Patch2: iwyu_include_picker.patch
Patch3: remove-x86-specific-code.patch
BuildRequires: c++_compiler
-BuildRequires: clang10-devel
+BuildRequires: clang11-devel
BuildRequires: cmake
BuildRequires: libstdc++-devel
-BuildRequires: llvm10-devel
+BuildRequires: llvm11-devel
BuildRequires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -60,10 +60,11 @@
refactoring tool.
%prep
-%setup -q -n %{name}
+%setup -q -c
%patch1 -p1
%patch2 -p1
%patch3 -p1
+sed -i s#lib/#lib\${LLVM_LIBDIR_SUFFIX}/#g CMakeLists.txt
%build
# Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc.
@@ -87,18 +88,7 @@
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
+%ctest
%files
%license LICENSE.TXT
++ include-what-you-use-0.14.src.tar.gz ->
include-what-you-use-0.15.src.tar.gz ++
150572 lines of diff (skipped)
___
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]
