1 |
robbat2 12/01/31 09:33:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mysql-5.5.20.ebuild mysql-5.1.61.ebuild |
5 |
Log: |
6 |
Version bump, passes all tests out of the box for once. |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.596 dev-db/mysql/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?rev=1.596&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?rev=1.596&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?r1=1.595&r2=1.596 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v |
20 |
retrieving revision 1.595 |
21 |
retrieving revision 1.596 |
22 |
diff -p -w -b -B -u -u -r1.595 -r1.596 |
23 |
--- ChangeLog 9 Jan 2012 07:07:14 -0000 1.595 |
24 |
+++ ChangeLog 31 Jan 2012 09:33:11 -0000 1.596 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-db/mysql |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.595 2012/01/09 07:07:14 robbat2 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.596 2012/01/31 09:33:11 robbat2 Exp $ |
30 |
+ |
31 |
+*mysql-5.5.20 (31 Jan 2012) |
32 |
+*mysql-5.1.61 (31 Jan 2012) |
33 |
+ |
34 |
+ 31 Jan 2012; Robin H. Johnson <robbat2@g.o> +mysql-5.1.61.ebuild, |
35 |
+ +mysql-5.5.20.ebuild: |
36 |
+ Version bump, passes all tests out of the box for once. |
37 |
|
38 |
09 Jan 2012; Robin H. Johnson <robbat2@g.o> -mysql-3.23.58-r1.ebuild: |
39 |
MySQL-3.23 no longer supported (was in-tree for migrations from MySQL-3.22). |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-db/mysql/mysql-5.5.20.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.5.20.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.5.20.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: mysql-5.5.20.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.5.20.ebuild,v 1.1 2012/01/31 09:33:11 robbat2 Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
|
56 |
MY_EXTRAS_VER="20111118-2347Z" |
57 |
MY_PV="${PV//_alpha_pre/-m}" |
58 |
MY_PV="${MY_PV//_/-}" |
59 |
|
60 |
# Build type |
61 |
BUILD="cmake" |
62 |
|
63 |
inherit toolchain-funcs mysql-v2 |
64 |
# only to make repoman happy. it is really set in the eclass |
65 |
IUSE="$IUSE" |
66 |
|
67 |
# Define the mysql-extras source |
68 |
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git" |
69 |
|
70 |
# REMEMBER: also update eclass/mysql*.eclass before committing! |
71 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
72 |
|
73 |
# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
74 |
EPATCH_EXCLUDE='' |
75 |
|
76 |
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" |
77 |
RDEPEND="${RDEPEND}" |
78 |
|
79 |
# Please do not add a naive src_unpack to this ebuild |
80 |
# If you want to add a single patch, copy the ebuild to an overlay |
81 |
# and create your own mysql-extras tarball, looking at 000_index.txt |
82 |
|
83 |
# Official test instructions: |
84 |
# USE='berkdb -cluster embedded extraengine perl ssl community' \ |
85 |
# FEATURES='test userpriv -usersandbox' \ |
86 |
# ebuild mysql-X.X.XX.ebuild \ |
87 |
# digest clean package |
88 |
src_test() { |
89 |
|
90 |
local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test" |
91 |
local retstatus_unit |
92 |
local retstatus_tests |
93 |
|
94 |
# Bug #213475 - MySQL _will_ object strenously if your machine is named |
95 |
# localhost. Also causes weird failures. |
96 |
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
97 |
|
98 |
if ! use "minimal" ; then |
99 |
|
100 |
if [[ $UID -eq 0 ]]; then |
101 |
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
102 |
fi |
103 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
104 |
|
105 |
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
106 |
addpredict /this-dir-does-not-exist/t9.MYI |
107 |
|
108 |
# Run CTest (test-units) |
109 |
cmake-utils_src_test |
110 |
retstatus_unit=$? |
111 |
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
112 |
|
113 |
# Ensure that parallel runs don't die |
114 |
export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
115 |
|
116 |
# create directories because mysqladmin might right out of order |
117 |
mkdir -p "${S}"/mysql-test/var-{tests}{,/log} |
118 |
|
119 |
# These are failing in MySQL 5.5 for now and are believed to be |
120 |
# false positives: |
121 |
# |
122 |
# main.information_schema, binlog.binlog_statement_insert_delayed, |
123 |
# main.mysqld--help-notwin |
124 |
# fails due to USE=-latin1 / utf8 default |
125 |
# |
126 |
# main.mysql_client_test: |
127 |
# segfaults at random under Portage only, suspect resource limits. |
128 |
# |
129 |
# sys_vars.plugin_dir_basic |
130 |
# fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin |
131 |
# instead of MYSQL_LIBDIR/plugin |
132 |
# |
133 |
# main.flush_read_lock_kill |
134 |
# fails because of unknown system variable 'DEBUG_SYNC' |
135 |
# |
136 |
# main.openssl_1 |
137 |
# error message changing |
138 |
# -mysqltest: Could not open connection 'default': 2026 SSL connection |
139 |
# error: ASN: bad other signature confirmation |
140 |
# +mysqltest: Could not open connection 'default': 2026 SSL connection |
141 |
# error: error:00000001:lib(0):func(0):reason(1) |
142 |
# |
143 |
|
144 |
for t in main.mysql_client_test \ |
145 |
binlog.binlog_statement_insert_delayed main.information_schema \ |
146 |
main.mysqld--help-notwin main.flush_read_lock_kill \ |
147 |
sys_vars.plugin_dir_basic main.openssl_1 ; do |
148 |
mysql-v2_disable_test "$t" "False positives in Gentoo" |
149 |
done |
150 |
|
151 |
# Run mysql tests |
152 |
pushd "${TESTDIR}" |
153 |
|
154 |
# run mysql-test tests |
155 |
perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" |
156 |
retstatus_tests=$? |
157 |
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
158 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
159 |
|
160 |
popd |
161 |
|
162 |
# Cleanup is important for these testcases. |
163 |
pkill -9 -f "${S}/ndb" 2>/dev/null |
164 |
pkill -9 -f "${S}/sql" 2>/dev/null |
165 |
|
166 |
failures="" |
167 |
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
168 |
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" |
169 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
170 |
|
171 |
[[ -z "$failures" ]] || die "Test failures: $failures" |
172 |
einfo "Tests successfully completed" |
173 |
|
174 |
else |
175 |
|
176 |
einfo "Skipping server tests due to minimal build." |
177 |
fi |
178 |
} |
179 |
|
180 |
|
181 |
|
182 |
1.1 dev-db/mysql/mysql-5.1.61.ebuild |
183 |
|
184 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.1.61.ebuild?rev=1.1&view=markup |
185 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.1.61.ebuild?rev=1.1&content-type=text/plain |
186 |
|
187 |
Index: mysql-5.1.61.ebuild |
188 |
=================================================================== |
189 |
# Copyright 1999-2012 Gentoo Foundation |
190 |
# Distributed under the terms of the GNU General Public License v2 |
191 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.61.ebuild,v 1.1 2012/01/31 09:33:11 robbat2 Exp $ |
192 |
|
193 |
EAPI="4" |
194 |
|
195 |
MY_EXTRAS_VER="20111118-2347Z" |
196 |
# PBXT |
197 |
PBXT_VERSION='1.0.11-6-pre-ga' |
198 |
# XtraDB |
199 |
PERCONA_VER='5.1.45-10' XTRADB_VER='1.0.6-10' |
200 |
|
201 |
# Build type |
202 |
BUILD="autotools" |
203 |
|
204 |
inherit toolchain-funcs mysql-v2 |
205 |
|
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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-solaris" |
211 |
|
212 |
# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
213 |
# This is often broken still |
214 |
EPATCH_EXCLUDE='' |
215 |
|
216 |
# Most of these are in the eclass |
217 |
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 ) |
218 |
>=sys-devel/libtool-2.2.10" |
219 |
RDEPEND="${RDEPEND}" |
220 |
|
221 |
# Please do not add a naive src_unpack to this ebuild |
222 |
# If you want to add a single patch, copy the ebuild to an overlay |
223 |
# and create your own mysql-extras tarball, looking at 000_index.txt |
224 |
src_prepare() { |
225 |
sed -i \ |
226 |
-e '/^noinst_PROGRAMS/s/basic-t//g' \ |
227 |
"${S}"/unittest/mytap/t/Makefile.am |
228 |
mysql-v2_src_prepare |
229 |
} |
230 |
|
231 |
# Official test instructions: |
232 |
# USE='berkdb -cluster embedded extraengine perl ssl community' \ |
233 |
# FEATURES='test userpriv -usersandbox' \ |
234 |
# ebuild mysql-X.X.XX.ebuild \ |
235 |
# digest clean package |
236 |
src_test() { |
237 |
# Bug #213475 - MySQL _will_ object strenously if your machine is named |
238 |
# localhost. Also causes weird failures. |
239 |
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
240 |
|
241 |
emake check || die "make check failed" |
242 |
if ! use "minimal" ; then |
243 |
if [[ $UID -eq 0 ]]; then |
244 |
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
245 |
fi |
246 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
247 |
cd "${S}" |
248 |
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
249 |
local retstatus_unit |
250 |
local retstatus_ns |
251 |
local retstatus_ps |
252 |
local t |
253 |
addpredict /this-dir-does-not-exist/t9.MYI |
254 |
|
255 |
# Ensure that parallel runs don't die |
256 |
export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
257 |
|
258 |
# archive_gis really sucks a lot, but it's only relevant for the |
259 |
# USE=extraengines case |
260 |
case ${PV} in |
261 |
5.0.42) |
262 |
mysql-v2_disable_test "archive_gis" "Totally broken in 5.0.42" |
263 |
;; |
264 |
|
265 |
5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87) |
266 |
[ "$(tc-endian)" == "big" ] && \ |
267 |
mysql-v2_disable_test \ |
268 |
"archive_gis" \ |
269 |
"Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only" |
270 |
;; |
271 |
esac |
272 |
|
273 |
# This was a slight testcase breakage when the read_only security issue |
274 |
# was fixed. |
275 |
case ${PV} in |
276 |
5.0.54|5.0.51*) |
277 |
mysql-v2_disable_test \ |
278 |
"read_only" \ |
279 |
"Broken in 5.0.51-54, output in wrong order" |
280 |
;; |
281 |
esac |
282 |
|
283 |
# Ditto to read_only |
284 |
[ "${PV}" == "5.0.51a" ] && \ |
285 |
mysql-v2_disable_test \ |
286 |
"view" \ |
287 |
"Broken in 5.0.51, output in wrong order" |
288 |
|
289 |
# x86-specific, OOM issue with some subselects on low memory servers |
290 |
[ "${PV}" == "5.0.54" ] && \ |
291 |
[ "${ARCH/x86}" != "${ARCH}" ] && \ |
292 |
mysql-v2_disable_test \ |
293 |
"subselect" \ |
294 |
"Testcase needs tuning on x86 for oom condition" |
295 |
|
296 |
# Broke with the YaSSL security issue that didn't affect Gentoo. |
297 |
[ "${PV}" == "5.0.56" ] && \ |
298 |
for t in openssl_1 rpl_openssl rpl_ssl ssl \ |
299 |
ssl_8k_key ssl_compress ssl_connect ; do \ |
300 |
mysql-v2_disable_test \ |
301 |
"$t" \ |
302 |
"OpenSSL tests broken on 5.0.56" |
303 |
done |
304 |
|
305 |
# New test was broken in first time |
306 |
# Upstream bug 41066 |
307 |
# http://bugs.mysql.com/bug.php?id=41066 |
308 |
[ "${PV}" == "5.0.72" ] && \ |
309 |
mysql-v2_disable_test \ |
310 |
"status2" \ |
311 |
"Broken in 5.0.72, new test is broken, upstream bug #41066" |
312 |
|
313 |
# The entire 5.0 series has pre-generated SSL certificates, they have |
314 |
# mostly expired now. ${S}/mysql-tests/std-data/*.pem |
315 |
# The certs really SHOULD be generated for the tests, so that they are |
316 |
# not expiring like this. We cannot do so ourselves as the tests look |
317 |
# closely as the cert path data, and we do not have the CA key to regen |
318 |
# ourselves. Alternatively, upstream should generate them with at least |
319 |
# 50-year validity. |
320 |
# |
321 |
# Known expiry points: |
322 |
# 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09 |
323 |
# 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27 |
324 |
# 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28 |
325 |
# |
326 |
# mysql-test/std_data/untrusted-cacert.pem is MEANT to be |
327 |
# expired/invalid. |
328 |
case ${PV} in |
329 |
5.0.*|5.1.*|5.4.*|5.5.*) |
330 |
for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \ |
331 |
ssl_compress ssl_connect rpl.rpl_heartbeat_ssl ; do \ |
332 |
mysql-v2_disable_test \ |
333 |
"$t" \ |
334 |
"These OpenSSL tests break due to expired certificates" |
335 |
done |
336 |
;; |
337 |
esac |
338 |
|
339 |
# These are also failing in MySQL 5.1 for now, and are believed to be |
340 |
# false positives: |
341 |
# |
342 |
# main.mysql_comment, main.mysql_upgrade, main.information_schema, |
343 |
# funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers: |
344 |
# fails due to USE=-latin1 / utf8 default |
345 |
# |
346 |
# main.mysql_client_test: |
347 |
# segfaults at random under Portage only, suspect resource limits. |
348 |
# |
349 |
# main.not_partition: |
350 |
# Failure reason unknown at this time, must resolve before package.mask |
351 |
# removal FIXME |
352 |
case ${PV} in |
353 |
5.1.*|5.4.*|5.5.*) |
354 |
for t in main.mysql_client_test main.mysql_comments \ |
355 |
main.mysql_upgrade \ |
356 |
main.information_schema \ |
357 |
main.not_partition funcs_1.is_columns_mysql \ |
358 |
funcs_1.is_tables_mysql funcs_1.is_triggers; do |
359 |
mysql-v2_disable_test "$t" "False positives in Gentoo" |
360 |
done |
361 |
;; |
362 |
esac |
363 |
|
364 |
# New failures in 5.1.50/5.1.51, reported by jmbsvicetto. |
365 |
# These tests are picking up a 'connect-timeout' config from somewhere, |
366 |
# which is not valid, and since it does not have 'loose-' in front of |
367 |
# it, it's causing a failure |
368 |
case ${PV} in |
369 |
5.1.5*|5.4.*|5.5.*|6*) |
370 |
for t in rpl.rpl_mysql_upgrade main.log_tables_upgrade ; do |
371 |
mysql-v2_disable_test "$t" \ |
372 |
"False positives in Gentoo: connect-timeout" |
373 |
done |
374 |
;; |
375 |
esac |
376 |
|
377 |
use profiling && use community \ |
378 |
|| mysql-v2_disable_test main.profiling \ |
379 |
"Profiling test needs profiling support" |
380 |
|
381 |
if [ "${PN}" == "mariadb" ]; then |
382 |
for t in \ |
383 |
parts.part_supported_sql_func_ndb \ |
384 |
parts.partition_auto_increment_ndb ; do |
385 |
mysql-v2_disable_test $t "ndb not supported in mariadb" |
386 |
done |
387 |
fi |
388 |
|
389 |
# This fail with XtraDB in place of normal InnoDB |
390 |
# TODO: test if they are broken with the rest of the Percona patches |
391 |
if xtradb_patch_available && use xtradb ; then |
392 |
for t in main.innodb innodb.innodb_bug51378 \ |
393 |
main.information_schema_db main.mysqlshow \ |
394 |
main.innodb-autoinc main.innodb_bug21704 \ |
395 |
main.innodb_bug44369 main.innodb_bug46000 \ |
396 |
main.index_merge_innodb \ |
397 |
innodb.innodb innodb.innodb_misc1 innodb.innodb_bug52663 \ |
398 |
innodb.innodb-autoinc innodb.innodb-autoinc-44030 \ |
399 |
innodb.innodb_bug21704 innodb.innodb_bug44369 \ |
400 |
innodb.innodb_bug46000 innodb.innodb_bug48024 \ |
401 |
innodb.innodb_bug49164 innodb.innodb_bug51920 \ |
402 |
innodb.innodb_bug54044 \ |
403 |
; do |
404 |
mysql-v2_disable_test $t "tests broken in xtradb" |
405 |
done |
406 |
fi |
407 |
|
408 |
# bug 332565 |
409 |
if ! use extraengine ; then |
410 |
for t in main.range ; do |
411 |
mysql-v2_disable_test $t "Test $t requires USE=extraengine" |
412 |
done |
413 |
fi |
414 |
|
415 |
# create directories because mysqladmin might make out of order |
416 |
mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log} |
417 |
|
418 |
# We run the test protocols seperately |
419 |
emake test-unit |
420 |
retstatus_unit=$? |
421 |
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
422 |
|
423 |
emake test-ns force="--force --vardir=${S}/mysql-test/var-ns" |
424 |
retstatus_ns=$? |
425 |
[[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed" |
426 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
427 |
|
428 |
emake test-ps force="--force --vardir=${S}/mysql-test/var-ps" |
429 |
retstatus_ps=$? |
430 |
[[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed" |
431 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
432 |
|
433 |
# TODO: |
434 |
# When upstream enables the pr and nr testsuites, we need those as well. |
435 |
|
436 |
# Cleanup is important for these testcases. |
437 |
pkill -9 -f "${S}/ndb" 2>/dev/null |
438 |
pkill -9 -f "${S}/sql" 2>/dev/null |
439 |
failures="" |
440 |
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
441 |
[[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns" |
442 |
[[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps" |
443 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
444 |
[[ -z "$failures" ]] || die "Test failures: $failures" |
445 |
einfo "Tests successfully completed" |
446 |
else |
447 |
einfo "Skipping server tests due to minimal build." |
448 |
fi |
449 |
} |