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: ChangeLog mysql-5.1.50.ebuild
Date: Sat, 21 Aug 2010 02:14:27
Message-Id: 20100821021418.73C9D2004C@flycatcher.gentoo.org
1 robbat2 10/08/21 02:14:18
2
3 Modified: ChangeLog
4 Added: mysql-5.1.50.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.537 dev-db/mysql/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?rev=1.537&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?rev=1.537&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/ChangeLog?r1=1.536&r2=1.537
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v
19 retrieving revision 1.536
20 retrieving revision 1.537
21 diff -p -w -b -B -u -u -r1.536 -r1.537
22 --- ChangeLog 9 Aug 2010 05:01:50 -0000 1.536
23 +++ ChangeLog 21 Aug 2010 02:14:18 -0000 1.537
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-db/mysql
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.536 2010/08/09 05:01:50 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.537 2010/08/21 02:14:18 robbat2 Exp $
29 +
30 +*mysql-5.1.50 (21 Aug 2010)
31 +
32 + 21 Aug 2010; Robin H. Johnson <robbat2@g.o> +mysql-5.1.50.ebuild:
33 + Version bump.
34
35 *mysql-5.1.49-r1 (09 Aug 2010)
36 *mysql-5.0.91 (09 Aug 2010)
37
38
39
40 1.1 dev-db/mysql/mysql-5.1.50.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.1.50.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql/mysql-5.1.50.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mysql-5.1.50.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.50.ebuild,v 1.1 2010/08/21 02:14:18 robbat2 Exp $
50
51 MY_EXTRAS_VER="20100820-2350Z"
52 EAPI=2
53
54 # PBXT
55 PBXT_VERSION='1.0.11-6-pre-ga'
56 # XtraDB
57 PERCONA_VER='5.1.45-10' XTRADB_VER='1.0.6-10'
58
59 inherit toolchain-funcs mysql
60 # only to make repoman happy. it is really set in the eclass
61 IUSE="$IUSE"
62
63 # REMEMBER: also update eclass/mysql*.eclass before committing!
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x64-macos ~x86-solaris"
65
66 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
67 # This is often broken still
68 EPATCH_EXCLUDE='02040_all_embedded-library-shared-5.1.43.patch '
69
70 DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
71 RDEPEND="!media-sound/amarok[embedded]"
72
73 # Please do not add a naive src_unpack to this ebuild
74 # If you want to add a single patch, copy the ebuild to an overlay
75 # and create your own mysql-extras tarball, looking at 000_index.txt
76
77 # Official test instructions:
78 # USE='berkdb -cluster embedded extraengine perl ssl community' \
79 # FEATURES='test userpriv -usersandbox' \
80 # ebuild mysql-X.X.XX.ebuild \
81 # digest clean package
82 src_test() {
83 # Bug #213475 - MySQL _will_ object strenously if your machine is named
84 # localhost. Also causes weird failures.
85 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
86
87 emake check || die "make check failed"
88 if ! use "minimal" ; then
89 if [[ $UID -eq 0 ]]; then
90 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
91 fi
92 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
93 cd "${S}"
94 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
95 local retstatus_unit
96 local retstatus_ns
97 local retstatus_ps
98 local t
99 addpredict /this-dir-does-not-exist/t9.MYI
100
101 # Ensure that parallel runs don't die
102 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
103
104 # archive_gis really sucks a lot, but it's only relevant for the
105 # USE=extraengines case
106 case ${PV} in
107 5.0.42)
108 mysql_disable_test "archive_gis" "Totally broken in 5.0.42"
109 ;;
110
111 5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87)
112 [ "$(tc-endian)" == "big" ] && \
113 mysql_disable_test \
114 "archive_gis" \
115 "Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only"
116 ;;
117 esac
118
119 # This was a slight testcase breakage when the read_only security issue
120 # was fixed.
121 case ${PV} in
122 5.0.54|5.0.51*)
123 mysql_disable_test \
124 "read_only" \
125 "Broken in 5.0.51-54, output in wrong order"
126 ;;
127 esac
128
129 # Ditto to read_only
130 [ "${PV}" == "5.0.51a" ] && \
131 mysql_disable_test \
132 "view" \
133 "Broken in 5.0.51, output in wrong order"
134
135 # x86-specific, OOM issue with some subselects on low memory servers
136 [ "${PV}" == "5.0.54" ] && \
137 [ "${ARCH/x86}" != "${ARCH}" ] && \
138 mysql_disable_test \
139 "subselect" \
140 "Testcase needs tuning on x86 for oom condition"
141
142 # Broke with the YaSSL security issue that didn't affect Gentoo.
143 [ "${PV}" == "5.0.56" ] && \
144 for t in openssl_1 rpl_openssl rpl_ssl ssl \
145 ssl_8k_key ssl_compress ssl_connect ; do \
146 mysql_disable_test \
147 "$t" \
148 "OpenSSL tests broken on 5.0.56"
149 done
150
151 # New test was broken in first time
152 # Upstream bug 41066
153 # http://bugs.mysql.com/bug.php?id=41066
154 [ "${PV}" == "5.0.72" ] && \
155 mysql_disable_test \
156 "status2" \
157 "Broken in 5.0.72, new test is broken, upstream bug #41066"
158
159 # The entire 5.0 series has pre-generated SSL certificates, they have
160 # mostly expired now. ${S}/mysql-tests/std-data/*.pem
161 # The certs really SHOULD be generated for the tests, so that they are
162 # not expiring like this. We cannot do so ourselves as the tests look
163 # closely as the cert path data, and we do not have the CA key to regen
164 # ourselves. Alternatively, upstream should generate them with at least
165 # 50-year validity.
166 #
167 # Known expiry points:
168 # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
169 # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
170 # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
171 #
172 # mysql-test/std_data/untrusted-cacert.pem is MEANT to be
173 # expired/invalid.
174 case ${PV} in
175 5.0.*|5.1.*|5.4.*|5.5.*)
176 for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
177 ssl_compress ssl_connect rpl.rpl_heartbeat_ssl ; do \
178 mysql_disable_test \
179 "$t" \
180 "These OpenSSL tests break due to expired certificates"
181 done
182 ;;
183 esac
184
185 # These are also failing in MySQL 5.1 for now, and are believed to be
186 # false positives:
187 #
188 # main.mysql_comment, main.mysql_upgrade, main.information_schema,
189 # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers:
190 # fails due to USE=-latin1 / utf8 default
191 #
192 # main.mysql_client_test:
193 # segfaults at random under Portage only, suspect resource limits.
194 #
195 # main.not_partition:
196 # Failure reason unknown at this time, must resolve before package.mask
197 # removal FIXME
198 case ${PV} in
199 5.1.*|5.4.*|5.5.*)
200 for t in main.mysql_client_test main.mysql_comments \
201 main.mysql_upgrade \
202 main.information_schema \
203 main.not_partition funcs_1.is_columns_mysql \
204 funcs_1.is_tables_mysql funcs_1.is_triggers; do
205 mysql_disable_test "$t" "False positives in Gentoo"
206 done
207 ;;
208 esac
209
210 use profiling && use community \
211 || mysql_disable_test main.profiling \
212 "Profiling test needs profiling support"
213
214 if [ "${PN}" == "mariadb" ]; then
215 for t in \
216 parts.part_supported_sql_func_ndb \
217 parts.partition_auto_increment_ndb ; do
218 mysql_disable_test $t "ndb not supported in mariadb"
219 done
220 fi
221
222 # This fail with XtraDB in place of normal InnoDB
223 # TODO: test if they are broken with the rest of the Percona patches
224 if xtradb_patch_available && use xtradb ; then
225 for t in main.innodb innodb.innodb_bug51378 \
226 main.information_schema_db main.mysqlshow \
227 main.innodb-autoinc main.innodb_bug21704 \
228 main.innodb_bug44369 main.innodb_bug46000 \
229 main.index_merge_innodb \
230 innodb.innodb innodb.innodb_misc1 innodb.innodb_bug52663 \
231 innodb.innodb-autoinc innodb.innodb-autoinc-44030 \
232 innodb.innodb_bug21704 innodb.innodb_bug44369 \
233 innodb.innodb_bug46000 innodb.innodb_bug48024 \
234 innodb.innodb_bug49164 innodb.innodb_bug51920 \
235 innodb.innodb_bug54044 \
236 ; do
237 mysql_disable_test $t "tests broken in xtradb"
238 done
239 fi
240
241 # create directories because mysqladmin might make out of order
242 mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
243
244 # We run the test protocols seperately
245 emake test-unit
246 retstatus_unit=$?
247 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
248
249 emake test-ns force="--force --vardir=${S}/mysql-test/var-ns"
250 retstatus_ns=$?
251 [[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed"
252 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
253
254 emake test-ps force="--force --vardir=${S}/mysql-test/var-ps"
255 retstatus_ps=$?
256 [[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed"
257 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
258
259 # TODO:
260 # When upstream enables the pr and nr testsuites, we need those as well.
261
262 # Cleanup is important for these testcases.
263 pkill -9 -f "${S}/ndb" 2>/dev/null
264 pkill -9 -f "${S}/sql" 2>/dev/null
265 failures=""
266 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
267 [[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns"
268 [[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps"
269 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
270 [[ -z "$failures" ]] || die "Test failures: $failures"
271 einfo "Tests successfully completed"
272 else
273 einfo "Skipping server tests due to minimal build."
274 fi
275 }