Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: media-libs/qt-gstreamer/, media-libs/qt-gstreamer/files/
Date: Sat, 30 May 2015 11:41:38
Message-Id: 1432986075.cc2a85965f6be1c55f1f43fbbc4a85420186f8e4.johu@gentoo
1 commit: cc2a85965f6be1c55f1f43fbbc4a85420186f8e4
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 30 11:41:15 2015 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Sat May 30 11:41:15 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=cc2a8596
7
8 [media-libs/qt-gstreamer] Add patch to fix build with dev-libs/boost-1.57, bug #550016
9
10 Thanks to David Kredba <nheghathivhistha <AT> gmail.com> and Heiko Becker
11 <heirecka <AT> exherbo.org>.
12
13 Package-Manager: portage-2.2.20
14
15 .../files/qt-gstreamer-1.2.0-boost157.patch | 34 ++++++++++++++++++++++
16 media-libs/qt-gstreamer/qt-gstreamer-9999.ebuild | 2 ++
17 2 files changed, 36 insertions(+)
18
19 diff --git a/media-libs/qt-gstreamer/files/qt-gstreamer-1.2.0-boost157.patch b/media-libs/qt-gstreamer/files/qt-gstreamer-1.2.0-boost157.patch
20 new file mode 100644
21 index 0000000..a795420
22 --- /dev/null
23 +++ b/media-libs/qt-gstreamer/files/qt-gstreamer-1.2.0-boost157.patch
24 @@ -0,0 +1,34 @@
25 +From fbb9dc6e291eaa058f3ef1cd93711265bfbfd162 Mon Sep 17 00:00:00 2001
26 +From: Heiko Becker <heirecka@×××××××.org>
27 +Date: Fri, 7 Nov 2014 00:11:02 +0100
28 +Subject: [PATCH] Workaround build failures with boost>=1.57 and moc
29 +
30 +Otherwise I get the following error message:
31 +'usr/include/boost/type_traits/detail/has_binary_operator.hp:50:
32 +Parse error at "BOOST_JOIN"'. See
33 +https://bugreports.qt-project.org/browse/QTBUG-22829 for details.
34 +
35 +The old workaround to define BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
36 +doesn't seem to work here.
37 +---
38 + src/QGlib/connect.cpp | 2 ++
39 + 1 file changed, 2 insertions(+)
40 +
41 +diff --git a/src/QGlib/connect.cpp b/src/QGlib/connect.cpp
42 +index 9ff6fde..58a3367 100644
43 +--- a/src/QGlib/connect.cpp
44 ++++ b/src/QGlib/connect.cpp
45 +@@ -21,8 +21,10 @@
46 + #include <QtCore/QHash>
47 + #include <QtCore/QMutex>
48 + #include <boost/multi_index_container.hpp>
49 ++#ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
50 + #include <boost/multi_index/sequenced_index.hpp>
51 + #include <boost/multi_index/ordered_index.hpp>
52 ++#endif
53 + #include <boost/multi_index/member.hpp>
54 +
55 + namespace QGlib {
56 +--
57 +2.1.3
58 +
59
60 diff --git a/media-libs/qt-gstreamer/qt-gstreamer-9999.ebuild b/media-libs/qt-gstreamer/qt-gstreamer-9999.ebuild
61 index cbf031f..7a6527c 100644
62 --- a/media-libs/qt-gstreamer/qt-gstreamer-9999.ebuild
63 +++ b/media-libs/qt-gstreamer/qt-gstreamer-9999.ebuild
64 @@ -53,6 +53,8 @@ DEPEND="
65 )
66 "
67
68 +PATCHES=( "${FILESDIR}/${PN}-1.2.0-boost157.patch" )
69 +
70 # bug 497880
71 RESTRICT="test"