Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/mariadb: mariadb-5.2.9.ebuild ChangeLog
Date: Fri, 30 Sep 2011 02:53:17
Message-Id: 20110930025307.D8BC22004C@flycatcher.gentoo.org
1 jmbsvicetto 11/09/30 02:53:07
2
3 Modified: ChangeLog
4 Added: mariadb-5.2.9.ebuild
5 Log:
6 [dev-db/mariadb] Bumped to 5.2.9 release.
7
8 (Portage version: 2.2.0_alpha58/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.13 dev-db/mariadb/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/ChangeLog?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/ChangeLog?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/ChangeLog?r1=1.12&r2=1.13
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/mariadb/ChangeLog,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- ChangeLog 19 Aug 2011 15:49:18 -0000 1.12
24 +++ ChangeLog 30 Sep 2011 02:53:07 -0000 1.13
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-db/mariadb
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/ChangeLog,v 1.12 2011/08/19 15:49:18 jmbsvicetto Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/ChangeLog,v 1.13 2011/09/30 02:53:07 jmbsvicetto Exp $
30 +
31 +*mariadb-5.2.9 (30 Sep 2011)
32 +
33 + 30 Sep 2011; Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>
34 + +mariadb-5.2.9.ebuild:
35 + [dev-db/mariadb] Bumped to 5.2.9 release.
36
37 *mariadb-5.2.8 (19 Aug 2011)
38
39
40
41
42 1.1 dev-db/mariadb/mariadb-5.2.9.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/mariadb-5.2.9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb/mariadb-5.2.9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mariadb-5.2.9.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-5.2.9.ebuild,v 1.1 2011/09/30 02:53:07 jmbsvicetto Exp $
52
53 MY_EXTRAS_VER="20110819-0415Z"
54 EAPI="2"
55
56 # Build system
57 BUILD="autotools"
58
59 inherit toolchain-funcs mysql-v2
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="~amd64 ~s390 ~sh ~x86 ~sparc-fbsd ~x86-fbsd"
65
66 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
67 EPATCH_EXCLUDE=''
68
69 DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
70 RDEPEND="${RDEPEND}"
71
72 # Please do not add a naive src_unpack to this ebuild
73 # If you want to add a single patch, copy the ebuild to an overlay
74 # and create your own mysql-extras tarball, looking at 000_index.txt
75 src_prepare() {
76 sed -i \
77 -e '/^noinst_PROGRAMS/s/basic-t//g' \
78 "${S}"/unittest/mytap/t/Makefile.am
79 mysql-v2_src_prepare
80 }
81
82 # Official test instructions:
83 # USE='berkdb -cluster embedded extraengine perl ssl community' \
84 # FEATURES='test userpriv -usersandbox' \
85 # ebuild mariadb-X.X.XX.ebuild \
86 # digest clean package
87 src_test() {
88 # Bug #213475 - MySQL _will_ object strenously if your machine is named
89 # localhost. Also causes weird failures.
90 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
91
92 emake check || die "make check failed"
93 if ! use "minimal" ; then
94 if [[ $UID -eq 0 ]]; then
95 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
96 fi
97 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
98 cd "${S}"
99 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
100 local retstatus_unit
101 local retstatus_ns
102 local retstatus_ps
103 local t
104 addpredict /this-dir-does-not-exist/t9.MYI
105
106 # Ensure that parallel runs don't die
107 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
108
109 # The entire 5.0 series has pre-generated SSL certificates, they have
110 # mostly expired now. ${S}/mysql-tests/std-data/*.pem
111 # The certs really SHOULD be generated for the tests, so that they are
112 # not expiring like this. We cannot do so ourselves as the tests look
113 # closely as the cert path data, and we do not have the CA key to regen
114 # ourselves. Alternatively, upstream should generate them with at least
115 # 50-year validity.
116 #
117 # Known expiry points:
118 # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
119 # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
120 # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
121 #
122 # mysql-test/std_data/untrusted-cacert.pem is MEANT to be
123 # expired/invalid.
124 case ${PV} in
125 5.1.*|5.4.*|5.5.*)
126 for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
127 ssl_compress ssl_connect rpl.rpl_heartbeat_ssl ; do \
128 mysql-v2_disable_test \
129 "$t" \
130 "These OpenSSL tests break due to expired certificates"
131 done
132 ;;
133 esac
134
135 # These are also failing in MySQL 5.1 for now, and are believed to be
136 # false positives:
137 #
138 # main.mysql_comment, main.mysql_upgrade, main.information_schema,
139 # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers:
140 # fails due to USE=-latin1 / utf8 default
141 #
142 # main.mysql_client_test:
143 # segfaults at random under Portage only, suspect resource limits.
144 #
145 # main.not_partition:
146 # Failure reason unknown at this time, must resolve before package.mask
147 # removal FIXME
148 case ${PV} in
149 5.1.*|5.2.*|5.4.*|5.5.*)
150 for t in main.mysql_client_test main.mysql_comments \
151 main.mysql_upgrade \
152 main.information_schema \
153 main.not_partition funcs_1.is_columns_mysql \
154 funcs_1.is_tables_mysql funcs_1.is_triggers; do
155 mysql-v2_disable_test "$t" "False positives in Gentoo"
156 done
157 ;;
158 esac
159
160 # New failures in 5.1.50/5.1.51, reported by jmbsvicetto.
161 # These tests are picking up a 'connect-timeout' config from somewhere,
162 # which is not valid, and since it does not have 'loose-' in front of
163 # it, it's causing a failure
164 case ${PV} in
165 5.1.5*|5.4.*|5.5.*|6*)
166 for t in rpl.rpl_mysql_upgrade main.log_tables_upgrade ; do
167 mysql-v2_disable_test "$t" \
168 "False positives in Gentoo: connect-timeout"
169 done
170 ;;
171 esac
172
173 use profiling && use community \
174 || mysql-v2_disable_test main.profiling \
175 "Profiling test needs profiling support"
176
177 if [ "${PN}" == "mariadb" ]; then
178 for t in \
179 parts.part_supported_sql_func_ndb \
180 parts.partition_auto_increment_ndb ; do
181 mysql-v2_disable_test $t "ndb not supported in mariadb"
182 done
183 fi
184
185 # create directories because mysqladmin might make out of order
186 mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
187
188 # We run the test protocols seperately
189 emake test-unit
190 retstatus_unit=$?
191 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
192
193 emake test-ns force="--force --vardir=${S}/mysql-test/var-ns"
194 retstatus_ns=$?
195 [[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed"
196 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
197
198 emake test-ps force="--force --vardir=${S}/mysql-test/var-ps"
199 retstatus_ps=$?
200 [[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed"
201 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
202
203 # TODO:
204 # When upstream enables the pr and nr testsuites, we need those as well.
205
206 # Cleanup is important for these testcases.
207 pkill -9 -f "${S}/ndb" 2>/dev/null
208 pkill -9 -f "${S}/sql" 2>/dev/null
209 failures=""
210 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
211 [[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns"
212 [[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps"
213 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
214 [[ -z "$failures" ]] || die "Test failures: $failures"
215 einfo "Tests successfully completed"
216 else
217 einfo "Skipping server tests due to minimal build."
218 fi
219 }