From dfe4ec3e7c3aab5056b97cea216a425ac5e3d0d2 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 8 Jun 2018 15:00:03 -0500 Subject: [PATCH] use devtoolset-7 on rhel7 workaround https://bugs.kde.org/show_bug.cgi?id=395156 --- kf5-kirigami2.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kf5-kirigami2.spec b/kf5-kirigami2.spec index a30e31a..c439dea 100644 --- a/kf5-kirigami2.spec +++ b/kf5-kirigami2.spec @@ -45,6 +45,12 @@ BuildRequires: appstream BuildRequires: xorg-x11-server-Xvfb %endif +# workaround https://bugs.kde.org/show_bug.cgi?id=395156 +%if 0%{?rhel}==7 +BuildRequires: devtoolset-7-toolchain +BuildRequires: devtoolset-7-gcc-c++ +%endif + Requires: qt5-qtquickcontrols%{?_isa} Requires: qt5-qtquickcontrols2%{?_isa} @@ -65,6 +71,9 @@ developing applications that use %{name}. %build +%if 0%{?rhel}==7 +. /opt/rh/devtoolset-7/enable +%endif mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. \