diff --git a/cppcheck.changes b/cppcheck.changes index a23ee38..b45e994 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Mar 29 12:13:06 UTC 2023 - Dirk Müller + +- switch on Tumbleweed temporarily to gcc 12 to avoid + "allocator_traits::rebind_alloc 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 diff --git a/cppcheck.spec b/cppcheck.spec index 5afc333..457f4e8 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -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}" \