diff --git a/fix-build-with-gcc48.patch b/fix-build-with-gcc48.patch new file mode 100644 index 0000000..14b209e --- /dev/null +++ b/fix-build-with-gcc48.patch @@ -0,0 +1,26 @@ +From 4f92428600aa0bcee9a300884941803383f1da41 Mon Sep 17 00:00:00 2001 +From: Wolfgang Bauer +Date: Wed, 13 Jun 2018 12:11:25 +0200 +Subject: [PATCH] Fix build with gcc 4.8 + +See https://bugreports.qt.io/browse/QTBUG-48988 +--- + src/delegaterecycler.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/delegaterecycler.cpp b/src/delegaterecycler.cpp +index f648fc7..b51b5dd 100644 +--- a/src/delegaterecycler.cpp ++++ b/src/delegaterecycler.cpp +@@ -213,7 +213,7 @@ void DelegateRecycler::setSourceComponent(QQmlComponent *component) + if (!m_item) { + obj->deleteLater(); + } else { +- connect(m_item, &QObject::destroyed, ctx, &QObject::deleteLater); ++ connect(m_item.data(), &QObject::destroyed, ctx, &QObject::deleteLater); + } + } else { + QQmlContext *ctx = QQmlEngine::contextForObject(m_item)->parentContext(); +-- +2.13.7 + diff --git a/kirigami2.changes b/kirigami2.changes index a07d59f..9adf8c7 100644 --- a/kirigami2.changes +++ b/kirigami2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 13 17:03:25 UTC 2018 - wbauer@tmo.at + +- Add fix-build-with-gcc48.patch to make it compile with gcc 4.8 on + Leap 42.3 + ------------------------------------------------------------------- Tue Jun 12 21:26:05 UTC 2018 - lbeltrame@kde.org diff --git a/kirigami2.spec b/kirigami2.spec index c3972c5..a995ecd 100644 --- a/kirigami2.spec +++ b/kirigami2.spec @@ -31,6 +31,8 @@ License: LGPL-2.1-or-later Group: Development/Libraries/KDE Url: http://www.kde.org/ Source: https://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz +# PATCH-FIX-OPENSUSE +Patch: fix-build-with-gcc48.patch BuildRequires: extra-cmake-modules >= %{_tar_path} BuildRequires: kf5-filesystem BuildRequires: cmake(Qt5Core) >= 5.7.0 @@ -72,6 +74,9 @@ Development files. %prep %setup -q +%if 0%{?suse_version} < 1500 +%patch -p1 +%endif %build %cmake_kf5 -d build