From c5cb798c6f7a5d220003541acdd1e1ca0394e0c8 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 14 Dec 2021 18:03:47 +0100 Subject: [PATCH] SLES 12.5: require gcc11-c++ --- icinga2.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/icinga2.spec b/icinga2.spec index efdad29..bd5448b 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -131,9 +131,14 @@ BuildRequires: %{scl_name}-binutils BuildRequires: %{scl_name}-gcc-c++ BuildRequires: %{scl_name}-libstdc++-devel %else +%if "%{_vendor}" == "suse" && 0%{?suse_version} >= 1315 && 0%{?suse_version} < 1500 +BuildRequires: gcc11-c++ +BuildRequires: libstdc++6-devel-gcc11 +%else BuildRequires: gcc-c++ BuildRequires: libstdc++-devel %endif +%endif BuildRequires: openssl-devel %endif BuildRequires: bison @@ -430,6 +435,11 @@ CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON" export CC=gcc-4.8 export CXX=g++-4.8 %endif +%if "%{_vendor}" == "suse" && 0%{?suse_version} >= 1315 && 0%{?suse_version} < 1500 +# from package gcc11-c++ +export CC=gcc-11 +export CXX=g++-11 +%endif %if "%{?_buildhost}" != "" CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_BUILD_HOST_NAME:STRING=%_buildhost"