From 262eaa3f77a759c9b409eb08fc47aa42578eaf28 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 8 Jun 2018 17:03:20 -0500 Subject: [PATCH] try devtoolset workaround --- qqc2-desktop-style.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qqc2-desktop-style.spec b/qqc2-desktop-style.spec index b3d35f1..e325be5 100644 --- a/qqc2-desktop-style.spec +++ b/qqc2-desktop-style.spec @@ -38,6 +38,12 @@ BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: qt5-qtquickcontrols2-devel Requires: qt5-qtquickcontrols2%{?_isa} +# WORKAROUND FTBFS +%if 0%{?rhel}==7 +BuildRequires: devtoolset-7-toolchain +BuildRequires: devtoolset-7-gcc-c++ +%endif + %description This is a style for QtQuickControls 2 that uses QWidget's QStyle for painting, making possible to achieve an higher degree of consistency @@ -49,6 +55,10 @@ between QWidget-based and QML-based apps. %build +%if 0%{?rhel}==7 +. /opt/rh/devtoolset-7/enable +%endif + mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} ..