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: mysql-5.1.42.ebuild ChangeLog mysql-5.1.43.ebuild mysql-5.1.41.ebuild metadata.xml mysql-5.1.39.ebuild
Date: Mon, 01 Feb 2010 01:19:39
Message-Id: E1Nbkwv-0001Ef-JS@stork.gentoo.org
1 robbat2 10/02/01 01:19:33
2
3 Modified: ChangeLog metadata.xml
4 Added: mysql-5.1.42.ebuild mysql-5.1.43.ebuild
5 mysql-5.1.41.ebuild mysql-5.1.39.ebuild
6 Log:
7 Bring in 5.1 series again from the overlay. 5.1.39 includes working Percona XtraDB. 5.1.42 should have XtraDB, but it does not compile. 5.1.43 is the latest from upstream, for security vulns. MANY thanks to jmbsvicetto for all the work he has put in helping on 5.1 updates.
8 (Portage version: 2.2_rc61/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.502 dev-db/mysql/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/ChangeLog?rev=1.502&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/ChangeLog?rev=1.502&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/ChangeLog?r1=1.501&r2=1.502
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v
20 retrieving revision 1.501
21 retrieving revision 1.502
22 diff -p -w -b -B -u -u -r1.501 -r1.502
23 --- ChangeLog 31 Jan 2010 22:33:37 -0000 1.501
24 +++ ChangeLog 1 Feb 2010 01:19:32 -0000 1.502
25 @@ -1,6 +1,18 @@
26 # ChangeLog for dev-db/mysql
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.501 2010/01/31 22:33:37 robbat2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.502 2010/02/01 01:19:32 robbat2 Exp $
30 +
31 +*mysql-5.1.43 (01 Feb 2010)
32 +*mysql-5.1.42 (01 Feb 2010)
33 +*mysql-5.1.41 (01 Feb 2010)
34 +*mysql-5.1.39 (01 Feb 2010)
35 +
36 + 01 Feb 2010; Robin H. Johnson <robbat2@g.o> +mysql-5.1.39.ebuild,
37 + +mysql-5.1.41.ebuild, +mysql-5.1.42.ebuild, +mysql-5.1.43.ebuild:
38 + Bring in 5.1 series again from the overlay. 5.1.39 includes working
39 + Percona XtraDB. 5.1.42 should have XtraDB, but it does not compile. 5.1.43
40 + is the latest from upstream, for security vulns. MANY thanks to
41 + jmbsvicetto for all the work he has put in helping on 5.1 updates.
42
43 31 Jan 2010; Robin H. Johnson <robbat2@g.o> mysql-5.0.54.ebuild,
44 mysql-5.0.70-r1.ebuild, mysql-5.0.72.ebuild, mysql-5.0.72-r1.ebuild,
45
46
47
48 1.8 dev-db/mysql/metadata.xml
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/metadata.xml?rev=1.8&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/metadata.xml?rev=1.8&content-type=text/plain
52 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/metadata.xml?r1=1.7&r2=1.8
53
54 Index: metadata.xml
55 ===================================================================
56 RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql/metadata.xml,v
57 retrieving revision 1.7
58 retrieving revision 1.8
59 diff -p -w -b -B -u -u -r1.7 -r1.8
60 --- metadata.xml 6 Jul 2009 19:08:59 -0000 1.7
61 +++ metadata.xml 1 Feb 2010 01:19:32 -0000 1.8
62 @@ -5,14 +5,15 @@
63 <use>
64 <flag name='big-tables'>Make tables contain up to 1.844E+19 rows</flag>
65 <flag name='cluster'>Add support for NDB clustering</flag>
66 + <flag name='community'>Enables the community features from upstream.</flag>
67 <flag name='embedded'>Build embedded server (libmysqld)</flag>
68 <flag name='extraengine'>Add support for alternative storage engines</flag>
69 <flag name='latin1'>Use LATIN1 encoding instead of UTF8</flag>
70 - <flag name='max-idx-128'>Raise the max index per table limit from 64 to 128
71 - </flag>
72 + <flag name='max-idx-128'>Raise the max index per table limit from 64 to 128</flag>
73 <flag name='minimal'>Install client programs only, no server</flag>
74 - <flag name='raid'>Deprecated option, removed in the 5.0 series</flag>
75 - <flag name='community'>Enables the community features from upstream.</flag>
76 + <flag name='pbxt'>Add experimental support for pbxt storage engine</flag>
77 <flag name='profiling'>Add support for statement profiling (requires USE=community).</flag>
78 + <flag name='raid'>Deprecated option, removed in the 5.0 series</flag>
79 + <flag name='xtradb'>Add experimental support for XtraDB storage engine</flag>
80 </use>
81 </pkgmetadata>
82
83
84
85 1.1 dev-db/mysql/mysql-5.1.42.ebuild
86
87 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/mysql-5.1.42.ebuild?rev=1.1&view=markup
88 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/mysql-5.1.42.ebuild?rev=1.1&content-type=text/plain
89
90 Index: mysql-5.1.42.ebuild
91 ===================================================================
92 # Copyright 1999-2010 Gentoo Foundation
93 # Distributed under the terms of the GNU General Public License v2
94 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.42.ebuild,v 1.1 2010/02/01 01:19:32 robbat2 Exp $
95
96 MY_EXTRAS_VER="20100201-0104Z"
97 EAPI=2
98
99 # Broken, does not compile
100 #XTRADB_VER="1.0.6-9"
101 #PERCONA_VER="5.1.42-9"
102
103 inherit toolchain-funcs mysql
104 # only to make repoman happy. it is really set in the eclass
105 IUSE="$IUSE"
106
107 # Define the mysql-extras source
108 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
109
110 # REMEMBER: also update eclass/mysql*.eclass before committing!
111 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
112
113 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
114 EPATCH_EXCLUDE=''
115
116 DEPEND="|| ( >=sys-devel/gcc-4 >=sys-devel/gcc-apple-4 )"
117 RDEPEND=""
118
119 # Please do not add a naive src_unpack to this ebuild
120 # If you want to add a single patch, copy the ebuild to an overlay
121 # and create your own mysql-extras tarball, looking at 000_index.txt
122
123 # Official test instructions:
124 # USE='berkdb cluster embedded extraengine perl ssl community' \
125 # FEATURES='test userpriv -usersandbox' \
126 # ebuild mysql-X.X.XX.ebuild \
127 # digest clean package
128 src_test() {
129 # Bug #213475 - MySQL _will_ object strenously if your machine is named
130 # localhost. Also causes weird failures.
131 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
132
133 emake check || die "make check failed"
134 if ! use "minimal" ; then
135 if [[ $UID -eq 0 ]]; then
136 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
137 fi
138 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
139 cd "${S}"
140 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
141 local retstatus_unit
142 local retstatus_ns
143 local retstatus_ps
144 local t
145 addpredict /this-dir-does-not-exist/t9.MYI
146
147 # Ensure that parallel runs don't die
148 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
149
150 # archive_gis really sucks a lot, but it's only relevant for the
151 # USE=extraengines case
152 case ${PV} in
153 5.0.42)
154 mysql_disable_test "archive_gis" "Totally broken in 5.0.42"
155 ;;
156
157 5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87)
158 [ "$(tc-endian)" == "big" ] && \
159 mysql_disable_test \
160 "archive_gis" \
161 "Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only"
162 ;;
163 esac
164
165 # This was a slight testcase breakage when the read_only security issue
166 # was fixed.
167 case ${PV} in
168 5.0.54|5.0.51*)
169 mysql_disable_test \
170 "read_only" \
171 "Broken in 5.0.51-54, output in wrong order"
172 ;;
173 esac
174
175 # Ditto to read_only
176 [ "${PV}" == "5.0.51a" ] && \
177 mysql_disable_test \
178 "view" \
179 "Broken in 5.0.51, output in wrong order"
180
181 # x86-specific, OOM issue with some subselects on low memory servers
182 [ "${PV}" == "5.0.54" ] && \
183 [ "${ARCH/x86}" != "${ARCH}" ] && \
184 mysql_disable_test \
185 "subselect" \
186 "Testcase needs tuning on x86 for oom condition"
187
188 # Broke with the YaSSL security issue that didn't affect Gentoo.
189 [ "${PV}" == "5.0.56" ] && \
190 for t in openssl_1 rpl_openssl rpl_ssl ssl \
191 ssl_8k_key ssl_compress ssl_connect ; do \
192 mysql_disable_test \
193 "$t" \
194 "OpenSSL tests broken on 5.0.56"
195 done
196
197 # New test was broken in first time
198 # Upstream bug 41066
199 # http://bugs.mysql.com/bug.php?id=41066
200 [ "${PV}" == "5.0.72" ] && \
201 mysql_disable_test \
202 "status2" \
203 "Broken in 5.0.72, new test is broken, upstream bug #41066"
204
205 # The entire 5.0 series has pre-generated SSL certificates, they have
206 # mostly expired now. ${S}/mysql-tests/std-data/*.pem
207 # The certs really SHOULD be generated for the tests, so that they are
208 # not expiring like this. We cannot do so ourselves as the tests look
209 # closely as the cert path data, and we do not have the CA key to regen
210 # ourselves. Alternatively, upstream should generate them with at least
211 # 50-year validity.
212 #
213 # Known expiry points:
214 # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
215 # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
216 # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
217 #
218 # mysql-test/std_data/untrusted-cacert.pem is MEANT to be
219 # expired/invalid.
220 case ${PV} in
221 5.0.*|5.1.*)
222 for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
223 ssl_compress ssl_connect ; do \
224 mysql_disable_test \
225 "$t" \
226 "These OpenSSL tests break due to expired certificates"
227 done
228 ;;
229 esac
230
231 # These are also failing in MySQL 5.1 for now, and are believed to be
232 # false positives:
233 #
234 # main.mysql_comment, main.mysql_upgrade:
235 # fails due to USE=-latin1 / utf8 default
236 #
237 # main.mysql_client_test:
238 # segfaults at random under Portage only, suspect resource limits.
239 case ${PV} in
240 5.1.*)
241 for t in main.mysql_client_test main.mysql_comments main.mysql_upgrade; do
242 mysql_disable_test "$t" "False positives in Gentoo"
243 done
244 ;;
245 esac
246
247 # create directories because mysqladmin might right out of order
248 mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
249
250 # We run the test protocols seperately
251 make -j1 test-unit
252 retstatus_unit=$?
253 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
254
255 make -j1 test-ns force="--force --vardir=${S}/mysql-test/var-ns"
256 retstatus_ns=$?
257 [[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed"
258 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
259
260 make -j1 test-ps force="--force --vardir=${S}/mysql-test/var-ps"
261 retstatus_ps=$?
262 [[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed"
263 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
264
265 # TODO:
266 # When upstream enables the pr and nr testsuites, we need those as well.
267
268 # Cleanup is important for these testcases.
269 pkill -9 -f "${S}/ndb" 2>/dev/null
270 pkill -9 -f "${S}/sql" 2>/dev/null
271 failures=""
272 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
273 [[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns"
274 [[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps"
275 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
276 [[ -z "$failures" ]] || die "Test failures: $failures"
277 einfo "Tests successfully completed"
278 else
279 einfo "Skipping server tests due to minimal build."
280 fi
281 }
282
283
284
285 1.1 dev-db/mysql/mysql-5.1.43.ebuild
286
287 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/mysql-5.1.43.ebuild?rev=1.1&view=markup
288 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/mysql-5.1.43.ebuild?rev=1.1&content-type=text/plain
289
290 Index: mysql-5.1.43.ebuild
291 ===================================================================
292 # Copyright 1999-2010 Gentoo Foundation
293 # Distributed under the terms of the GNU General Public License v2
294 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.43.ebuild,v 1.1 2010/02/01 01:19:32 robbat2 Exp $
295
296 MY_EXTRAS_VER="20100201-0104Z"
297 EAPI=2
298
299 inherit toolchain-funcs mysql
300 # only to make repoman happy. it is really set in the eclass
301 IUSE="$IUSE"
302
303 # Define the mysql-extras source
304 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
305
306 # REMEMBER: also update eclass/mysql*.eclass before committing!
307 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
308
309 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
310 EPATCH_EXCLUDE=''
311
312 DEPEND="|| ( >=sys-devel/gcc-4 >=sys-devel/gcc-apple-4 )"
313 RDEPEND=""
314
315 # Please do not add a naive src_unpack to this ebuild
316 # If you want to add a single patch, copy the ebuild to an overlay
317 # and create your own mysql-extras tarball, looking at 000_index.txt
318
319 # Official test instructions:
320 # USE='berkdb cluster embedded extraengine perl ssl community' \
321 # FEATURES='test userpriv -usersandbox' \
322 # ebuild mysql-X.X.XX.ebuild \
323 # digest clean package
324 src_test() {
325 # Bug #213475 - MySQL _will_ object strenously if your machine is named
326 # localhost. Also causes weird failures.
327 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
328
329 emake check || die "make check failed"
330 if ! use "minimal" ; then
331 if [[ $UID -eq 0 ]]; then
332 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
333 fi
334 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
335 cd "${S}"
336 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
337 local retstatus_unit
338 local retstatus_ns
339 local retstatus_ps
340 local t
341 addpredict /this-dir-does-not-exist/t9.MYI
342
343 # Ensure that parallel runs don't die
344 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
345
346 # archive_gis really sucks a lot, but it's only relevant for the
347 # USE=extraengines case
348 case ${PV} in
349 5.0.42)
350 mysql_disable_test "archive_gis" "Totally broken in 5.0.42"
351 ;;
352
353 5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87)
354 [ "$(tc-endian)" == "big" ] && \
355 mysql_disable_test \
356 "archive_gis" \
357 "Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only"
358 ;;
359 esac
360
361 # This was a slight testcase breakage when the read_only security issue
362 # was fixed.
363 case ${PV} in
364 5.0.54|5.0.51*)
365 mysql_disable_test \
366 "read_only" \
367 "Broken in 5.0.51-54, output in wrong order"
368 ;;
369 esac
370
371 # Ditto to read_only
372 [ "${PV}" == "5.0.51a" ] && \
373 mysql_disable_test \
374 "view" \
375 "Broken in 5.0.51, output in wrong order"
376
377 # x86-specific, OOM issue with some subselects on low memory servers
378 [ "${PV}" == "5.0.54" ] && \
379 [ "${ARCH/x86}" != "${ARCH}" ] && \
380 mysql_disable_test \
381 "subselect" \
382 "Testcase needs tuning on x86 for oom condition"
383
384 # Broke with the YaSSL security issue that didn't affect Gentoo.
385 [ "${PV}" == "5.0.56" ] && \
386 for t in openssl_1 rpl_openssl rpl_ssl ssl \
387 ssl_8k_key ssl_compress ssl_connect ; do \
388 mysql_disable_test \
389 "$t" \
390 "OpenSSL tests broken on 5.0.56"
391 done
392
393 # New test was broken in first time
394 # Upstream bug 41066
395 # http://bugs.mysql.com/bug.php?id=41066
396 [ "${PV}" == "5.0.72" ] && \
397 mysql_disable_test \
398 "status2" \
399 "Broken in 5.0.72, new test is broken, upstream bug #41066"
400
401 # The entire 5.0 series has pre-generated SSL certificates, they have
402 # mostly expired now. ${S}/mysql-tests/std-data/*.pem
403 # The certs really SHOULD be generated for the tests, so that they are
404 # not expiring like this. We cannot do so ourselves as the tests look
405 # closely as the cert path data, and we do not have the CA key to regen
406 # ourselves. Alternatively, upstream should generate them with at least
407 # 50-year validity.
408 #
409 # Known expiry points:
410 # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
411 # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
412 # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
413 #
414 # mysql-test/std_data/untrusted-cacert.pem is MEANT to be
415 # expired/invalid.
416 case ${PV} in
417 5.0.*|5.1.*)
418 for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
419 ssl_compress ssl_connect ; do \
420 mysql_disable_test \
421 "$t" \
422 "These OpenSSL tests break due to expired certificates"
423 done
424 ;;
425 esac
426
427 # These are also failing in MySQL 5.1 for now, and are believed to be
428 # false positives:
429 #
430 # main.mysql_comment, main.mysql_upgrade:
431 # fails due to USE=-latin1 / utf8 default
432 #
433 # main.mysql_client_test:
434 # segfaults at random under Portage only, suspect resource limits.
435 case ${PV} in
436 5.1.*)
437 for t in main.mysql_client_test main.mysql_comments main.mysql_upgrade; do
438 mysql_disable_test "$t" "False positives in Gentoo"
439 done
440 ;;
441 esac
442
443 # create directories because mysqladmin might right out of order
444 mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
445
446 # We run the test protocols seperately
447 make -j1 test-unit
448 retstatus_unit=$?
449 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
450
451 make -j1 test-ns force="--force --vardir=${S}/mysql-test/var-ns"
452 retstatus_ns=$?
453 [[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed"
454 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
455
456 make -j1 test-ps force="--force --vardir=${S}/mysql-test/var-ps"
457 retstatus_ps=$?
458 [[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed"
459 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
460
461 # TODO:
462 # When upstream enables the pr and nr testsuites, we need those as well.
463
464 # Cleanup is important for these testcases.
465 pkill -9 -f "${S}/ndb" 2>/dev/null
466 pkill -9 -f "${S}/sql" 2>/dev/null
467 failures=""
468 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
469 [[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns"
470 [[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps"
471 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
472 [[ -z "$failures" ]] || die "Test failures: $failures"
473 einfo "Tests successfully completed"
474 else
475 einfo "Skipping server tests due to minimal build."
476 fi
477 }
478
479
480
481 1.1 dev-db/mysql/mysql-5.1.41.ebuild
482
483 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/mysql-5.1.41.ebuild?rev=1.1&view=markup
484 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/mysql-5.1.41.ebuild?rev=1.1&content-type=text/plain
485
486 Index: mysql-5.1.41.ebuild
487 ===================================================================
488 # Copyright 1999-2010 Gentoo Foundation
489 # Distributed under the terms of the GNU General Public License v2
490 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.41.ebuild,v 1.1 2010/02/01 01:19:32 robbat2 Exp $
491
492 MY_EXTRAS_VER="20100201-0104Z"
493 EAPI=2
494
495 inherit toolchain-funcs mysql
496 # only to make repoman happy. it is really set in the eclass
497 IUSE="$IUSE"
498
499 # Define the mysql-extras source
500 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
501
502 # REMEMBER: also update eclass/mysql*.eclass before committing!
503 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
504
505 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
506 EPATCH_EXCLUDE=''
507
508 DEPEND="|| ( >=sys-devel/gcc-4 >=sys-devel/gcc-apple-4 )"
509 RDEPEND=""
510
511 # Please do not add a naive src_unpack to this ebuild
512 # If you want to add a single patch, copy the ebuild to an overlay
513 # and create your own mysql-extras tarball, looking at 000_index.txt
514
515 # Official test instructions:
516 # USE='berkdb cluster embedded extraengine perl ssl community' \
517 # FEATURES='test userpriv -usersandbox' \
518 # ebuild mysql-X.X.XX.ebuild \
519 # digest clean package
520 src_test() {
521 # Bug #213475 - MySQL _will_ object strenously if your machine is named
522 # localhost. Also causes weird failures.
523 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
524
525 emake check || die "make check failed"
526 if ! use "minimal" ; then
527 if [[ $UID -eq 0 ]]; then
528 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
529 fi
530 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
531 cd "${S}"
532 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
533 local retstatus1
534 local retstatus2
535 local t
536 addpredict /this-dir-does-not-exist/t9.MYI
537
538 # Ensure that parallel runs don't die
539 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
540
541 # archive_gis really sucks a lot, but it's only relevant for the
542 # USE=extraengines case
543 case ${PV} in
544 5.0.42)
545 mysql_disable_test "archive_gis" "Totally broken in 5.0.42"
546 ;;
547
548 5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87)
549 [ "$(tc-endian)" == "big" ] && \
550 mysql_disable_test \
551 "archive_gis" \
552 "Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only"
553 ;;
554 esac
555
556 # This was a slight testcase breakage when the read_only security issue
557 # was fixed.
558 case ${PV} in
559 5.0.54|5.0.51*)
560 mysql_disable_test \
561 "read_only" \
562 "Broken in 5.0.51-54, output in wrong order"
563 ;;
564 esac
565
566 # Ditto to read_only
567 [ "${PV}" == "5.0.51a" ] && \
568 mysql_disable_test \
569 "view" \
570 "Broken in 5.0.51, output in wrong order"
571
572 # x86-specific, OOM issue with some subselects on low memory servers
573 [ "${PV}" == "5.0.54" ] && \
574 [ "${ARCH/x86}" != "${ARCH}" ] && \
575 mysql_disable_test \
576 "subselect" \
577 "Testcase needs tuning on x86 for oom condition"
578
579 # Broke with the YaSSL security issue that didn't affect Gentoo.
580 [ "${PV}" == "5.0.56" ] && \
581 for t in openssl_1 rpl_openssl rpl_ssl ssl \
582 ssl_8k_key ssl_compress ssl_connect ; do \
583 mysql_disable_test \
584 "$t" \
585 "OpenSSL tests broken on 5.0.56"
586 done
587
588 # New test was broken in first time
589 # Upstream bug 41066
590 # http://bugs.mysql.com/bug.php?id=41066
591 [ "${PV}" == "5.0.72" ] && \
592 mysql_disable_test \
593 "status2" \
594 "Broken in 5.0.72, new test is broken, upstream bug #41066"
595
596 # The entire 5.0 series has pre-generated SSL certificates, they have
597 # mostly expired now. ${S}/mysql-tests/std-data/*.pem
598 # The certs really SHOULD be generated for the tests, so that they are
599 # not expiring like this. We cannot do so ourselves as the tests look
600 # closely as the cert path data, and we do not have the CA key to regen
601 # ourselves. Alternatively, upstream should generate them with at least
602 # 50-year validity.
603 #
604 # Known expiry points:
605 # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
606 # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
607 # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
608 #
609 # mysql-test/std_data/untrusted-cacert.pem is MEANT to be
610 # expired/invalid.
611 case ${PV} in
612 5.0.*|5.1.*)
613 for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
614 ssl_compress ssl_connect ; do \
615 mysql_disable_test \
616 "$t" \
617 "These OpenSSL tests break due to expired certificates"
618 done
619 ;;
620 esac
621
622 # create directories because mysqladmin might right out of order
623 mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
624
625 # We run the test protocols seperately
626 make -j1 test-ns force="--force --vardir=${S}/mysql-test/var-ns"
627 retstatus1=$?
628 [[ $retstatus1 -eq 0 ]] || eerror "test-ns failed"
629 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
630
631 make -j1 test-ps force="--force --vardir=${S}/mysql-test/var-ps"
632 retstatus2=$?
633 [[ $retstatus2 -eq 0 ]] || eerror "test-ps failed"
634 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
635
636 # Cleanup is important for these testcases.
637 pkill -9 -f "${S}/ndb" 2>/dev/null
638 pkill -9 -f "${S}/sql" 2>/dev/null
639 failures=""
640 [[ $retstatus1 -eq 0 ]] || failures="test-ns"
641 [[ $retstatus2 -eq 0 ]] || failures="${failures} test-ps"
642 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
643 [[ -z "$failures" ]] || die "Test failures: $failures"
644 einfo "Tests successfully completed"
645 else
646 einfo "Skipping server tests due to minimal build."
647 fi
648 }
649
650
651
652 1.1 dev-db/mysql/mysql-5.1.39.ebuild
653
654 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/mysql-5.1.39.ebuild?rev=1.1&view=markup
655 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mysql/mysql-5.1.39.ebuild?rev=1.1&content-type=text/plain
656
657 Index: mysql-5.1.39.ebuild
658 ===================================================================
659 # Copyright 1999-2010 Gentoo Foundation
660 # Distributed under the terms of the GNU General Public License v2
661 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.39.ebuild,v 1.1 2010/02/01 01:19:32 robbat2 Exp $
662
663 MY_EXTRAS_VER="20100201-0104Z"
664 EAPI=2
665
666 XTRADB_VER="1.0.4-8"
667 PERCONA_VER="5.1.39-8"
668
669 inherit toolchain-funcs mysql
670 # only to make repoman happy. it is really set in the eclass
671 IUSE="$IUSE"
672
673 # Define the mysql-extras source
674 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
675
676 # REMEMBER: also update eclass/mysql*.eclass before committing!
677 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
678
679 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
680 EPATCH_EXCLUDE=''
681
682 DEPEND="|| ( >=sys-devel/gcc-4 >=sys-devel/gcc-apple-4 )"
683 RDEPEND=""
684
685 # Please do not add a naive src_unpack to this ebuild
686 # If you want to add a single patch, copy the ebuild to an overlay
687 # and create your own mysql-extras tarball, looking at 000_index.txt
688
689 # Official test instructions:
690 # USE='berkdb cluster embedded extraengine perl ssl community' \
691 # FEATURES='test userpriv -usersandbox' \
692 # ebuild mysql-X.X.XX.ebuild \
693 # digest clean package
694 src_test() {
695 # Bug #213475 - MySQL _will_ object strenously if your machine is named
696 # localhost. Also causes weird failures.
697 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
698
699 emake check || die "make check failed"
700 if ! use "minimal" ; then
701 if [[ $UID -eq 0 ]]; then
702 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
703 fi
704 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
705 cd "${S}"
706 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
707 local retstatus1
708 local retstatus2
709 local t
710 addpredict /this-dir-does-not-exist/t9.MYI
711
712 # Ensure that parallel runs don't die
713 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
714
715 # archive_gis really sucks a lot, but it's only relevant for the
716 # USE=extraengines case
717 case ${PV} in
718 5.0.42)
719 mysql_disable_test "archive_gis" "Totally broken in 5.0.42"
720 ;;
721
722 5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87)
723 [ "$(tc-endian)" == "big" ] && \
724 mysql_disable_test \
725 "archive_gis" \
726 "Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only"
727 ;;
728 esac
729
730 # This was a slight testcase breakage when the read_only security issue
731 # was fixed.
732 case ${PV} in
733 5.0.54|5.0.51*)
734 mysql_disable_test \
735 "read_only" \
736 "Broken in 5.0.51-54, output in wrong order"
737 ;;
738 esac
739
740 # Ditto to read_only
741 [ "${PV}" == "5.0.51a" ] && \
742 mysql_disable_test \
743 "view" \
744 "Broken in 5.0.51, output in wrong order"
745
746 # x86-specific, OOM issue with some subselects on low memory servers
747 [ "${PV}" == "5.0.54" ] && \
748 [ "${ARCH/x86}" != "${ARCH}" ] && \
749 mysql_disable_test \
750 "subselect" \
751 "Testcase needs tuning on x86 for oom condition"
752
753 # Broke with the YaSSL security issue that didn't affect Gentoo.
754 [ "${PV}" == "5.0.56" ] && \
755 for t in openssl_1 rpl_openssl rpl_ssl ssl \
756 ssl_8k_key ssl_compress ssl_connect ; do \
757 mysql_disable_test \
758 "$t" \
759 "OpenSSL tests broken on 5.0.56"
760 done
761
762 # New test was broken in first time
763 # Upstream bug 41066
764 # http://bugs.mysql.com/bug.php?id=41066
765 [ "${PV}" == "5.0.72" ] && \
766 mysql_disable_test \
767 "status2" \
768 "Broken in 5.0.72, new test is broken, upstream bug #41066"
769
770 # The entire 5.0 series has pre-generated SSL certificates, they have
771 # mostly expired now. ${S}/mysql-tests/std-data/*.pem
772 # The certs really SHOULD be generated for the tests, so that they are
773 # not expiring like this. We cannot do so ourselves as the tests look
774 # closely as the cert path data, and we do not have the CA key to regen
775 # ourselves. Alternatively, upstream should generate them with at least
776 # 50-year validity.
777 #
778 # Known expiry points:
779 # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
780 # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
781 # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
782 #
783 # mysql-test/std_data/untrusted-cacert.pem is MEANT to be
784 # expired/invalid.
785 case ${PV} in
786 5.0.*|5.1.*)
787 for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
788 ssl_compress ssl_connect ; do \
789 mysql_disable_test \
790 "$t" \
791 "These OpenSSL tests break due to expired certificates"
792 done
793 ;;
794 esac
795
796 # create directories because mysqladmin might right out of order
797 mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
798
799 # We run the test protocols seperately
800 make -j1 test-ns force="--force --vardir=${S}/mysql-test/var-ns"
801 retstatus1=$?
802 [[ $retstatus1 -eq 0 ]] || eerror "test-ns failed"
803 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
804
805 make -j1 test-ps force="--force --vardir=${S}/mysql-test/var-ps"
806 retstatus2=$?
807 [[ $retstatus2 -eq 0 ]] || eerror "test-ps failed"
808 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
809
810 # Cleanup is important for these testcases.
811 pkill -9 -f "${S}/ndb" 2>/dev/null
812 pkill -9 -f "${S}/sql" 2>/dev/null
813 failures=""
814 [[ $retstatus1 -eq 0 ]] || failures="test-ns"
815 [[ $retstatus2 -eq 0 ]] || failures="${failures} test-ps"
816 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
817 [[ -z "$failures" ]] || die "Test failures: $failures"
818 einfo "Tests successfully completed"
819 else
820 einfo "Skipping server tests due to minimal build."
821 fi
822 }