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/mariadb: ChangeLog mariadb-5.1.50.ebuild
Date: Wed, 06 Oct 2010 01:03:24
Message-Id: 20101006001528.02D4E20051@flycatcher.gentoo.org
1 robbat2 10/10/06 00:15:27
2
3 Modified: ChangeLog
4 Added: mariadb-5.1.50.ebuild
5 Log:
6 Version bump. Amarok use of embedded libmysqld.so is supported again.
7
8 (Portage version: 2.2_rc88/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.8 dev-db/mariadb/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/mariadb/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -p -w -b -B -u -u -r1.7 -r1.8
23 --- ChangeLog 1 Apr 2010 20:33:40 -0000 1.7
24 +++ ChangeLog 6 Oct 2010 00:15:27 -0000 1.8
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-db/mariadb
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/ChangeLog,v 1.7 2010/04/01 20:33:40 robbat2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/ChangeLog,v 1.8 2010/10/06 00:15:27 robbat2 Exp $
30 +
31 +*mariadb-5.1.50 (06 Oct 2010)
32 +
33 + 06 Oct 2010; Robin H. Johnson <robbat2@g.o> +mariadb-5.1.50.ebuild:
34 + Version bump. Amarok use of embedded libmysqld.so is supported again.
35
36 01 Apr 2010; Robin H. Johnson <robbat2@g.o> mariadb-5.1.42.ebuild,
37 mariadb-5.1.42-r1.ebuild:
38
39
40
41 1.1 dev-db/mariadb/mariadb-5.1.50.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/mariadb-5.1.50.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/mariadb-5.1.50.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mariadb-5.1.50.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-5.1.50.ebuild,v 1.1 2010/10/06 00:15:27 robbat2 Exp $
51
52 MY_EXTRAS_VER="20101006-0004Z"
53 EAPI=2
54
55 inherit toolchain-funcs mysql
56 # only to make repoman happy. it is really set in the eclass
57 IUSE="$IUSE"
58
59 # REMEMBER: also update eclass/mysql*.eclass before committing!
60 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
61
62 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
63 EPATCH_EXCLUDE=''
64
65 DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
66
67 # Please do not add a naive src_unpack to this ebuild
68 # If you want to add a single patch, copy the ebuild to an overlay
69 # and create your own mysql-extras tarball, looking at 000_index.txt
70 src_prepare() {
71 sed -i \
72 -e '/^noinst_PROGRAMS/s/basic-t//g' \
73 "${S}"/unittest/mytap/t/Makefile.am
74 mysql_src_prepare
75 }
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 # New failures in 5.1.50/5.1.51, reported by jmbsvicetto.
211 # These tests are picking up a 'connect-timeout' config from somewhere,
212 # which is not valid, and since it does not have 'loose-' in front of
213 # it, it's causing a failure
214 case ${PV} in
215 5.1.5*|5.4.*|5.5.*|6*)
216 for t in rpl.rpl_mysql_upgrade main.log_tables_upgrade ; do
217 mysql_disable_test "$t" \
218 "False positives in Gentoo: connect-timeout"
219 done
220 ;;
221 esac
222
223 use profiling && use community \
224 || mysql_disable_test main.profiling \
225 "Profiling test needs profiling support"
226
227 if [ "${PN}" == "mariadb" ]; then
228 for t in \
229 parts.part_supported_sql_func_ndb \
230 parts.partition_auto_increment_ndb ; do
231 mysql_disable_test $t "ndb not supported in mariadb"
232 done
233 fi
234
235 # create directories because mysqladmin might make out of order
236 mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
237
238 # We run the test protocols seperately
239 emake test-unit
240 retstatus_unit=$?
241 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
242
243 emake test-ns force="--force --vardir=${S}/mysql-test/var-ns"
244 retstatus_ns=$?
245 [[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed"
246 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
247
248 emake test-ps force="--force --vardir=${S}/mysql-test/var-ps"
249 retstatus_ps=$?
250 [[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed"
251 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
252
253 # TODO:
254 # When upstream enables the pr and nr testsuites, we need those as well.
255
256 # Cleanup is important for these testcases.
257 pkill -9 -f "${S}/ndb" 2>/dev/null
258 pkill -9 -f "${S}/sql" 2>/dev/null
259 failures=""
260 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
261 [[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns"
262 [[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps"
263 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
264 [[ -z "$failures" ]] || die "Test failures: $failures"
265 einfo "Tests successfully completed"
266 else
267 einfo "Skipping server tests due to minimal build."
268 fi
269 }