Accepting request 1075209 from devel:tools

- 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/request/show/1075209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=32
This commit is contained in:
Dominique Leuenberger 2023-03-29 21:28:18 +00:00 committed by Git OBS Bridge
commit 6402428aef
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}" \