summaryrefslogtreecommitdiff
path: root/debian/patches/0010-Work-around-963955.patch
blob: 76eeb50035a1cc4993edb1400d980077076d7f77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
From: Gard Spreemann <gspr@nonempty.org>
Date: Mon, 29 Jun 2020 13:37:10 +0200
Subject: Work around #963955.

This works around a bug in Qt 5.14.x causing any software using TBB
together with Qt to FTBFS. It is fixed upstream in 5.15.1.
---
 src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h | 2 ++
 src/Bottleneck_distance/include/gudhi/Persistence_graph.h         | 2 ++
 src/Hasse_complex/include/gudhi/Hasse_complex.h                   | 2 ++
 src/Nerve_GIC/include/gudhi/GIC.h                                 | 2 ++
 src/Simplex_tree/include/gudhi/Simplex_tree.h                     | 2 ++
 src/Tangential_complex/benchmark/benchmark_tc.cpp                 | 2 ++
 src/Tangential_complex/include/gudhi/Tangential_complex.h         | 2 ++
 7 files changed, 14 insertions(+)

diff --git a/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h b/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h
index aa255ec..ae29f6c 100644
--- a/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h
+++ b/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex.h
@@ -15,8 +15,10 @@
 #include <gudhi/Bitmap_cubical_complex_periodic_boundary_conditions_base.h>
 
 #ifdef GUDHI_USE_TBB
+#ifndef Q_MOC_RUN
 #include <tbb/parallel_sort.h>
 #endif
+#endif
 
 #include <limits>
 #include <utility>    // for pair<>
diff --git a/src/Bottleneck_distance/include/gudhi/Persistence_graph.h b/src/Bottleneck_distance/include/gudhi/Persistence_graph.h
index e1e3522..b865681 100644
--- a/src/Bottleneck_distance/include/gudhi/Persistence_graph.h
+++ b/src/Bottleneck_distance/include/gudhi/Persistence_graph.h
@@ -14,8 +14,10 @@
 #include <gudhi/Internal_point.h>
 
 #ifdef GUDHI_USE_TBB
+#ifndef Q_MOC_RUN
 #include <tbb/parallel_sort.h>
 #endif
+#endif
 
 #include <vector>
 #include <algorithm>
diff --git a/src/Hasse_complex/include/gudhi/Hasse_complex.h b/src/Hasse_complex/include/gudhi/Hasse_complex.h
index 8ce8c36..4842cc2 100644
--- a/src/Hasse_complex/include/gudhi/Hasse_complex.h
+++ b/src/Hasse_complex/include/gudhi/Hasse_complex.h
@@ -21,8 +21,10 @@
 #include <limits>  // for infinity value
 
 #ifdef GUDHI_USE_TBB
+#ifndef Q_MOC_RUN
 #include <tbb/parallel_for.h>
 #endif
+#endif
 
 namespace Gudhi {
 
diff --git a/src/Nerve_GIC/include/gudhi/GIC.h b/src/Nerve_GIC/include/gudhi/GIC.h
index 1b1f932..653501c 100644
--- a/src/Nerve_GIC/include/gudhi/GIC.h
+++ b/src/Nerve_GIC/include/gudhi/GIC.h
@@ -13,7 +13,9 @@
 #define GIC_H_
 
 #ifdef GUDHI_USE_TBB
+#ifndef Q_MOC_RUN
 #include <tbb/parallel_for.h>
+#endif
 #include <mutex>
 #endif
 
diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree.h b/src/Simplex_tree/include/gudhi/Simplex_tree.h
index 889dbd0..ac64650 100644
--- a/src/Simplex_tree/include/gudhi/Simplex_tree.h
+++ b/src/Simplex_tree/include/gudhi/Simplex_tree.h
@@ -27,8 +27,10 @@
 #include <boost/container/static_vector.hpp>
 
 #ifdef GUDHI_USE_TBB
+#ifndef Q_MOC_RUN
 #include <tbb/parallel_sort.h>
 #endif
+#endif
 
 #include <utility>
 #include <vector>
diff --git a/src/Tangential_complex/benchmark/benchmark_tc.cpp b/src/Tangential_complex/benchmark/benchmark_tc.cpp
index e3b2a04..3e5227a 100644
--- a/src/Tangential_complex/benchmark/benchmark_tc.cpp
+++ b/src/Tangential_complex/benchmark/benchmark_tc.cpp
@@ -48,8 +48,10 @@ const std::size_t ONLY_LOAD_THE_FIRST_N_POINTS = 20000000;
 #include <cmath>  // for std::sqrt
 
 #ifdef GUDHI_USE_TBB
+#ifndef Q_MOC_RUN
 #include <tbb/task_scheduler_init.h>
 #endif
+#endif
 #include "XML_exporter.h"
 #include "RIB_exporter.h"
 #define GUDHI_TC_EXPORT_PERFORMANCE_DATA
diff --git a/src/Tangential_complex/include/gudhi/Tangential_complex.h b/src/Tangential_complex/include/gudhi/Tangential_complex.h
index f007bdd..e49261e 100644
--- a/src/Tangential_complex/include/gudhi/Tangential_complex.h
+++ b/src/Tangential_complex/include/gudhi/Tangential_complex.h
@@ -58,8 +58,10 @@
 #include <cstddef>  // for std::size_t
 
 #ifdef GUDHI_USE_TBB
+#ifndef Q_MOC_RUN
 #include <tbb/parallel_for.h>
 #include <tbb/combinable.h>
+#endif
 #include <mutex>
 #endif