- switch on Tumbleweed temporarily to gcc 12 to avoid

"allocator_traits<A>::rebind_alloc<A::value_type> must be A"
  (as mentioned on https://gcc.gnu.org/gcc-13/porting_to.html)

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=109
This commit is contained in:
Dirk Mueller 2023-03-29 12:13:55 +00:00 committed by Git OBS Bridge
parent da654849b3
commit 331c3738d4
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Mar 29 12:13:06 UTC 2023 - Dirk Müller <dmueller@suse.com>
- switch on Tumbleweed temporarily to gcc 12 to avoid
"allocator_traits<A>::rebind_alloc<A::value_type> must be A"
(as mentioned on https://gcc.gnu.org/gcc-13/porting_to.html)
-------------------------------------------------------------------
Wed Mar 15 20:23:58 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -26,7 +26,11 @@ Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.
BuildRequires: cmake
BuildRequires: docbook-xsl-stylesheets
BuildRequires: fdupes
%if 0%{?suse_version} > 1500
BuildRequires: gcc12-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: libqt5-linguist-devel
BuildRequires: pkgconfig
BuildRequires: python3-base
@ -77,6 +81,9 @@ doesn't see.
%autosetup -p1
%build
%if 0%{?suse_version} > 1500
export CXX=/usr/bin/g++-12
%endif
%cmake \
-DCMAKE_CXX_FLAGS="-DNDEBUG %{optflags}" \
-DFILESDIR="%{_datadir}/%{name}" \