Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql/
Date: Thu, 01 Oct 2015 16:01:07
Message-Id: 1443715239.15d0c3faf22a642c63990bff536917b97065a826.grknight@gentoo
1 commit: 15d0c3faf22a642c63990bff536917b97065a826
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 1 16:00:39 2015 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 1 16:00:39 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15d0c3fa
7
8 dev-db/mysql: Version bump for 5.6.27
9
10 Package-Manager: portage-2.2.22
11
12 dev-db/mysql/Manifest | 1 +
13 dev-db/mysql/mysql-5.6.27-r1.ebuild | 165 ++++++++++++++++++++++++++++++++++++
14 dev-db/mysql/mysql-5.6.27.ebuild | 158 ++++++++++++++++++++++++++++++++++
15 3 files changed, 324 insertions(+)
16
17 diff --git a/dev-db/mysql/Manifest b/dev-db/mysql/Manifest
18 index a42550d..b071bdf 100644
19 --- a/dev-db/mysql/Manifest
20 +++ b/dev-db/mysql/Manifest
21 @@ -1,6 +1,7 @@
22 DIST mysql-5.5.44.tar.gz 21789766 SHA256 85f05b257db39e63c82ff4b5ce4e0c6d2b07560b5fc1646d47d7ae48eab3e5de SHA512 05707b96c3e0d39ca103d965640aa1a9461a513f788fc7f2acce4b3933ec578b3d66df53955b0dff1b6c9e5acd98441cfe1df5b3154a1058293babc39c26dad5 WHIRLPOOL 870d9728c78f6732fcd6f95e62833a769c937c96298a39bb023b33a9138552e254d2a3f6285d8f4f0b740de9d7397fa1a0987234a0a4dfa13c787fc068053d78
23 DIST mysql-5.5.45.tar.gz 21832364 SHA256 744efd3c39265b5fdeebd25f58ecb34a6eb06e02d9ec2febd3164942f2c89332 SHA512 1c8ddf294232b106562537d6e9b4a3956dd1a290562f313d311f2bbe09f1cb95c28e7e9a4c92a1fcc91a394514bc1190d185b1134003a9f6183ecc2a06d618e8 WHIRLPOOL 3daed09edfc1ca7a0ae379b876e061c2318755fdd14be9630b7c5311985e91ea46cf0e0b1eab98c758cc2809d5d562fcfd2f22022100051746343e147f3d4ebc
24 DIST mysql-5.6.26.tar.gz 33278710 SHA256 b44c6ce5f95172c56c73edfa8b710b39242ec7af0ab182c040208c41866e5070 SHA512 455bf66e1c63e3368a3dd53f80a3393e33a20605cde320ee0bb61339d0853c2187d4947812405b85ea93a7da722787e958515fc69807c3fab131878fe9604f62 WHIRLPOOL e5fe46e4f1c8a20d955b5921c6773823cb1c01bd78319485528c478f213a37dc8ce8a1bc5c61904595e8931dec1376d471387a3f85119a0791cb8f6d9303eb6f
25 +DIST mysql-5.6.27.tar.gz 33327156 SHA256 8356bba23f3f6c0c2d4806110c41d1c4d6a4b9c50825e11c5be4bbee2b20b71d SHA512 2839a2f481eec52272a7965d1344677c0d0b77d85108e3b4986dc346caebf62d9ef6347756bac156dd943ad57440d6cac9283ee252e30bd3a1e430c492aceb09 WHIRLPOOL 4fdc0db92822809824777c5f712c3e7898af58f178d22ec4ca1a56d9c9b4d782efe47b3b35b7cc9c7b45d31f25f0323cced346e29c24e7bc4e7b9d965c48cfd7
26 DIST mysql-extras-20150127-1351Z.tar.bz2 1494648 SHA256 74497659f1fb3b0cb620e38a911cf2e59a084149dd175199eb7cf4be18b4c328 SHA512 886e42697b3b0a90d8542bafaf3a7ccedf075f9f0065fec995bf58f645edff3a5d62f29be1cfa2e01d002d6382ee02279832cea8c21db6a774c2567c75ab6a35 WHIRLPOOL 9ddb5ccd914a6a6a19741ff93df78534d2273cf918f24af427c018b7c4f424a90d9f57f167633c48e2fa4102a4fae0873fd6dec7529839f229af855cbddf82d4
27 DIST mysql-extras-20150410-1944Z.tar.bz2 1493690 SHA256 e327adf02be4c2bce5121f01d6b139309c72814b8c50a29559dfddee12a0b4e2 SHA512 e2e5345290134e597734514041e413f0633b8078bfddb8b8e7695468ce7341735b732d5bb602ab7aa9a4045d71571b73aac01a5d96687d4fbd380736f5ed650c WHIRLPOOL f65f294905fd1d04e2be79a803b658ed432338501665a75cbe0cc5b3af8abf0615f1f808465c3ca3c7e850b9277f451f5c77b518977f4bee8dc77d6089ff88fb
28 DIST mysql-extras-20150717-1707Z.tar.bz2 1491956 SHA256 d67cc1e2c581ab7c57122b7d29864643869799893a95a158a18e14201d4ffc10 SHA512 3a7cb07773099e766f8e796d4e555d42874b85285cc2c7c60220370cc6aafc36a60eb340008637298d85d83f529e73392895a81c1438ffccff9eb8f354b29ba9 WHIRLPOOL 11e75f4b696e2547c1da40e69d8ab75df4bf7080426204c040632f24846407b07d71061c09c4ff4a1d21a9d14a94769d8f8ef62421d0aecd99efe832caf4dd22
29
30 diff --git a/dev-db/mysql/mysql-5.6.27-r1.ebuild b/dev-db/mysql/mysql-5.6.27-r1.ebuild
31 new file mode 100644
32 index 0000000..365c7de
33 --- /dev/null
34 +++ b/dev-db/mysql/mysql-5.6.27-r1.ebuild
35 @@ -0,0 +1,165 @@
36 +# Copyright 1999-2015 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +# $Id$
39 +
40 +EAPI="5"
41 +
42 +MY_EXTRAS_VER="20150717-1707Z"
43 +MY_PV="${PV//_alpha_pre/-m}"
44 +MY_PV="${MY_PV//_/-}"
45 +HAS_TOOLS_PATCH="1"
46 +SUBSLOT="18"
47 +
48 +inherit toolchain-funcs mysql-multilib
49 +# only to make repoman happy. it is really set in the eclass
50 +IUSE="$IUSE"
51 +
52 +# REMEMBER: also update eclass/mysql*.eclass before committing!
53 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
54 +
55 +# When MY_EXTRAS is bumped, the index should be revised to exclude these.
56 +EPATCH_EXCLUDE=''
57 +
58 +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
59 +RDEPEND="${RDEPEND}"
60 +
61 +# Please do not add a naive src_unpack to this ebuild
62 +# If you want to add a single patch, copy the ebuild to an overlay
63 +# and create your own mysql-extras tarball, looking at 000_index.txt
64 +
65 +# validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
66 +# disable until we see what happens with it
67 +MYSQL_CMAKE_NATIVE_DEFINES="-DWITHOUT_VALIDATE_PASSWORD=1"
68 +
69 +# Official test instructions:
70 +# USE='server embedded extraengine perl ssl static-libs community' \
71 +# FEATURES='test userpriv -usersandbox' \
72 +# ebuild mysql-X.X.XX.ebuild \
73 +# digest clean package
74 +multilib_src_test() {
75 +
76 + if ! multilib_is_native_abi ; then
77 + einfo "Server tests not available on non-native abi".
78 + return 0;
79 + fi
80 +
81 + local TESTDIR="${BUILD_DIR}/mysql-test"
82 + local retstatus_unit
83 + local retstatus_tests
84 +
85 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
86 + # localhost. Also causes weird failures.
87 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
88 +
89 + if use server ; then
90 +
91 + if [[ $UID -eq 0 ]]; then
92 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
93 + fi
94 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
95 +
96 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
97 + addpredict /this-dir-does-not-exist/t9.MYI
98 +
99 + # Run CTest (test-units)
100 + cmake-utils_src_test
101 + retstatus_unit=$?
102 + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
103 +
104 + # Create a symlink to provided binaries so the tests can find them when client-libs is off
105 + if ! use client-libs ; then
106 + ln -srf /usr/bin/my_print_defaults "${BUILD_DIR}/client/my_print_defaults" || die
107 + ln -srf /usr/bin/perror "${BUILD_DIR}/client/perror" || die
108 + mysql-multilib_disable_test main.perror "String mismatch due to not building local perror"
109 + fi
110 +
111 + # Ensure that parallel runs don't die
112 + export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
113 + # Enable parallel testing, auto will try to detect number of cores
114 + # You may set this by hand.
115 + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
116 + export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
117 +
118 + # create directories because mysqladmin might right out of order
119 + mkdir -p "${T}"/var-tests{,/log}
120 +
121 + # create symlink for the tests to find mysql_tzinfo_to_sql
122 + ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
123 +
124 + # These are failing in MySQL 5.5/5.6 for now and are believed to be
125 + # false positives:
126 + #
127 + # main.information_schema, binlog.binlog_statement_insert_delayed,
128 + # funcs_1.is_triggers funcs_1.is_tables_mysql,
129 + # funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
130 + # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
131 + # mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
132 + # perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
133 + # fails due to USE=-latin1 / utf8 default
134 + #
135 + # main.mysql_client_test:
136 + # segfaults at random under Portage only, suspect resource limits.
137 + #
138 + # rpl.rpl_plugin_load
139 + # fails due to included file not listed in expected result
140 + # appears to be poor planning
141 + #
142 + # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
143 + # fails due to bad cleanup of previous tests when run in parallel
144 + # The tool is deprecated anyway
145 + # Bug 532288
146 + for t in \
147 + binlog.binlog_mysqlbinlog_filter \
148 + binlog.binlog_statement_insert_delayed \
149 + funcs_1.is_columns_mysql \
150 + funcs_1.is_tables_mysql \
151 + funcs_1.is_triggers \
152 + main.information_schema \
153 + main.mysql_client_test \
154 + main.mysqld--help-notwin \
155 + perfschema.binlog_edge_mix \
156 + perfschema.binlog_edge_stmt \
157 + rpl.rpl_plugin_load \
158 + main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
159 + ; do
160 + mysql-multilib_disable_test "$t" "False positives in Gentoo"
161 + done
162 +
163 + if ! use extraengine ; then
164 + # bug 401673, 530766
165 + for t in federated.federated_plugin ; do
166 + mysql-multilib_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
167 + done
168 + fi
169 +
170 + # Run mysql tests
171 + pushd "${TESTDIR}"
172 +
173 + # Set file limits higher so tests run
174 + ulimit -n 3000
175 +
176 + # run mysql-test tests
177 + perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
178 + --suite-timeout=5000 --reorder
179 + retstatus_tests=$?
180 + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
181 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
182 +
183 + popd
184 +
185 + # Cleanup is important for these testcases.
186 + pkill -9 -f "${S}/ndb" 2>/dev/null
187 + pkill -9 -f "${S}/sql" 2>/dev/null
188 +
189 + failures=""
190 + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
191 + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
192 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
193 +
194 + [[ -z "$failures" ]] || die "Test failures: $failures"
195 + einfo "Tests successfully completed"
196 +
197 + else
198 + einfo "Skipping server tests due to minimal build."
199 + fi
200 +}
201
202 diff --git a/dev-db/mysql/mysql-5.6.27.ebuild b/dev-db/mysql/mysql-5.6.27.ebuild
203 new file mode 100644
204 index 0000000..e10fde2
205 --- /dev/null
206 +++ b/dev-db/mysql/mysql-5.6.27.ebuild
207 @@ -0,0 +1,158 @@
208 +# Copyright 1999-2015 Gentoo Foundation
209 +# Distributed under the terms of the GNU General Public License v2
210 +# $Id$
211 +
212 +EAPI="5"
213 +
214 +MY_EXTRAS_VER="20150410-1944Z"
215 +MY_PV="${PV//_alpha_pre/-m}"
216 +MY_PV="${MY_PV//_/-}"
217 +SUBSLOT="18"
218 +
219 +inherit toolchain-funcs mysql-multilib
220 +# only to make repoman happy. it is really set in the eclass
221 +IUSE="$IUSE"
222 +
223 +# REMEMBER: also update eclass/mysql*.eclass before committing!
224 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
225 +
226 +# When MY_EXTRAS is bumped, the index should be revised to exclude these.
227 +EPATCH_EXCLUDE=''
228 +
229 +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
230 +RDEPEND="${RDEPEND}"
231 +
232 +# Please do not add a naive src_unpack to this ebuild
233 +# If you want to add a single patch, copy the ebuild to an overlay
234 +# and create your own mysql-extras tarball, looking at 000_index.txt
235 +
236 +# validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
237 +# disable until we see what happens with it
238 +MYSQL_CMAKE_NATIVE_DEFINES="-DWITHOUT_VALIDATE_PASSWORD=1"
239 +
240 +# Official test instructions:
241 +# USE='embedded extraengine perl ssl static-libs community' \
242 +# FEATURES='test userpriv -usersandbox' \
243 +# ebuild mysql-X.X.XX.ebuild \
244 +# digest clean package
245 +multilib_src_test() {
246 +
247 + if ! multilib_is_native_abi ; then
248 + einfo "Server tests not available on non-native abi".
249 + return 0;
250 + fi
251 +
252 + local TESTDIR="${BUILD_DIR}/mysql-test"
253 + local retstatus_unit
254 + local retstatus_tests
255 +
256 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
257 + # localhost. Also causes weird failures.
258 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
259 +
260 + if ! use "minimal" ; then
261 +
262 + if [[ $UID -eq 0 ]]; then
263 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
264 + fi
265 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
266 +
267 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
268 + addpredict /this-dir-does-not-exist/t9.MYI
269 +
270 + # Run CTest (test-units)
271 + cmake-utils_src_test
272 + retstatus_unit=$?
273 + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
274 +
275 + # Ensure that parallel runs don't die
276 + export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
277 + # Enable parallel testing, auto will try to detect number of cores
278 + # You may set this by hand.
279 + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
280 + export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
281 +
282 + # create directories because mysqladmin might right out of order
283 + mkdir -p "${T}"/var-tests{,/log}
284 +
285 + # create symlink for the tests to find mysql_tzinfo_to_sql
286 + ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
287 +
288 + # These are failing in MySQL 5.5/5.6 for now and are believed to be
289 + # false positives:
290 + #
291 + # main.information_schema, binlog.binlog_statement_insert_delayed,
292 + # funcs_1.is_triggers funcs_1.is_tables_mysql,
293 + # funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
294 + # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
295 + # mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
296 + # perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
297 + # fails due to USE=-latin1 / utf8 default
298 + #
299 + # main.mysql_client_test:
300 + # segfaults at random under Portage only, suspect resource limits.
301 + #
302 + # rpl.rpl_plugin_load
303 + # fails due to included file not listed in expected result
304 + # appears to be poor planning
305 + #
306 + # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
307 + # fails due to bad cleanup of previous tests when run in parallel
308 + # The tool is deprecated anyway
309 + # Bug 532288
310 + for t in \
311 + binlog.binlog_mysqlbinlog_filter \
312 + binlog.binlog_statement_insert_delayed \
313 + funcs_1.is_columns_mysql \
314 + funcs_1.is_tables_mysql \
315 + funcs_1.is_triggers \
316 + main.information_schema \
317 + main.mysql_client_test \
318 + main.mysqld--help-notwin \
319 + perfschema.binlog_edge_mix \
320 + perfschema.binlog_edge_stmt \
321 + rpl.rpl_plugin_load \
322 + main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
323 + ; do
324 + mysql-multilib_disable_test "$t" "False positives in Gentoo"
325 + done
326 +
327 + if ! use extraengine ; then
328 + # bug 401673, 530766
329 + for t in federated.federated_plugin ; do
330 + mysql-multilib_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
331 + done
332 + fi
333 +
334 + # Run mysql tests
335 + pushd "${TESTDIR}"
336 +
337 + # Set file limits higher so tests run
338 + ulimit -n 3000
339 +
340 + # run mysql-test tests
341 + perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
342 + --suite-timeout=5000 --reorder
343 + retstatus_tests=$?
344 + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
345 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
346 +
347 + popd
348 +
349 + # Cleanup is important for these testcases.
350 + pkill -9 -f "${S}/ndb" 2>/dev/null
351 + pkill -9 -f "${S}/sql" 2>/dev/null
352 +
353 + failures=""
354 + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
355 + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
356 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
357 +
358 + [[ -z "$failures" ]] || die "Test failures: $failures"
359 + einfo "Tests successfully completed"
360 +
361 + else
362 +
363 + einfo "Skipping server tests due to minimal build."
364 + fi
365 +}