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:
commit
6402428aef
@ -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>
|
Wed Mar 15 20:23:58 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -26,7 +26,11 @@ Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.
|
|||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
BuildRequires: gcc12-c++
|
||||||
|
%else
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
%endif
|
||||||
BuildRequires: libqt5-linguist-devel
|
BuildRequires: libqt5-linguist-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
@ -77,6 +81,9 @@ doesn't see.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
export CXX=/usr/bin/g++-12
|
||||||
|
%endif
|
||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_CXX_FLAGS="-DNDEBUG %{optflags}" \
|
-DCMAKE_CXX_FLAGS="-DNDEBUG %{optflags}" \
|
||||||
-DFILESDIR="%{_datadir}/%{name}" \
|
-DFILESDIR="%{_datadir}/%{name}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user