kde-apps/cantor: backport patch from upstream solving build failure with Qt 5.6
authorMichael Palimaka <kensington@gentoo.org>
Wed, 27 Jul 2016 19:41:20 +0000 (05:41 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 27 Jul 2016 19:42:07 +0000 (05:42 +1000)
Gentoo-bug: 587082

Package-Manager: portage-2.3.0

kde-apps/cantor/cantor-15.12.3-r1.ebuild
kde-apps/cantor/files/cantor-15.12.3-qt56.patch [new file with mode: 0644]

index b01bd79affd8b08244ca5f1ff7322777625e6c31..1d0a335b5831eb7805a0680add49cd5e2973d91c 100644 (file)
@@ -56,7 +56,10 @@ DEPEND="${RDEPEND}
 
 RESTRICT="test"
 
-PATCHES=( "${FILESDIR}/${P}-tests.patch" )
+PATCHES=(
+       "${FILESDIR}/${P}-tests.patch"
+       "${FILESDIR}/${P}-qt56.patch"
+)
 
 pkg_setup() {
        use python && python_setup
diff --git a/kde-apps/cantor/files/cantor-15.12.3-qt56.patch b/kde-apps/cantor/files/cantor-15.12.3-qt56.patch
new file mode 100644 (file)
index 0000000..6434f65
--- /dev/null
@@ -0,0 +1,27 @@
+From 683418b3663ddc588c44063cc11abb20970e8e08 Mon Sep 17 00:00:00 2001
+From: David Faure <faure@kde.org>
+Date: Thu, 2 Jun 2016 08:56:43 +0200
+Subject: [PATCH] Fix compilation error "qobject.h:300:9: error: static
+ assertion failed: Signal and slot arguments are not compatible."
+
+(cherry picked from commit 841b6f6e19d829d6ab9ee13a5d4b0bcc9f1ee2df)
+---
+ src/worksheettextitem.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/worksheettextitem.cpp b/src/worksheettextitem.cpp
+index 503153c..493ed48 100644
+--- a/src/worksheettextitem.cpp
++++ b/src/worksheettextitem.cpp
+@@ -180,7 +180,7 @@ void WorksheetTextItem::populateMenu(QMenu *menu, const QPointF& pos)
+ QKeyEvent* WorksheetTextItem::eventForStandardAction(KStandardAction::StandardAction actionID)
+ {
+     // there must be a better way to get the shortcut...
+-    QAction * action = KStandardAction::create(actionID, this, 0, this);
++    QAction * action = KStandardAction::create(actionID, this, SLOT(copy()), this);
+     QKeySequence keySeq = action->shortcut();
+     // we do not support key sequences with multiple keys here
+     int code = keySeq[0];
+-- 
+2.7.3
+