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