1 |
commit: 15d62364ce7eed77f358a03c5724083ea2894eda |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 21 16:17:44 2020 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 21 18:27:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15d62364 |
7 |
|
8 |
sci-electronics/gazebo: fix build with qt 5.14. |
9 |
|
10 |
Patch from upstream provided by Nikita Shubin. |
11 |
Closes: https://bugs.gentoo.org/704988 |
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
|
14 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
15 |
|
16 |
sci-electronics/gazebo/files/qtmoc.patch | 44 +++++++++++++++++++++++++++++ |
17 |
sci-electronics/gazebo/gazebo-10.1.0.ebuild | 4 +-- |
18 |
2 files changed, 46 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/sci-electronics/gazebo/files/qtmoc.patch b/sci-electronics/gazebo/files/qtmoc.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..47841eb26e0 |
23 |
--- /dev/null |
24 |
+++ b/sci-electronics/gazebo/files/qtmoc.patch |
25 |
@@ -0,0 +1,44 @@ |
26 |
+From 66dcba0375357d294d4769a6eb542de29b78a519 Mon Sep 17 00:00:00 2001 |
27 |
+From: Steve Peters <scpeters@××××××××××××.org> |
28 |
+Date: Thu, 26 Dec 2019 05:12:08 -0800 |
29 |
+Subject: [PATCH] use ifndef Q_MOC_RUN to fix compilation of plugins with tbb |
30 |
+ and qt 5.14 (issue #2681) |
31 |
+ |
32 |
+--- |
33 |
+ plugins/CessnaGUIPlugin.hh | 3 +++ |
34 |
+ plugins/LookAtDemoPlugin.hh | 3 +++ |
35 |
+ 2 files changed, 6 insertions(+) |
36 |
+ |
37 |
+diff --git a/plugins/CessnaGUIPlugin.hh b/plugins/CessnaGUIPlugin.hh |
38 |
+index 7556d89982..091b8ffd00 100644 |
39 |
+--- a/plugins/CessnaGUIPlugin.hh |
40 |
++++ b/plugins/CessnaGUIPlugin.hh |
41 |
+@@ -23,7 +23,10 @@ |
42 |
+ |
43 |
+ #include <gazebo/common/Plugin.hh> |
44 |
+ #include <gazebo/gui/GuiPlugin.hh> |
45 |
++// moc parsing error of tbb headers |
46 |
++#ifndef Q_MOC_RUN |
47 |
+ #include <gazebo/transport/transport.hh> |
48 |
++#endif |
49 |
+ |
50 |
+ namespace gazebo |
51 |
+ { |
52 |
+diff --git a/plugins/LookAtDemoPlugin.hh b/plugins/LookAtDemoPlugin.hh |
53 |
+index 5659394892..2a22b222f5 100644 |
54 |
+--- a/plugins/LookAtDemoPlugin.hh |
55 |
++++ b/plugins/LookAtDemoPlugin.hh |
56 |
+@@ -21,7 +21,10 @@ |
57 |
+ |
58 |
+ #include <gazebo/common/Plugin.hh> |
59 |
+ #include <gazebo/gui/GuiPlugin.hh> |
60 |
++// moc parsing error of tbb headers |
61 |
++#ifndef Q_MOC_RUN |
62 |
+ #include <gazebo/transport/transport.hh> |
63 |
++#endif |
64 |
+ |
65 |
+ namespace gazebo |
66 |
+ { |
67 |
+-- |
68 |
+2.24.1 |
69 |
+ |
70 |
|
71 |
diff --git a/sci-electronics/gazebo/gazebo-10.1.0.ebuild b/sci-electronics/gazebo/gazebo-10.1.0.ebuild |
72 |
index 80c4d00fc21..7b7aa2a408f 100644 |
73 |
--- a/sci-electronics/gazebo/gazebo-10.1.0.ebuild |
74 |
+++ b/sci-electronics/gazebo/gazebo-10.1.0.ebuild |
75 |
@@ -1,4 +1,4 @@ |
76 |
-# Copyright 1999-2019 Gentoo Authors |
77 |
+# Copyright 1999-2020 Gentoo Authors |
78 |
# Distributed under the terms of the GNU General Public License v2 |
79 |
|
80 |
EAPI=5 |
81 |
@@ -59,7 +59,7 @@ DEPEND="${RDEPEND} |
82 |
test? ( dev-libs/libxslt ) |
83 |
" |
84 |
CMAKE_BUILD_TYPE=RelWithDebInfo |
85 |
-PATCHES=( "${FILESDIR}/qwt.patch" "${FILESDIR}/oal.patch" ) |
86 |
+PATCHES=( "${FILESDIR}/qwt.patch" "${FILESDIR}/oal.patch" "${FILESDIR}/qtmoc.patch" ) |
87 |
|
88 |
src_configure() { |
89 |
# doesnt build without it |