Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/mysql-cluster: metadata.xml mysql-cluster-7.3.6.ebuild mysql-cluster-7.2.17.ebuild ChangeLog
Date: Sun, 03 Aug 2014 21:42:43
Message-Id: 20140803214236.72CAE2004F@flycatcher.gentoo.org
1 robbat2 14/08/03 21:42:35
2
3 Added: metadata.xml mysql-cluster-7.3.6.ebuild
4 mysql-cluster-7.2.17.ebuild ChangeLog
5 Log:
6 Bring MySQL-Cluster from the overlay into the tree. Thanks to the great work of Brian Evans <grknight@g.o>. Keywords not ported from other builds, as this contains other code not previously tested on other arches.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.1 dev-db/mysql-cluster/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-cluster/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-cluster/metadata.xml?rev=1.1&content-type=text/plain
15
16 Index: metadata.xml
17 ===================================================================
18 <?xml version="1.0" encoding="UTF-8"?>
19 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
20 <pkgmetadata>
21 <herd>mysql</herd>
22 <use>
23 <flag name='cluster'>Add support for NDB clustering</flag>
24 <flag name='community'>Enables the community features from upstream.</flag>
25 <flag name='embedded'>Build embedded server (libmysqld)</flag>
26 <flag name='extraengine'>Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag>
27 <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag>
28 <flag name='latin1'>Use LATIN1 encoding instead of UTF8</flag>
29 <flag name='max-idx-128'>Raise the max index per table limit from 64 to 128</flag>
30 <flag name='minimal'>Install client programs only, no server</flag>
31 <flag name='profiling'>Add support for statement profiling (requires USE=community).</flag>
32 <flag name="systemtap">Build support for profiling and tracing using <pkg>dev-util/systemtap</pkg></flag>
33 <flag name='test'>Install upstream testsuites for end use.</flag>
34 </use>
35 </pkgmetadata>
36
37
38
39 1.1 dev-db/mysql-cluster/mysql-cluster-7.3.6.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-cluster/mysql-cluster-7.3.6.ebuild?rev=1.1&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-cluster/mysql-cluster-7.3.6.ebuild?rev=1.1&content-type=text/plain
43
44 Index: mysql-cluster-7.3.6.ebuild
45 ===================================================================
46 # Copyright 1999-2014 Gentoo Foundation
47 # Distributed under the terms of the GNU General Public License v2
48 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-cluster/mysql-cluster-7.3.6.ebuild,v 1.1 2014/08/03 21:42:35 robbat2 Exp $
49
50 EAPI=4
51 MY_EXTRAS_VER="live"
52 BUILD="cmake"
53
54 # PBXT
55 #PBXT_VERSION='1.0.11-6-pre-ga'
56 # XtraDB
57 #PERCONA_VER='5.1.45-10' XTRADB_VER='1.0.6-10'
58
59 inherit toolchain-funcs java-pkg-opt-2 mysql-v2
60 # only to make repoman happy. it is really set in the eclass
61 IUSE="$IUSE"
62
63 # REMEMBER: also update eclass/mysql*.eclass before committing!
64 KEYWORDS="~amd64 ~x86"
65
66 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
67 # This is often broken still
68 #EPATCH_EXCLUDE='02040_all_embedded-library-shared-5.1.43.patch '
69
70 DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
71 RDEPEND="!media-sound/amarok[embedded]"
72
73 # Please do not add a naive src_unpack to this ebuild
74 # If you want to add a single patch, copy the ebuild to an overlay
75 # and create your own mysql-extras tarball, looking at 000_index.txt
76
77 # Official test instructions:
78 # USE='cluster extraengine perl ssl community' \
79 # FEATURES='test userpriv -usersandbox' \
80 # ebuild mysql-cluster-X.X.XX.ebuild \
81 # digest clean package
82 src_test() {
83
84 local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
85 local retstatus_unit
86 local retstatus_tests
87
88 # Bug #213475 - MySQL _will_ object strenously if your machine is named
89 # localhost. Also causes weird failures.
90 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
91
92 if ! use "minimal" ; then
93
94 if [[ $UID -eq 0 ]]; then
95 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
96 fi
97 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
98
99 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
100 addpredict /this-dir-does-not-exist/t9.MYI
101
102 # Run CTest (test-units)
103 cmake-utils_src_test
104 retstatus_unit=$?
105 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
106
107 # Ensure that parallel runs don't die
108 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
109
110 # create directories because mysqladmin might right out of order
111 mkdir -p "${S}"/mysql-test/var-tests{,/log}
112
113 # These are failing in MySQL 5.5/5.6 for now and are believed to be
114 # false positives:
115 #
116 # main.information_schema, binlog.binlog_statement_insert_delayed,
117 # main.mysqld--help-notwin, funcs_1.is_triggers funcs_1.is_tables_mysql,
118 # funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
119 # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
120 # mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
121 # perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
122 # fails due to USE=-latin1 / utf8 default
123 #
124 # main.mysql_client_test:
125 # segfaults at random under Portage only, suspect resource limits.
126 #
127 # main.mysql_tzinfo_to_sql_symlink
128 # fails due to missing mysql_test/std_data/zoneinfo/GMT file from archive
129 #
130 for t in \
131 binlog.binlog_mysqlbinlog_filter \
132 binlog.binlog_statement_insert_delayed \
133 funcs_1.is_columns_mysql \
134 funcs_1.is_tables_mysql \
135 funcs_1.is_triggers \
136 main.information_schema \
137 main.mysqld--help-notwinfuncs_1.is_triggers \
138 main.mysql_client_test \
139 main.mysql_tzinfo_to_sql_symlink \
140 mysqld--help-notwin \
141 perfschema.binlog_edge_mix \
142 perfschema.binlog_edge_stmt \
143 ; do
144 mysql-v2_disable_test "$t" "False positives in Gentoo"
145 done
146 # ndb.ndbinfo, ndb_binlog.ndb_binlog_index: latin1/utf8
147 for t in \
148 ndb.ndbinfo \
149 ndb_binlog.ndb_binlog_index ; do
150 mysql-v2_disable_test "$t" "False positives in Gentoo (NDB)"
151 done
152
153 # Run mysql tests
154 pushd "${TESTDIR}"
155
156 # run mysql-test tests
157 perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" \
158 --parallel=auto
159 retstatus_tests=$?
160 [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
161 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
162
163 popd
164
165 # Cleanup is important for these testcases.
166 pkill -9 -f "${S}/ndb" 2>/dev/null
167 pkill -9 -f "${S}/sql" 2>/dev/null
168
169 failures=""
170 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
171 [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
172 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
173
174 [[ -z "$failures" ]] || die "Test failures: $failures"
175 einfo "Tests successfully completed"
176
177 else
178
179 einfo "Skipping server tests due to minimal build."
180 fi
181 }
182
183
184
185 1.1 dev-db/mysql-cluster/mysql-cluster-7.2.17.ebuild
186
187 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-cluster/mysql-cluster-7.2.17.ebuild?rev=1.1&view=markup
188 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-cluster/mysql-cluster-7.2.17.ebuild?rev=1.1&content-type=text/plain
189
190 Index: mysql-cluster-7.2.17.ebuild
191 ===================================================================
192 # Copyright 1999-2014 Gentoo Foundation
193 # Distributed under the terms of the GNU General Public License v2
194 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-cluster/mysql-cluster-7.2.17.ebuild,v 1.1 2014/08/03 21:42:35 robbat2 Exp $
195
196 EAPI=4
197 MY_EXTRAS_VER="live"
198 BUILD="cmake"
199
200 # PBXT
201 #PBXT_VERSION='1.0.11-6-pre-ga'
202 # XtraDB
203 #PERCONA_VER='5.1.45-10' XTRADB_VER='1.0.6-10'
204
205 inherit toolchain-funcs java-pkg-opt-2 mysql-v2
206 # only to make repoman happy. it is really set in the eclass
207 IUSE="$IUSE"
208
209 # REMEMBER: also update eclass/mysql*.eclass before committing!
210 KEYWORDS="~amd64 ~x86"
211
212 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
213 # This is often broken still
214 EPATCH_EXCLUDE='02040_all_embedded-library-shared-5.1.43.patch '
215
216 DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
217 RDEPEND="!media-sound/amarok[embedded]"
218
219 # Please do not add a naive src_unpack to this ebuild
220 # If you want to add a single patch, copy the ebuild to an overlay
221 # and create your own mysql-extras tarball, looking at 000_index.txt
222
223 # Official test instructions:
224 # USE='cluster extraengine perl ssl community' \
225 # FEATURES='test userpriv -usersandbox' \
226 # ebuild mysql-cluster-X.X.XX.ebuild \
227 # digest clean package
228 src_test() {
229
230 local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
231 local retstatus_unit
232 local retstatus_tests
233
234 # Bug #213475 - MySQL _will_ object strenously if your machine is named
235 # localhost. Also causes weird failures.
236 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
237
238 if ! use "minimal" ; then
239
240 if [[ $UID -eq 0 ]]; then
241 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
242 fi
243 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
244
245 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
246 addpredict /this-dir-does-not-exist/t9.MYI
247
248 # Run CTest (test-units)
249 cmake-utils_src_test
250 retstatus_unit=$?
251 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
252
253 # Ensure that parallel runs don't die
254 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
255
256 # create directories because mysqladmin might right out of order
257 mkdir -p "${S}"/mysql-test/var-tests{,/log}
258
259 # These are failing in MySQL 5.5 for now and are believed to be
260 # false positives:
261 #
262 # main.information_schema, binlog.binlog_statement_insert_delayed,
263 # main.mysqld--help-notwin, ndb.ndbinfo, ndb_binlog.ndb_binlog_index
264 # fails due to USE=-latin1 / utf8 default
265 #
266 # main.mysql_client_test:
267 # segfaults at random under Portage only, suspect resource limits.
268 #
269 # sys_vars.plugin_dir_basic
270 # fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin
271 # instead of MYSQL_LIBDIR/plugin
272 #
273 # main.flush_read_lock_kill
274 # fails because of unknown system variable 'DEBUG_SYNC'
275 #
276 # main.openssl_1
277 # error message changing
278 # -mysqltest: Could not open connection 'default': 2026 SSL connection
279 # error: ASN: bad other signature confirmation
280 # +mysqltest: Could not open connection 'default': 2026 SSL connection
281 # error: error:00000001:lib(0):func(0):reason(1)
282 #
283
284 for t in main.mysql_client_test \
285 binlog.binlog_statement_insert_delayed main.information_schema \
286 main.mysqld--help-notwin main.flush_read_lock_kill \
287 sys_vars.plugin_dir_basic main.openssl_1 \
288 ndb.ndbinfo ndb_binlog.ndb_binlog_index ; do
289 mysql-v2_disable_test "$t" "False positives in Gentoo"
290 done
291
292 # Run mysql tests
293 pushd "${TESTDIR}"
294
295 # run mysql-test tests
296 perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" \
297 --parallel=auto
298 retstatus_tests=$?
299 [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
300 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
301
302 popd
303
304 # Cleanup is important for these testcases.
305 pkill -9 -f "${S}/ndb" 2>/dev/null
306 pkill -9 -f "${S}/sql" 2>/dev/null
307
308 failures=""
309 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
310 [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
311 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
312
313 [[ -z "$failures" ]] || die "Test failures: $failures"
314 einfo "Tests successfully completed"
315
316 else
317
318 einfo "Skipping server tests due to minimal build."
319 fi
320 }
321
322
323
324 1.1 dev-db/mysql-cluster/ChangeLog
325
326 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-cluster/ChangeLog?rev=1.1&view=markup
327 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-cluster/ChangeLog?rev=1.1&content-type=text/plain
328
329 Index: ChangeLog
330 ===================================================================
331 # ChangeLog for dev-db/mysql-cluster
332 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
333 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-cluster/ChangeLog,v 1.1 2014/08/03 21:42:35 robbat2 Exp $
334
335 *mysql-cluster-7.2.17 (03 Aug 2014)
336 *mysql-cluster-7.3.6 (03 Aug 2014)
337
338 03 Aug 2014; Robin H. Johnson <robbat2@g.o> +files/my.cnf-5.5,
339 +metadata.xml, +mysql-cluster-7.2.17.ebuild, +mysql-cluster-7.3.6.ebuild:
340 Bring MySQL-Cluster from the overlay into the tree. Thanks to the great work
341 of Brian Evans <grknight@g.o>. Keywords not ported from other builds,
342 as this contains other code not previously tested on other arches.