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