1 |
robbat2 12/04/02 00:39:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mysql-5.1.62.ebuild mysql-5.0.96.ebuild |
5 |
mysql-5.5.22.ebuild |
6 |
Log: |
7 |
Version bump to all series, 5.0, 5.1, 5.5. Please note that 5.0.x is hard-masked, and exists for the upgrade path only. It is not recommended for production use. |
8 |
|
9 |
(Portage version: 2.2.0_alpha93/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.608 dev-db/mysql/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?rev=1.608&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?rev=1.608&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?r1=1.607&r2=1.608 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v |
21 |
retrieving revision 1.607 |
22 |
retrieving revision 1.608 |
23 |
diff -p -w -b -B -u -u -r1.607 -r1.608 |
24 |
--- ChangeLog 3 Mar 2012 17:12:21 -0000 1.607 |
25 |
+++ ChangeLog 2 Apr 2012 00:39:27 -0000 1.608 |
26 |
@@ -1,6 +1,16 @@ |
27 |
# ChangeLog for dev-db/mysql |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.607 2012/03/03 17:12:21 ranger Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.608 2012/04/02 00:39:27 robbat2 Exp $ |
31 |
+ |
32 |
+*mysql-5.1.62 (02 Apr 2012) |
33 |
+*mysql-5.0.96 (02 Apr 2012) |
34 |
+*mysql-5.5.22 (02 Apr 2012) |
35 |
+ |
36 |
+ 02 Apr 2012; Robin H. Johnson <robbat2@g.o> +mysql-5.0.96.ebuild, |
37 |
+ +mysql-5.1.62.ebuild, +mysql-5.5.22.ebuild: |
38 |
+ Version bump to all series, 5.0, 5.1, 5.5. Please note that 5.0.x is hard- |
39 |
+ masked, and exists for the upgrade path only. It is not recommended for |
40 |
+ production use. |
41 |
|
42 |
03 Mar 2012; Brent Baude <ranger@g.o> mysql-5.1.61.ebuild: |
43 |
Marking mysql-5.1.61 ppc64 for bug 399375 |
44 |
|
45 |
|
46 |
|
47 |
1.1 dev-db/mysql/mysql-5.1.62.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.1.62.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.1.62.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: mysql-5.1.62.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2012 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.62.ebuild,v 1.1 2012/04/02 00:39:27 robbat2 Exp $ |
57 |
|
58 |
EAPI="4" |
59 |
|
60 |
MY_EXTRAS_VER="20120401-2131Z" |
61 |
# PBXT |
62 |
PBXT_VERSION='1.0.11-6-pre-ga' |
63 |
# XtraDB |
64 |
PERCONA_VER='5.1.45-10' XTRADB_VER='1.0.6-10' |
65 |
|
66 |
# Build type |
67 |
BUILD="autotools" |
68 |
|
69 |
inherit toolchain-funcs mysql-v2 |
70 |
|
71 |
# only to make repoman happy. it is really set in the eclass |
72 |
IUSE="$IUSE" |
73 |
|
74 |
# REMEMBER: also update eclass/mysql*.eclass before committing! |
75 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-solaris" |
76 |
|
77 |
# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
78 |
# This is often broken still |
79 |
EPATCH_EXCLUDE='' |
80 |
|
81 |
# Most of these are in the eclass |
82 |
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 ) |
83 |
>=sys-devel/libtool-2.2.10" |
84 |
RDEPEND="${RDEPEND}" |
85 |
|
86 |
# Please do not add a naive src_unpack to this ebuild |
87 |
# If you want to add a single patch, copy the ebuild to an overlay |
88 |
# and create your own mysql-extras tarball, looking at 000_index.txt |
89 |
src_prepare() { |
90 |
sed -i \ |
91 |
-e '/^noinst_PROGRAMS/s/basic-t//g' \ |
92 |
"${S}"/unittest/mytap/t/Makefile.am |
93 |
mysql-v2_src_prepare |
94 |
} |
95 |
|
96 |
# Official test instructions: |
97 |
# USE='berkdb -cluster embedded extraengine perl ssl community' \ |
98 |
# FEATURES='test userpriv -usersandbox' \ |
99 |
# ebuild mysql-X.X.XX.ebuild \ |
100 |
# digest clean package |
101 |
src_test() { |
102 |
# Bug #213475 - MySQL _will_ object strenously if your machine is named |
103 |
# localhost. Also causes weird failures. |
104 |
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
105 |
|
106 |
emake check || die "make check failed" |
107 |
if ! use "minimal" ; then |
108 |
if [[ $UID -eq 0 ]]; then |
109 |
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
110 |
fi |
111 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
112 |
cd "${S}" |
113 |
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
114 |
local retstatus_unit |
115 |
local retstatus_ns |
116 |
local retstatus_ps |
117 |
local t |
118 |
addpredict /this-dir-does-not-exist/t9.MYI |
119 |
|
120 |
# Ensure that parallel runs don't die |
121 |
export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
122 |
|
123 |
# archive_gis really sucks a lot, but it's only relevant for the |
124 |
# USE=extraengines case |
125 |
case ${PV} in |
126 |
5.0.42) |
127 |
mysql-v2_disable_test "archive_gis" "Totally broken in 5.0.42" |
128 |
;; |
129 |
|
130 |
5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87) |
131 |
[ "$(tc-endian)" == "big" ] && \ |
132 |
mysql-v2_disable_test \ |
133 |
"archive_gis" \ |
134 |
"Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only" |
135 |
;; |
136 |
esac |
137 |
|
138 |
# This was a slight testcase breakage when the read_only security issue |
139 |
# was fixed. |
140 |
case ${PV} in |
141 |
5.0.54|5.0.51*) |
142 |
mysql-v2_disable_test \ |
143 |
"read_only" \ |
144 |
"Broken in 5.0.51-54, output in wrong order" |
145 |
;; |
146 |
esac |
147 |
|
148 |
# Ditto to read_only |
149 |
[ "${PV}" == "5.0.51a" ] && \ |
150 |
mysql-v2_disable_test \ |
151 |
"view" \ |
152 |
"Broken in 5.0.51, output in wrong order" |
153 |
|
154 |
# x86-specific, OOM issue with some subselects on low memory servers |
155 |
[ "${PV}" == "5.0.54" ] && \ |
156 |
[ "${ARCH/x86}" != "${ARCH}" ] && \ |
157 |
mysql-v2_disable_test \ |
158 |
"subselect" \ |
159 |
"Testcase needs tuning on x86 for oom condition" |
160 |
|
161 |
# Broke with the YaSSL security issue that didn't affect Gentoo. |
162 |
[ "${PV}" == "5.0.56" ] && \ |
163 |
for t in openssl_1 rpl_openssl rpl_ssl ssl \ |
164 |
ssl_8k_key ssl_compress ssl_connect ; do \ |
165 |
mysql-v2_disable_test \ |
166 |
"$t" \ |
167 |
"OpenSSL tests broken on 5.0.56" |
168 |
done |
169 |
|
170 |
# New test was broken in first time |
171 |
# Upstream bug 41066 |
172 |
# http://bugs.mysql.com/bug.php?id=41066 |
173 |
[ "${PV}" == "5.0.72" ] && \ |
174 |
mysql-v2_disable_test \ |
175 |
"status2" \ |
176 |
"Broken in 5.0.72, new test is broken, upstream bug #41066" |
177 |
|
178 |
# The entire 5.0 series has pre-generated SSL certificates, they have |
179 |
# mostly expired now. ${S}/mysql-tests/std-data/*.pem |
180 |
# The certs really SHOULD be generated for the tests, so that they are |
181 |
# not expiring like this. We cannot do so ourselves as the tests look |
182 |
# closely as the cert path data, and we do not have the CA key to regen |
183 |
# ourselves. Alternatively, upstream should generate them with at least |
184 |
# 50-year validity. |
185 |
# |
186 |
# Known expiry points: |
187 |
# 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09 |
188 |
# 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27 |
189 |
# 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28 |
190 |
# |
191 |
# mysql-test/std_data/untrusted-cacert.pem is MEANT to be |
192 |
# expired/invalid. |
193 |
case ${PV} in |
194 |
5.0.*|5.1.*|5.4.*|5.5.*) |
195 |
for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \ |
196 |
ssl_compress ssl_connect rpl.rpl_heartbeat_ssl ; do \ |
197 |
mysql-v2_disable_test \ |
198 |
"$t" \ |
199 |
"These OpenSSL tests break due to expired certificates" |
200 |
done |
201 |
;; |
202 |
esac |
203 |
|
204 |
# These are also failing in MySQL 5.1 for now, and are believed to be |
205 |
# false positives: |
206 |
# |
207 |
# main.mysql_comment, main.mysql_upgrade, main.information_schema, |
208 |
# funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers: |
209 |
# fails due to USE=-latin1 / utf8 default |
210 |
# |
211 |
# main.mysql_client_test: |
212 |
# segfaults at random under Portage only, suspect resource limits. |
213 |
# |
214 |
# main.not_partition: |
215 |
# Failure reason unknown at this time, must resolve before package.mask |
216 |
# removal FIXME |
217 |
case ${PV} in |
218 |
5.1.*|5.4.*|5.5.*) |
219 |
for t in main.mysql_client_test main.mysql_comments \ |
220 |
main.mysql_upgrade \ |
221 |
main.information_schema \ |
222 |
main.not_partition funcs_1.is_columns_mysql \ |
223 |
funcs_1.is_tables_mysql funcs_1.is_triggers; do |
224 |
mysql-v2_disable_test "$t" "False positives in Gentoo" |
225 |
done |
226 |
;; |
227 |
esac |
228 |
|
229 |
# New failures in 5.1.50/5.1.51, reported by jmbsvicetto. |
230 |
# These tests are picking up a 'connect-timeout' config from somewhere, |
231 |
# which is not valid, and since it does not have 'loose-' in front of |
232 |
# it, it's causing a failure |
233 |
case ${PV} in |
234 |
5.1.5*|5.4.*|5.5.*|6*) |
235 |
for t in rpl.rpl_mysql_upgrade main.log_tables_upgrade ; do |
236 |
mysql-v2_disable_test "$t" \ |
237 |
"False positives in Gentoo: connect-timeout" |
238 |
done |
239 |
;; |
240 |
esac |
241 |
|
242 |
use profiling && use community \ |
243 |
|| mysql-v2_disable_test main.profiling \ |
244 |
"Profiling test needs profiling support" |
245 |
|
246 |
if [ "${PN}" == "mariadb" ]; then |
247 |
for t in \ |
248 |
parts.part_supported_sql_func_ndb \ |
249 |
parts.partition_auto_increment_ndb ; do |
250 |
mysql-v2_disable_test $t "ndb not supported in mariadb" |
251 |
done |
252 |
fi |
253 |
|
254 |
# This fail with XtraDB in place of normal InnoDB |
255 |
# TODO: test if they are broken with the rest of the Percona patches |
256 |
if xtradb_patch_available && use xtradb ; then |
257 |
for t in main.innodb innodb.innodb_bug51378 \ |
258 |
main.information_schema_db main.mysqlshow \ |
259 |
main.innodb-autoinc main.innodb_bug21704 \ |
260 |
main.innodb_bug44369 main.innodb_bug46000 \ |
261 |
main.index_merge_innodb \ |
262 |
innodb.innodb innodb.innodb_misc1 innodb.innodb_bug52663 \ |
263 |
innodb.innodb-autoinc innodb.innodb-autoinc-44030 \ |
264 |
innodb.innodb_bug21704 innodb.innodb_bug44369 \ |
265 |
innodb.innodb_bug46000 innodb.innodb_bug48024 \ |
266 |
innodb.innodb_bug49164 innodb.innodb_bug51920 \ |
267 |
innodb.innodb_bug54044 \ |
268 |
; do |
269 |
mysql-v2_disable_test $t "tests broken in xtradb" |
270 |
done |
271 |
fi |
272 |
|
273 |
if ! use extraengine ; then |
274 |
# bug 332565 |
275 |
for t in main.range ; do |
276 |
mysql-v2_disable_test $t "Test $t requires USE=extraengine" |
277 |
done |
278 |
# bug 401673 |
279 |
for t in federated.federated_plugin ; do |
280 |
mysql-v2_disable_test $t "Test $t requires USE=extraengine (Need federated engine)" |
281 |
done |
282 |
fi |
283 |
|
284 |
# create directories because mysqladmin might make out of order |
285 |
mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log} |
286 |
|
287 |
# We run the test protocols seperately |
288 |
emake test-unit |
289 |
retstatus_unit=$? |
290 |
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
291 |
|
292 |
emake test-ns force="--force --vardir=${S}/mysql-test/var-ns" |
293 |
retstatus_ns=$? |
294 |
[[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed" |
295 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
296 |
|
297 |
emake test-ps force="--force --vardir=${S}/mysql-test/var-ps" |
298 |
retstatus_ps=$? |
299 |
[[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed" |
300 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
301 |
|
302 |
# TODO: |
303 |
# When upstream enables the pr and nr testsuites, we need those as well. |
304 |
|
305 |
# Cleanup is important for these testcases. |
306 |
pkill -9 -f "${S}/ndb" 2>/dev/null |
307 |
pkill -9 -f "${S}/sql" 2>/dev/null |
308 |
failures="" |
309 |
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
310 |
[[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns" |
311 |
[[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps" |
312 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
313 |
[[ -z "$failures" ]] || die "Test failures: $failures" |
314 |
einfo "Tests successfully completed" |
315 |
else |
316 |
einfo "Skipping server tests due to minimal build." |
317 |
fi |
318 |
} |
319 |
|
320 |
|
321 |
|
322 |
1.1 dev-db/mysql/mysql-5.0.96.ebuild |
323 |
|
324 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.0.96.ebuild?rev=1.1&view=markup |
325 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.0.96.ebuild?rev=1.1&content-type=text/plain |
326 |
|
327 |
Index: mysql-5.0.96.ebuild |
328 |
=================================================================== |
329 |
# Copyright 1999-2012 Gentoo Foundation |
330 |
# Distributed under the terms of the GNU General Public License v2 |
331 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.0.96.ebuild,v 1.1 2012/04/02 00:39:27 robbat2 Exp $ |
332 |
|
333 |
MY_EXTRAS_VER="20120401-2131Z" |
334 |
EAPI="4" |
335 |
|
336 |
inherit toolchain-funcs mysql |
337 |
# only to make repoman happy. it is really set in the eclass |
338 |
IUSE="$IUSE" |
339 |
|
340 |
# REMEMBER: also update eclass/mysql*.eclass before committing! |
341 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" |
342 |
|
343 |
# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
344 |
EPATCH_EXCLUDE='' |
345 |
|
346 |
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" |
347 |
RDEPEND="" |
348 |
|
349 |
# Please do not add a naive src_unpack to this ebuild |
350 |
# If you want to add a single patch, copy the ebuild to an overlay |
351 |
# and create your own mysql-extras tarball, looking at 000_index.txt |
352 |
|
353 |
# Official test instructions: |
354 |
# USE='berkdb -cluster embedded extraengine perl ssl community' \ |
355 |
# FEATURES='test userpriv -usersandbox' \ |
356 |
# ebuild mysql-X.X.XX.ebuild \ |
357 |
# digest clean package |
358 |
src_test() { |
359 |
# Bug #213475 - MySQL _will_ object strenously if your machine is named |
360 |
# localhost. Also causes weird failures. |
361 |
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
362 |
|
363 |
emake check || die "make check failed" |
364 |
if ! use "minimal" ; then |
365 |
if [[ $UID -eq 0 ]]; then |
366 |
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
367 |
fi |
368 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
369 |
cd "${S}" |
370 |
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
371 |
local retstatus_ns |
372 |
local retstatus_ps |
373 |
local t |
374 |
addpredict /this-dir-does-not-exist/t9.MYI |
375 |
|
376 |
# Ensure that parallel runs don't die |
377 |
export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
378 |
|
379 |
# archive_gis really sucks a lot, but it's only relevant for the |
380 |
# USE=extraengines case |
381 |
case ${PV} in |
382 |
5.0.42) |
383 |
mysql_disable_test "archive_gis" "Totally broken in 5.0.42" |
384 |
;; |
385 |
|
386 |
5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87) |
387 |
[ "$(tc-endian)" == "big" ] && \ |
388 |
mysql_disable_test \ |
389 |
"archive_gis" \ |
390 |
"Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only" |
391 |
;; |
392 |
esac |
393 |
|
394 |
# This was a slight testcase breakage when the read_only security issue |
395 |
# was fixed. |
396 |
case ${PV} in |
397 |
5.0.54|5.0.51*) |
398 |
mysql_disable_test \ |
399 |
"read_only" \ |
400 |
"Broken in 5.0.51-54, output in wrong order" |
401 |
;; |
402 |
esac |
403 |
|
404 |
# Ditto to read_only |
405 |
[ "${PV}" == "5.0.51a" ] && \ |
406 |
mysql_disable_test \ |
407 |
"view" \ |
408 |
"Broken in 5.0.51, output in wrong order" |
409 |
|
410 |
# x86-specific, OOM issue with some subselects on low memory servers |
411 |
[ "${PV}" == "5.0.54" ] && \ |
412 |
[ "${ARCH/x86}" != "${ARCH}" ] && \ |
413 |
mysql_disable_test \ |
414 |
"subselect" \ |
415 |
"Testcase needs tuning on x86 for oom condition" |
416 |
|
417 |
# Broke with the YaSSL security issue that didn't affect Gentoo. |
418 |
[ "${PV}" == "5.0.56" ] && \ |
419 |
for t in openssl_1 rpl_openssl rpl_ssl ssl \ |
420 |
ssl_8k_key ssl_compress ssl_connect ; do \ |
421 |
mysql_disable_test \ |
422 |
"$t" \ |
423 |
"OpenSSL tests broken on 5.0.56" |
424 |
done |
425 |
|
426 |
# New test was broken in first time |
427 |
# Upstream bug 41066 |
428 |
# http://bugs.mysql.com/bug.php?id=41066 |
429 |
[ "${PV}" == "5.0.72" ] && \ |
430 |
mysql_disable_test \ |
431 |
"status2" \ |
432 |
"Broken in 5.0.72, new test is broken, upstream bug #41066" |
433 |
|
434 |
# The entire 5.0 series has pre-generated SSL certificates, they have |
435 |
# mostly expired now. ${S}/mysql-tests/std-data/*.pem |
436 |
# The certs really SHOULD be generated for the tests, so that they are |
437 |
# not expiring like this. We cannot do so ourselves as the tests look |
438 |
# closely as the cert path data, and we do not have the CA key to regen |
439 |
# ourselves. Alternatively, upstream should generate them with at least |
440 |
# 50-year validity. |
441 |
# |
442 |
# Known expiry points: |
443 |
# 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09 |
444 |
# 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27 |
445 |
# 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28 |
446 |
# |
447 |
# mysql-test/std_data/untrusted-cacert.pem is MEANT to be |
448 |
# expired/invalid. |
449 |
case ${PV} in |
450 |
5.0.*|5.1.*) |
451 |
for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \ |
452 |
ssl_compress ssl_connect ; do \ |
453 |
mysql_disable_test \ |
454 |
"$t" \ |
455 |
"These OpenSSL tests break due to expired certificates" |
456 |
done |
457 |
;; |
458 |
esac |
459 |
|
460 |
# These are also failing in MySQL 5.0 for now, and are believed to be |
461 |
# false positives: |
462 |
# |
463 |
# main.mysql_comment, main.mysql_upgrade: |
464 |
# fails due to USE=-latin1 / utf8 default |
465 |
# |
466 |
# main.mysql_client_test: |
467 |
# segfaults at random under Portage only, suspect resource limits. |
468 |
case ${PV} in |
469 |
5.0.*) |
470 |
for t in main.mysql_client_test main.mysql_comments main.mysql_upgrade; do |
471 |
mysql_disable_test "$t" "False positives in Gentoo" |
472 |
done |
473 |
;; |
474 |
esac |
475 |
|
476 |
use profiling && use community \ |
477 |
|| mysql_disable_test main.profiling \ |
478 |
"Profiling test needs profiling support" |
479 |
|
480 |
if [ "${PN}" == "mariadb" ]; then |
481 |
for t in \ |
482 |
parts.part_supported_sql_func_ndb \ |
483 |
parts.partition_auto_increment_ndb ; do |
484 |
mysql_disable_test $t "ndb not supported in mariadb" |
485 |
done |
486 |
fi |
487 |
|
488 |
case $PV in |
489 |
5.0.91) |
490 |
for t in archive archive_gis archive-big \ |
491 |
federated_archive mysqldump-max \ |
492 |
; do |
493 |
mysql_disable_test $t "Broken in $PV" |
494 |
done |
495 |
;; |
496 |
5.0.96) |
497 |
for t in \ |
498 |
client_xml compress connect ctype_recoding drop \ |
499 |
federated grant information_schema \ |
500 |
information_schema_db innodb lowercase_table \ |
501 |
lowercase_utf8 mysql-bug41486 mysql-bug45236 mysql \ |
502 |
mysqlcheck mysqldump-max mysqldump mysqldump_restore \ |
503 |
mysqlshow ps ps_1general rename rpl000009 rpl_ddl \ |
504 |
rpl_delete_all rpl_drop_db rpl_dual_pos_advance \ |
505 |
rpl_error_ignored_table rpl_filter_tables_not_exist \ |
506 |
rpl_replicate_do rpl_trigger_not_windows select \ |
507 |
show_check sp system_mysql_db system_mysql_db_fix30020 \ |
508 |
system_mysql_db_fix40123 view \ |
509 |
; do |
510 |
mysql_disable_test $t "Broken in $PV" |
511 |
done |
512 |
;; |
513 |
esac |
514 |
|
515 |
|
516 |
|
517 |
# create directories because mysqladmin might make out of order |
518 |
mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log} |
519 |
|
520 |
# We run the test protocols seperately |
521 |
emake test-ns force="--force --vardir=${S}/mysql-test/var-ns" |
522 |
retstatus_ns=$? |
523 |
[[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed" |
524 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
525 |
|
526 |
emake test-ps force="--force --vardir=${S}/mysql-test/var-ps" |
527 |
retstatus_ps=$? |
528 |
[[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed" |
529 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
530 |
|
531 |
# Cleanup is important for these testcases. |
532 |
pkill -9 -f "${S}/ndb" 2>/dev/null |
533 |
pkill -9 -f "${S}/sql" 2>/dev/null |
534 |
failures="" |
535 |
[[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns" |
536 |
[[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps" |
537 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
538 |
[[ -z "$failures" ]] || die "Test failures: $failures" |
539 |
einfo "Tests successfully completed" |
540 |
else |
541 |
einfo "Skipping server tests due to minimal build." |
542 |
fi |
543 |
} |
544 |
|
545 |
|
546 |
|
547 |
1.1 dev-db/mysql/mysql-5.5.22.ebuild |
548 |
|
549 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.5.22.ebuild?rev=1.1&view=markup |
550 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.5.22.ebuild?rev=1.1&content-type=text/plain |
551 |
|
552 |
Index: mysql-5.5.22.ebuild |
553 |
=================================================================== |
554 |
# Copyright 1999-2012 Gentoo Foundation |
555 |
# Distributed under the terms of the GNU General Public License v2 |
556 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.5.22.ebuild,v 1.1 2012/04/02 00:39:27 robbat2 Exp $ |
557 |
|
558 |
EAPI="4" |
559 |
|
560 |
MY_EXTRAS_VER="20120401-2131Z" |
561 |
MY_PV="${PV//_alpha_pre/-m}" |
562 |
MY_PV="${MY_PV//_/-}" |
563 |
|
564 |
# Build type |
565 |
BUILD="cmake" |
566 |
|
567 |
inherit toolchain-funcs mysql-v2 |
568 |
# only to make repoman happy. it is really set in the eclass |
569 |
IUSE="$IUSE" |
570 |
|
571 |
# Define the mysql-extras source |
572 |
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git" |
573 |
|
574 |
# REMEMBER: also update eclass/mysql*.eclass before committing! |
575 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
576 |
|
577 |
# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
578 |
EPATCH_EXCLUDE='' |
579 |
|
580 |
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" |
581 |
RDEPEND="${RDEPEND}" |
582 |
|
583 |
# Please do not add a naive src_unpack to this ebuild |
584 |
# If you want to add a single patch, copy the ebuild to an overlay |
585 |
# and create your own mysql-extras tarball, looking at 000_index.txt |
586 |
|
587 |
# Official test instructions: |
588 |
# USE='berkdb -cluster embedded extraengine perl ssl community' \ |
589 |
# FEATURES='test userpriv -usersandbox' \ |
590 |
# ebuild mysql-X.X.XX.ebuild \ |
591 |
# digest clean package |
592 |
src_test() { |
593 |
|
594 |
local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test" |
595 |
local retstatus_unit |
596 |
local retstatus_tests |
597 |
|
598 |
# Bug #213475 - MySQL _will_ object strenously if your machine is named |
599 |
# localhost. Also causes weird failures. |
600 |
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
601 |
|
602 |
if ! use "minimal" ; then |
603 |
|
604 |
if [[ $UID -eq 0 ]]; then |
605 |
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
606 |
fi |
607 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
608 |
|
609 |
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
610 |
addpredict /this-dir-does-not-exist/t9.MYI |
611 |
|
612 |
# Run CTest (test-units) |
613 |
cmake-utils_src_test |
614 |
retstatus_unit=$? |
615 |
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
616 |
|
617 |
# Ensure that parallel runs don't die |
618 |
export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
619 |
|
620 |
# create directories because mysqladmin might right out of order |
621 |
mkdir -p "${S}"/mysql-test/var-{tests}{,/log} |
622 |
|
623 |
# These are failing in MySQL 5.5 for now and are believed to be |
624 |
# false positives: |
625 |
# |
626 |
# main.information_schema, binlog.binlog_statement_insert_delayed, |
627 |
# main.mysqld--help-notwin |
628 |
# fails due to USE=-latin1 / utf8 default |
629 |
# |
630 |
# main.mysql_client_test: |
631 |
# segfaults at random under Portage only, suspect resource limits. |
632 |
# |
633 |
# sys_vars.plugin_dir_basic |
634 |
# fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin |
635 |
# instead of MYSQL_LIBDIR/plugin |
636 |
# |
637 |
# main.flush_read_lock_kill |
638 |
# fails because of unknown system variable 'DEBUG_SYNC' |
639 |
# |
640 |
# main.openssl_1 |
641 |
# error message changing |
642 |
# -mysqltest: Could not open connection 'default': 2026 SSL connection |
643 |
# error: ASN: bad other signature confirmation |
644 |
# +mysqltest: Could not open connection 'default': 2026 SSL connection |
645 |
# error: error:00000001:lib(0):func(0):reason(1) |
646 |
# |
647 |
|
648 |
for t in main.mysql_client_test \ |
649 |
binlog.binlog_statement_insert_delayed main.information_schema \ |
650 |
main.mysqld--help-notwin main.flush_read_lock_kill \ |
651 |
sys_vars.plugin_dir_basic main.openssl_1 ; do |
652 |
mysql-v2_disable_test "$t" "False positives in Gentoo" |
653 |
done |
654 |
|
655 |
# Run mysql tests |
656 |
pushd "${TESTDIR}" |
657 |
|
658 |
# run mysql-test tests |
659 |
perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" |
660 |
retstatus_tests=$? |
661 |
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
662 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
663 |
|
664 |
popd |
665 |
|
666 |
# Cleanup is important for these testcases. |
667 |
pkill -9 -f "${S}/ndb" 2>/dev/null |
668 |
pkill -9 -f "${S}/sql" 2>/dev/null |
669 |
|
670 |
failures="" |
671 |
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
672 |
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" |
673 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
674 |
|
675 |
[[ -z "$failures" ]] || die "Test failures: $failures" |
676 |
einfo "Tests successfully completed" |
677 |
|
678 |
else |
679 |
|
680 |
einfo "Skipping server tests due to minimal build." |
681 |
fi |
682 |
} |