1 |
commit: a539a82c009b5bca9bb9879fa5828bc1be3333f6 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 26 16:02:02 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Jul 26 16:06:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a539a82c |
7 |
|
8 |
sys-cluster/clusteringsuite: update EAPI 7 -> 8 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
profiles/package.use.mask | 12 ++ |
13 |
.../clusteringsuite-2.6.9-r3.ebuild | 43 +++---- |
14 |
...9-Build-fix-for-GCC-11-invocable-as-const.patch | 11 ++ |
15 |
.../clusteringsuite-unbundle-libbsctools.patch | 123 +++++++++++++++++++++ |
16 |
sys-cluster/clusteringsuite/metadata.xml | 2 +- |
17 |
5 files changed, 170 insertions(+), 21 deletions(-) |
18 |
|
19 |
diff --git a/profiles/package.use.mask b/profiles/package.use.mask |
20 |
new file mode 100644 |
21 |
index 000000000..f25023ca3 |
22 |
--- /dev/null |
23 |
+++ b/profiles/package.use.mask |
24 |
@@ -0,0 +1,12 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+# Alessandro Barbieri <lssndrbarbieri@×××××.com> (2021-07-26) |
29 |
+# treedbscan needs old cgal |
30 |
+# https://github.com/bsc-performance-tools/clustering-suite/issues/8 |
31 |
+sys-cluster/clusteringsuite treedbscan |
32 |
+ |
33 |
+# Alessandro Barbieri <lssndrbarbieri@×××××.com> (2021-07-26) |
34 |
+# current muster doesn't provide density.h |
35 |
+# https://github.com/bsc-performance-tools/clustering-suite/issues/9 |
36 |
+sys-cluster/clusteringsuite muster |
37 |
|
38 |
diff --git a/sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r3.ebuild b/sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r3.ebuild |
39 |
index efb4a4090..82532ed99 100644 |
40 |
--- a/sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r3.ebuild |
41 |
+++ b/sys-cluster/clusteringsuite/clusteringsuite-2.6.9-r3.ebuild |
42 |
@@ -1,7 +1,7 @@ |
43 |
# Copyright 2019-2021 Gentoo Authors |
44 |
# Distributed under the terms of the GNU General Public License v2 |
45 |
|
46 |
-EAPI=7 |
47 |
+EAPI=8 |
48 |
|
49 |
PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
50 |
|
51 |
@@ -18,30 +18,32 @@ S="${WORKDIR}/clustering-suite-${PV}" |
52 |
LICENSE="LGPL-2.1+" |
53 |
SLOT="0" |
54 |
KEYWORDS="~amd64" |
55 |
-IUSE="doc mpi muster" # treedbscan |
56 |
+IUSE="doc mpi muster treedbscan" |
57 |
|
58 |
PATCHES=( |
59 |
"${FILESDIR}/${P}-unbundle-libANN.patch" |
60 |
"${FILESDIR}/${P}-do-not-add-boost-thread-ldpath.patch" |
61 |
+ "${FILESDIR}/${P}-Build-fix-for-GCC-11-invocable-as-const.patch" |
62 |
) |
63 |
+# attempt at unbundling libbsctools failed |
64 |
+# current libbsctools seems to be too old (missing headers) |
65 |
+# "${FILESDIR}/${PN}-unbundle-libbsctools.patch" |
66 |
|
67 |
RDEPEND=" |
68 |
app-arch/bzip2 |
69 |
dev-libs/boost:= |
70 |
sci-libs/ann |
71 |
- sys-cluster/libbsctools |
72 |
+ !sys-cluster/libbsctools |
73 |
mpi? ( virtual/mpi ) |
74 |
muster? ( sys-cluster/muster ) |
75 |
+ treedbscan? ( |
76 |
+ dev-libs/boost:=[threads] |
77 |
+ dev-libs/gmp |
78 |
+ dev-libs/mpfr |
79 |
+ sci-mathematics/cgal[shared(-)] |
80 |
+ sys-cluster/synapse |
81 |
+ ) |
82 |
" |
83 |
-# https://github.com/bsc-performance-tools/clustering-suite/issues/8 |
84 |
-# treedbscan? ( |
85 |
-# dev-libs/boost:=[threads] |
86 |
-# dev-libs/gmp |
87 |
-# dev-libs/mpfr |
88 |
-# sci-mathematics/cgal[shared] |
89 |
-# sys-cluster/synapse |
90 |
-# ) |
91 |
-#" |
92 |
|
93 |
DEPEND=" |
94 |
${RDEPEND} |
95 |
@@ -53,6 +55,7 @@ src_prepare() { |
96 |
use muster && PATCHES+=( "${FILESDIR}/${P}-force-muster-discovery.patch" ) |
97 |
rm -r src/libANN || die |
98 |
# rm -r pcfparser_svn3942 || die |
99 |
+# rm -r src/libParaverTraceParser || die |
100 |
default |
101 |
sed -e "s|iterate/lib|iterate/$(get_libdir)|g" -i config/gmp_mpfr.m4 || die |
102 |
sed -e "s|dir/lib|dir/$(get_libdir)|g" -i config/ax_muster.m4 || die |
103 |
@@ -88,18 +91,18 @@ src_configure() { |
104 |
else |
105 |
myconf+=( "--without-muster" ) |
106 |
fi |
107 |
-# if use treedbscan; then |
108 |
-# myconf+=( "--enable-treedbscan" ) |
109 |
-# myconf+=( "--with-cgal=${EPREFIX}/usr" ) |
110 |
-# myconf+=( "--with-gmp=${EPREFIX}/usr" ) |
111 |
-# myconf+=( "--with-mpfr=${EPREFIX}/usr" ) |
112 |
-# myconf+=( "--with-synapse=${EPREFIX}/usr" ) |
113 |
-# else |
114 |
+ if use treedbscan; then |
115 |
+ myconf+=( "--enable-treedbscan" ) |
116 |
+ myconf+=( "--with-cgal=${EPREFIX}/usr" ) |
117 |
+ myconf+=( "--with-gmp=${EPREFIX}/usr" ) |
118 |
+ myconf+=( "--with-mpfr=${EPREFIX}/usr" ) |
119 |
+ myconf+=( "--with-synapse=${EPREFIX}/usr" ) |
120 |
+ else |
121 |
myconf+=( "--without-cgal" ) |
122 |
myconf+=( "--without-gmp" ) |
123 |
myconf+=( "--without-mpfr" ) |
124 |
myconf+=( "--without-synapse" ) |
125 |
-# fi |
126 |
+ fi |
127 |
|
128 |
econf "${myconf[@]}" || die |
129 |
} |
130 |
|
131 |
diff --git a/sys-cluster/clusteringsuite/files/clusteringsuite-2.6.9-Build-fix-for-GCC-11-invocable-as-const.patch b/sys-cluster/clusteringsuite/files/clusteringsuite-2.6.9-Build-fix-for-GCC-11-invocable-as-const.patch |
132 |
new file mode 100644 |
133 |
index 000000000..85d19e9bd |
134 |
--- /dev/null |
135 |
+++ b/sys-cluster/clusteringsuite/files/clusteringsuite-2.6.9-Build-fix-for-GCC-11-invocable-as-const.patch |
136 |
@@ -0,0 +1,11 @@ |
137 |
+--- a/src/libSharedComponents/SequenceScore.hpp |
138 |
++++ b/src/libSharedComponents/SequenceScore.hpp |
139 |
+@@ -73,7 +73,7 @@ static const cluster_id_t SEQUENCE_GAP = NOISE_CLUSTERID-1; |
140 |
+ struct TraceObjectsCompare |
141 |
+ { |
142 |
+ bool operator()(const pair<task_id_t, thread_id_t>& obj1, |
143 |
+- const pair<task_id_t, thread_id_t>& obj2) |
144 |
++ const pair<task_id_t, thread_id_t>& obj2) const |
145 |
+ { |
146 |
+ if (obj1.first < obj2.first) |
147 |
+ { |
148 |
|
149 |
diff --git a/sys-cluster/clusteringsuite/files/clusteringsuite-unbundle-libbsctools.patch b/sys-cluster/clusteringsuite/files/clusteringsuite-unbundle-libbsctools.patch |
150 |
new file mode 100644 |
151 |
index 000000000..1746a8423 |
152 |
--- /dev/null |
153 |
+++ b/sys-cluster/clusteringsuite/files/clusteringsuite-unbundle-libbsctools.patch |
154 |
@@ -0,0 +1,123 @@ |
155 |
+--- a/configure.ac.template |
156 |
++++ b/configure.ac.template |
157 |
+@@ -533,17 +533,12 @@ |
158 |
+ AC_SUBST(CLUSTERING_LIBS) |
159 |
+ AC_SUBST(CLUSTERING_LD_LIBRARY_PATH) |
160 |
+ |
161 |
+-dnl NOTE: the 'pcfparser_svn3942' is a temporary dependency until the new |
162 |
+-dnl 'common_files' package is defined |
163 |
+- |
164 |
+ AC_CONFIG_FILES([ |
165 |
+ Makefile |
166 |
+ include/Makefile |
167 |
+ common_utilities/Makefile |
168 |
+-pcfparser_svn3942/Makefile |
169 |
+ src/Makefile |
170 |
+ src/BasicClasses/Makefile |
171 |
+-src/libParaverTraceParser/Makefile |
172 |
+ src/libSharedComponents/Makefile |
173 |
+ src/libSharedComponents/kalign2/Makefile |
174 |
+ src/libClustering/gmeans/Makefile |
175 |
+--- a/Makefile.am |
176 |
++++ b/Makefile.am |
177 |
+@@ -8,9 +8,7 @@ |
178 |
+ |
179 |
+ ## -I@common_filesdir@ |
180 |
+ |
181 |
+-## The 'pcfparser_svn3942' and 'common_utilities' directory will |
182 |
+-## be merged in the new 'common-files' package |
183 |
+-SUBDIRS = include pcfparser_svn3942 common_utilities src scripts doc |
184 |
++SUBDIRS = include common_utilities src scripts doc |
185 |
+ |
186 |
+ instdir = $(includedir) |
187 |
+ |
188 |
+--- a/src/ClustersSequenceScore/Makefile.am |
189 |
++++ b/src/ClustersSequenceScore/Makefile.am |
190 |
+@@ -9,8 +9,7 @@ |
191 |
+ @CLUSTERING_CPPFLAGS@\ |
192 |
+ -I$(top_srcdir)/src/libClustering\ |
193 |
+ -I$(top_srcdir)/src/libTraceClustering\ |
194 |
+- -I$(top_srcdir)/src/libSharedComponents\ |
195 |
+- -I$(top_srcdir)/pcfparser_svn3942 |
196 |
++ -I$(top_srcdir)/src/libSharedComponents |
197 |
+ |
198 |
+ ClustersSequenceScore_bin_LDFLAGS = @CLUSTERING_LDFLAGS@ |
199 |
+ |
200 |
+--- a/src/libDistributedClustering/Makefile.am |
201 |
++++ b/src/libDistributedClustering/Makefile.am |
202 |
+@@ -30,8 +30,6 @@ |
203 |
+ libDistributedClustering_la_CPPFLAGS = @CLUSTERING_CPPFLAGS@\ |
204 |
+ -I$(top_srcdir)/src/libClustering\ |
205 |
+ -I$(top_srcdir)/src/libSharedComponents\ |
206 |
+- -I$(top_srcdir)/pcfparser_svn3942\ |
207 |
+- -I$(top_srcdir)/src/libParaverTraceParser\ |
208 |
+ -I/usr/include/ANN |
209 |
+ |
210 |
+ libDistributedClustering_la_LDFLAGS = @CLUSTERING_LDFLAGS@ @CLUSTERING_CPPFLAGS@ |
211 |
+--- a/src/libSharedComponents/Makefile.am |
212 |
++++ b/src/libSharedComponents/Makefile.am |
213 |
+@@ -75,21 +75,12 @@ |
214 |
+ |
215 |
+ libSharedComponents_la_CPPFLAGS = @CLUSTERING_CPPFLAGS@\ |
216 |
+ -I${top_srcdir}/src/libClustering\ |
217 |
+- -I${top_srcdir}/src/libParaverTraceParser\ |
218 |
+ -I/usr/include/ANN |
219 |
+-if MAKE_OLD_PCFPARSER |
220 |
+- libSharedComponents_la_CPPFLAGS += -I${top_srcdir}/pcfparser_svn3942/old |
221 |
+-else |
222 |
+- libSharedComponents_la_CPPFLAGS += -I${top_srcdir}/pcfparser_svn3942 |
223 |
+-endif |
224 |
+- |
225 |
+ |
226 |
+ libSharedComponents_la_LDFLAGS = @CLUSTERING_LDFLAGS@ @CLUSTERING_CPPFLAGS@ |
227 |
+ |
228 |
+ libSharedComponents_la_LIBADD = \ |
229 |
+- $(top_builddir)/pcfparser_svn3942/libparavertraceconfig.la \ |
230 |
+ $(top_builddir)/src/libClustering/libClustering.la \ |
231 |
+- $(top_builddir)/src/libParaverTraceParser/libParaverTraceParser.la \ |
232 |
+ ./kalign2/libKalign2.la \ |
233 |
+ @CLUSTERING_LIBS@ |
234 |
+ |
235 |
+--- a/src/libTraceClustering/Makefile.am |
236 |
++++ b/src/libTraceClustering/Makefile.am |
237 |
+@@ -9,9 +9,7 @@ |
238 |
+ -I$(top_srcdir)/src/BasicClasses \ |
239 |
+ -I/usr/include/ANN \ |
240 |
+ -I$(top_srcdir)/src/libSharedComponents \ |
241 |
+- -I$(top_srcdir)/src/libParaverTraceParser \ |
242 |
+- -I$(top_srcdir)/common_utilities \ |
243 |
+- -I$(top_srcdir)/pcfparser_svn3942 |
244 |
++ -I$(top_srcdir)/common_utilities |
245 |
+ |
246 |
+ instdir = $(includedir) |
247 |
+ |
248 |
+@@ -27,9 +25,7 @@ |
249 |
+ libTraceClustering_la_CPPFLAGS = @CLUSTERING_CPPFLAGS@\ |
250 |
+ -I$(top_srcdir)/src/libClustering\ |
251 |
+ -I$(top_srcdir)/src/libSharedComponents\ |
252 |
+- -I$(top_srcdir)/pcfparser_svn3942\ |
253 |
+- -I/usr/include/ANN\ |
254 |
+- -I$(top_srcdir)/src/libParaverTraceParser |
255 |
++ -I/usr/include/ANN |
256 |
+ |
257 |
+ libTraceClustering_la_LDFLAGS = @CLUSTERING_CPPFLAGS@ @CLUSTERING_LDFLAGS@ |
258 |
+ libTraceClustering_la_LIBADD = \ |
259 |
+@@ -37,8 +33,5 @@ |
260 |
+ $(top_builddir)/src/libSharedComponents/libSharedComponents.la \ |
261 |
+ @CLUSTERING_LIBS@ |
262 |
+ |
263 |
+-## $(top_srcdir)/src/libParaverTraceParser/libParaverTraceParser.la |
264 |
+- |
265 |
+- |
266 |
+ |
267 |
+ |
268 |
+--- a/src/Makefile.am |
269 |
++++ b/src/Makefile.am |
270 |
+@@ -4,7 +4,6 @@ |
271 |
+ |
272 |
+ SUBDIRS = \ |
273 |
+ BasicClasses \ |
274 |
+- libParaverTraceParser \ |
275 |
+ libClustering \ |
276 |
+ libSharedComponents \ |
277 |
+ libTraceClustering \ |
278 |
|
279 |
diff --git a/sys-cluster/clusteringsuite/metadata.xml b/sys-cluster/clusteringsuite/metadata.xml |
280 |
index 90dc13e20..e1713f051 100644 |
281 |
--- a/sys-cluster/clusteringsuite/metadata.xml |
282 |
+++ b/sys-cluster/clusteringsuite/metadata.xml |
283 |
@@ -8,7 +8,7 @@ |
284 |
<use> |
285 |
<flag name="mpi">enable mpi for distributed version</flag> |
286 |
<flag name="muster">enable support for <pkg>sys-cluster/muster</pkg> algorithms</flag> |
287 |
- <!--<flag name="treedbscan">enable compilation of TreeDBSCAN support for <pkg>sys-cluster/extrae</pkg></flag>--> |
288 |
+ <flag name="treedbscan">enable compilation of TreeDBSCAN support for <pkg>sys-cluster/extrae</pkg></flag> |
289 |
</use> |
290 |
<upstream> |
291 |
<bugs-to>https://github.com/bsc-performance-tools/clustering-suite/issues</bugs-to> |