diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-08-21 10:23:16 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-08-21 10:27:16 +0200 |
commit | de000ce6015b9d016f28d68b39790c0580a90e1a (patch) | |
tree | 09ec5bca13412dec33feb0d86c9851d6b8045054 /net-p2p | |
parent | profiles/arch/arm64: Drop some outdated package.use.stable.mask entries (diff) | |
download | gentoo-de000ce6015b9d016f28d68b39790c0580a90e1a.tar.gz gentoo-de000ce6015b9d016f28d68b39790c0580a90e1a.tar.bz2 gentoo-de000ce6015b9d016f28d68b39790c0580a90e1a.zip |
net-p2p/retroshare: Fix build with Qt 5.11
Closes: https://bugs.gentoo.org/661742
Package-Manager: Portage-2.3.47, Repoman-2.3.10
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/retroshare/files/retroshare-0.6.4-qt-5.11.patch | 63 | ||||
-rw-r--r-- | net-p2p/retroshare/retroshare-0.6.4.ebuild | 6 |
2 files changed, 67 insertions, 2 deletions
diff --git a/net-p2p/retroshare/files/retroshare-0.6.4-qt-5.11.patch b/net-p2p/retroshare/files/retroshare-0.6.4-qt-5.11.patch new file mode 100644 index 000000000000..892cc89aff9a --- /dev/null +++ b/net-p2p/retroshare/files/retroshare-0.6.4-qt-5.11.patch @@ -0,0 +1,63 @@ +From 428b331d8efede1e2f39f2fc49216c675d081030 Mon Sep 17 00:00:00 2001 +From: sehraf <sehraf42@gmail.com> +Date: Fri, 25 May 2018 23:12:35 +0200 +Subject: [PATCH] fix for Qt 5.11 + +Quote from Arch mailing list: +- there's been a huge header cleanup in Qt modules. Expect build failures for applications that rely on transitive includes instead of declaring all required headers. Those need to be fixed upstream by explicitely adding the missing includes. +--- + retroshare-gui/src/gui/Posted/PostedItem.cpp | 1 + + retroshare-gui/src/gui/chat/ChatTabWidget.cpp | 2 ++ + retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp | 1 + + retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp | 1 + + 4 files changed, 5 insertions(+) + +diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp +index 7d70b3e157..8fc1cc6869 100644 +--- a/retroshare-gui/src/gui/Posted/PostedItem.cpp ++++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp +@@ -22,6 +22,7 @@ + */ + + #include <QDateTime> ++#include <QStyle> + + #include "rshare.h" + #include "PostedItem.h" +diff --git a/retroshare-gui/src/gui/chat/ChatTabWidget.cpp b/retroshare-gui/src/gui/chat/ChatTabWidget.cpp +index a965bbb323..6dd9c27576 100644 +--- a/retroshare-gui/src/gui/chat/ChatTabWidget.cpp ++++ b/retroshare-gui/src/gui/chat/ChatTabWidget.cpp +@@ -20,6 +20,8 @@ + * Boston, MA 02110-1301, USA.
+ ****************************************************************/
+
++#include <QTabBar>
++
+ #include "ChatTabWidget.h"
+ #include "ui_ChatTabWidget.h"
+ #include "ChatDialog.h"
+diff --git a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp +index d154408b73..72317640c7 100644 +--- a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp ++++ b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp +@@ -23,6 +23,7 @@ + + #include <QTimer> + #include <QFileInfo> ++#include <QStyle> + + #include "rshare.h" + #include "GxsChannelPostItem.h" +diff --git a/retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp b/retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp +index 97ac9dd75a..e9773aba9c 100644 +--- a/retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp ++++ b/retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp +@@ -23,6 +23,7 @@ + + #include <QTimer> + #include <QFileInfo> ++#include <QStyle> + + #include "rshare.h" + #include "GxsForumMsgItem.h" diff --git a/net-p2p/retroshare/retroshare-0.6.4.ebuild b/net-p2p/retroshare/retroshare-0.6.4.ebuild index 89ef994223cd..1a98bba11078 100644 --- a/net-p2p/retroshare/retroshare-0.6.4.ebuild +++ b/net-p2p/retroshare/retroshare-0.6.4.ebuild @@ -59,7 +59,11 @@ DEPEND="${RDEPEND} S="${WORKDIR}/RetroShare-${PV}" +PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" ) + src_prepare() { + default + local dir sed -i \ @@ -81,8 +85,6 @@ src_prepare() { # Avoid openpgpsdk false dependency on qtgui sed -i '2iQT -= gui' openpgpsdk/src/openpgpsdk.pro || die - - eapply_user } src_configure() { |