Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550016 - media-libs/qt-gstreamer-1.2.0-r1 fails to build with dev-libs/boost-1.57
Summary: media-libs/qt-gstreamer-1.2.0-r1 fails to build with dev-libs/boost-1.57
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: boost-1.57
  Show dependency tree
 
Reported: 2015-05-21 06:35 UTC by David Kredba
Modified: 2015-05-30 11:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2015-05-21 06:35:32 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=739752

From fbb9dc6e291eaa058f3ef1cd93711265bfbfd162 Mon Sep 17 00:00:00 2001
From: Heiko Becker <heirecka@exherbo.org>
Date: Fri, 7 Nov 2014 00:11:02 +0100
Subject: [PATCH] Workaround build failures with boost>=1.57 and moc

Otherwise I get the following error message:
'usr/include/boost/type_traits/detail/has_binary_operator.hp:50:
Parse error at "BOOST_JOIN"'. See
https://bugreports.qt-project.org/browse/QTBUG-22829 for details.

The old workaround to define BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
doesn't seem to work here.
---
 src/QGlib/connect.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/QGlib/connect.cpp b/src/QGlib/connect.cpp
index 9ff6fde..58a3367 100644
--- a/src/QGlib/connect.cpp
+++ b/src/QGlib/connect.cpp
@@ -21,8 +21,10 @@
 #include <QtCore/QHash>
 #include <QtCore/QMutex>
 #include <boost/multi_index_container.hpp>
+#ifndef Q_MOC_RUN  // See: https://bugreports.qt-project.org/browse/QTBUG-22829
 #include <boost/multi_index/sequenced_index.hpp>
 #include <boost/multi_index/ordered_index.hpp>
+#endif
 #include <boost/multi_index/member.hpp>
 
 namespace QGlib {
-- 
2.1.3


Reproducible: Always
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2015-05-30 11:44:06 UTC
Thanks for reporting. This is fixed in cvs and git now. Please sync later on to get the changes.

+
+  30 May 2015; Johannes Huber <johu@gentoo.org>
+  +files/qt-gstreamer-1.2.0-boost157.patch, qt-gstreamer-1.2.0-r1.ebuild:
+  Add patch to fix build with dev-libs/boost-1.57, bug #550016. Thanks to David
+  Kredba <nheghathivhistha@gmail.com> and Heiko Becker <heirecka@exherbo.org>.
+


https://cgit.gentoo.org/proj/kde.git/commit/?id=cc2a85965f6be1c55f1f43fbbc4a85420186f8e4