From: Michael Palimaka Date: Thu, 1 Oct 2015 12:44:59 +0000 (+1000) Subject: www-client/qupzilla: backport patch from upstream solving build failure with Qt 5.5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=11d73f9ba26a36e9ed893b2561a8d76f29e357b1;p=gentoo.git www-client/qupzilla: backport patch from upstream solving build failure with Qt 5.5 Package-Manager: portage-2.2.20.1 --- diff --git a/www-client/qupzilla/files/qupzilla-1.8.6-qt55.patch b/www-client/qupzilla/files/qupzilla-1.8.6-qt55.patch new file mode 100644 index 000000000000..8014398ebf70 --- /dev/null +++ b/www-client/qupzilla/files/qupzilla-1.8.6-qt55.patch @@ -0,0 +1,105 @@ +From 739e01796a3587c21e7496b43a5a3cdb3fb6d7c5 Mon Sep 17 00:00:00 2001 +From: David Rosca +Date: Thu, 11 Jun 2015 20:21:39 +0200 +Subject: [PATCH] Fix build with Qt 5.5 and gcc 4.9 + +--- + src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp | 1 + + src/lib/plugins/qtwebkit/spellcheck/speller.h | 2 +- + src/plugins.pri | 2 -- + src/plugins/TabManager/TabManager.pro | 8 +------- + src/plugins/TabManager/tabmanagerplugin.h | 1 - + src/plugins/TabManager/tabmanagerwidget.cpp | 1 + + src/plugins/TabManager/tldextractor/tldextractor.h | 1 + + 7 files changed, 5 insertions(+), 11 deletions(-) + +diff --git a/src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp b/src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp +index 836658d..42e2f8a 100644 +--- a/src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp ++++ b/src/lib/3rdparty/qtsingleapplication/qtlocalpeer.cpp +@@ -48,6 +48,7 @@ + #include "qtlocalpeer.h" + #include + #include ++#include + + #if defined(Q_OS_WIN) + #include +diff --git a/src/lib/plugins/qtwebkit/spellcheck/speller.h b/src/lib/plugins/qtwebkit/spellcheck/speller.h +index e3c1657..b711a46 100644 +--- a/src/lib/plugins/qtwebkit/spellcheck/speller.h ++++ b/src/lib/plugins/qtwebkit/spellcheck/speller.h +@@ -40,7 +40,7 @@ class QUPZILLA_EXPORT Speller : public QObject + QString code; + QString name; + +- bool operator==(const Language &other) { ++ bool operator==(const Language &other) const { + return this->name == other.name && + this->name.left(2) == other.name.left(2); + // Compare only first two chars of name. +diff --git a/src/plugins.pri b/src/plugins.pri +index d7e9f4c..2784d79 100644 +--- a/src/plugins.pri ++++ b/src/plugins.pri +@@ -27,8 +27,6 @@ INCLUDEPATH += $$PWD/lib/3rdparty \ + DEPENDPATH += $$INCLUDEPATH \ + $$PWD/lib/data \ + +-include(lib/3rdparty/qtsingleapplication/qtsingleapplication.pri) +- + TEMPLATE = lib + CONFIG += plugin + DESTDIR = $$QZ_DESTDIR/plugins/ +diff --git a/src/plugins/TabManager/TabManager.pro b/src/plugins/TabManager/TabManager.pro +index c2bff69..d47baec 100644 +--- a/src/plugins/TabManager/TabManager.pro ++++ b/src/plugins/TabManager/TabManager.pro +@@ -21,10 +21,4 @@ TRANSLATIONS = \ + include(tldextractor/tldextractor.pri) + + PLUGIN_DIR = $$PWD +-srcdir = $$(QUPZILLA_SRCDIR) +-equals(srcdir, "") { +- include(../../plugins.pri) +-} +-else { +- include($$srcdir/src/plugins.pri) +-} ++include(../../plugins.pri) +diff --git a/src/plugins/TabManager/tabmanagerplugin.h b/src/plugins/TabManager/tabmanagerplugin.h +index 680ea70..2dcc480 100644 +--- a/src/plugins/TabManager/tabmanagerplugin.h ++++ b/src/plugins/TabManager/tabmanagerplugin.h +@@ -25,7 +25,6 @@ + #include + #include + #include +-#include + #include + #include + +diff --git a/src/plugins/TabManager/tabmanagerwidget.cpp b/src/plugins/TabManager/tabmanagerwidget.cpp +index 6f9fdd3..eda4dbe 100644 +--- a/src/plugins/TabManager/tabmanagerwidget.cpp ++++ b/src/plugins/TabManager/tabmanagerwidget.cpp +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/src/plugins/TabManager/tldextractor/tldextractor.h b/src/plugins/TabManager/tldextractor/tldextractor.h +index b0163db..7dc5204 100644 +--- a/src/plugins/TabManager/tldextractor/tldextractor.h ++++ b/src/plugins/TabManager/tldextractor/tldextractor.h +@@ -21,6 +21,7 @@ + #define TLDExtractor_Version "1.0" + + #include ++#include + #include + + class TLDExtractor : public QObject diff --git a/www-client/qupzilla/qupzilla-1.8.6-r1.ebuild b/www-client/qupzilla/qupzilla-1.8.6-r1.ebuild index 21a113eef9f5..bc7359d6e67f 100644 --- a/www-client/qupzilla/qupzilla-1.8.6-r1.ebuild +++ b/www-client/qupzilla/qupzilla-1.8.6-r1.ebuild @@ -59,6 +59,8 @@ src_prepare() { # patch bundled but changed QTSA for Qt-5.5, see bugs 548470 and 489142 epatch "${FILESDIR}"/qtsingleapplication-QDataStream.patch + epatch "${FILESDIR}"/${P}-qt55.patch + epatch_user # remove outdated prebuilt localizations