dev-util/kdevplatform: backport patch from upstream solving build failure with dev...
authorMichael Palimaka <kensington@gentoo.org>
Mon, 14 Sep 2015 14:01:16 +0000 (00:01 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 14 Sep 2015 14:02:03 +0000 (00:02 +1000)
Gentoo-bug: 534140

Package-Manager: portage-2.2.20.1

dev-util/kdevplatform/files/kdevplatform-1.7.1-boost-1.57.patch [new file with mode: 0644]
dev-util/kdevplatform/kdevplatform-1.7.1.ebuild

diff --git a/dev-util/kdevplatform/files/kdevplatform-1.7.1-boost-1.57.patch b/dev-util/kdevplatform/files/kdevplatform-1.7.1-boost-1.57.patch
new file mode 100644 (file)
index 0000000..5abf3c5
--- /dev/null
@@ -0,0 +1,45 @@
+From a430a60a274d369d98105b9d51285d5a9a6bc86f Mon Sep 17 00:00:00 2001
+From: Kevin Funk <kfunk@kde.org>
+Date: Fri, 4 Sep 2015 17:52:15 +0200
+Subject: [PATCH] Make compile (cf. BOOST_JOIN)
+
+Also see https://bugreports.qt.io/browse/QTBUG-22829
+---
+ plugins/classbrowser/documentclassesfolder.cpp | 2 ++
+ plugins/classbrowser/documentclassesfolder.h   | 3 +++
+ 2 files changed, 5 insertions(+)
+
+diff --git a/plugins/classbrowser/documentclassesfolder.cpp b/plugins/classbrowser/documentclassesfolder.cpp
+index c578305..55cb637 100644
+--- a/plugins/classbrowser/documentclassesfolder.cpp
++++ b/plugins/classbrowser/documentclassesfolder.cpp
+@@ -29,7 +29,9 @@
+ #include <QTimer>
+ #include <KIcon>
++#ifndef Q_MOC_RUN
+ #include <boost/foreach.hpp>
++#endif
+ using namespace KDevelop;
+ using namespace ClassModelNodes;
+diff --git a/plugins/classbrowser/documentclassesfolder.h b/plugins/classbrowser/documentclassesfolder.h
+index 91edfe8..80f6fb6 100644
+--- a/plugins/classbrowser/documentclassesfolder.h
++++ b/plugins/classbrowser/documentclassesfolder.h
+@@ -23,9 +23,12 @@
+ #define KDEVPLATFORM_PLUGIN_DOCUMENTCLASSESFOLDER_H
+ #include "classmodelnode.h"
++
++#ifndef Q_MOC_RUN
+ #include <boost/multi_index_container.hpp>
+ #include <boost/multi_index/member.hpp>
+ #include <boost/multi_index/ordered_index.hpp>
++#endif
+ namespace ClassModelNodes
+ {
+-- 
+2.4.6
+
index f15ed0fbffe039c31c3064c9df4baa9171e19e5d..b6e1a272b49392cff47aff1c1f4d88386f9f03e4 100644 (file)
@@ -44,6 +44,8 @@ RDEPEND="${COMMON_DEPEND}
        !<dev-util/kdevelop-${KDEVELOP_VERSION}:4
 "
 
+PATCHES=( "${FILESDIR}/${P}-boost-1.57.patch" )
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_build classbrowser)