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: Sun, 13 Dec 2015 22:08:01
Message-Id: 1450043687.7cd24c9ff964670a9031fe48037ea7865b75e0cd.grknight@gentoo
1 commit: 7cd24c9ff964670a9031fe48037ea7865b75e0cd
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 13 21:54:47 2015 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 13 21:54:47 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cd24c9f
7
8 dev-db/mysql: Version bump
9
10 Package-Manager: portage-2.2.26
11
12 dev-db/mysql/Manifest | 2 +
13 dev-db/mysql/mysql-5.6.28.ebuild | 173 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 175 insertions(+)
15
16 diff --git a/dev-db/mysql/Manifest b/dev-db/mysql/Manifest
17 index 6aa33c3..7832816 100644
18 --- a/dev-db/mysql/Manifest
19 +++ b/dev-db/mysql/Manifest
20 @@ -1,6 +1,8 @@
21 DIST mysql-5.5.46.tar.gz 21838374 SHA256 93e0d91f1b380508edcecdd102cbec79a609d6b594a8814922db1c0fd11c8c3e SHA512 c2db730318d4c16793d62dbd937c1ff739fffabab6d1689b94252f5501ff36917ddf80a8144583492c05220b3ae33f29ecbcec10f6d8ae0a0b10142be719fc27 WHIRLPOOL 355260ae0e7385c7d00b289e37af09374bc8320f69a55d7ee0469283382f197fd430be32019668b1f29cda69f9d76965d4ee749cb93f1e8263799673e4f0f535
22 DIST mysql-5.6.26.tar.gz 33278710 SHA256 b44c6ce5f95172c56c73edfa8b710b39242ec7af0ab182c040208c41866e5070 SHA512 455bf66e1c63e3368a3dd53f80a3393e33a20605cde320ee0bb61339d0853c2187d4947812405b85ea93a7da722787e958515fc69807c3fab131878fe9604f62 WHIRLPOOL e5fe46e4f1c8a20d955b5921c6773823cb1c01bd78319485528c478f213a37dc8ce8a1bc5c61904595e8931dec1376d471387a3f85119a0791cb8f6d9303eb6f
23 DIST mysql-5.6.27.tar.gz 33327156 SHA256 8356bba23f3f6c0c2d4806110c41d1c4d6a4b9c50825e11c5be4bbee2b20b71d SHA512 2839a2f481eec52272a7965d1344677c0d0b77d85108e3b4986dc346caebf62d9ef6347756bac156dd943ad57440d6cac9283ee252e30bd3a1e430c492aceb09 WHIRLPOOL 4fdc0db92822809824777c5f712c3e7898af58f178d22ec4ca1a56d9c9b4d782efe47b3b35b7cc9c7b45d31f25f0323cced346e29c24e7bc4e7b9d965c48cfd7
24 +DIST mysql-5.6.28.tar.gz 32182980 SHA256 217cd96921abdd709b9b4ff3ce2af4cbd237de43679cf19385d19df03a037b21 SHA512 f02f91586567cb240ec882108ed5cc9e49a4e96545738cf00d43ba6c1fbe8d08b3726dccbe6f7b2412136a1bd50098543975d68ed2322f4cdeb7cd9572d48fcc WHIRLPOOL 039bb2af811d13c573d1a62cd9c8c043b03fba9a369a6afd30336dcc5ba999e90e2e86f1d1b5d4e5944d76eed1c2893e515705aa384cec98e24e2e8a8f7437c2
25 DIST mysql-extras-20150127-1351Z.tar.bz2 1494648 SHA256 74497659f1fb3b0cb620e38a911cf2e59a084149dd175199eb7cf4be18b4c328 SHA512 886e42697b3b0a90d8542bafaf3a7ccedf075f9f0065fec995bf58f645edff3a5d62f29be1cfa2e01d002d6382ee02279832cea8c21db6a774c2567c75ab6a35 WHIRLPOOL 9ddb5ccd914a6a6a19741ff93df78534d2273cf918f24af427c018b7c4f424a90d9f57f167633c48e2fa4102a4fae0873fd6dec7529839f229af855cbddf82d4
26 DIST mysql-extras-20150410-1944Z.tar.bz2 1493690 SHA256 e327adf02be4c2bce5121f01d6b139309c72814b8c50a29559dfddee12a0b4e2 SHA512 e2e5345290134e597734514041e413f0633b8078bfddb8b8e7695468ce7341735b732d5bb602ab7aa9a4045d71571b73aac01a5d96687d4fbd380736f5ed650c WHIRLPOOL f65f294905fd1d04e2be79a803b658ed432338501665a75cbe0cc5b3af8abf0615f1f808465c3ca3c7e850b9277f451f5c77b518977f4bee8dc77d6089ff88fb
27 +DIST mysql-extras-20150717-1707Z.tar.bz2 1491956 SHA256 d67cc1e2c581ab7c57122b7d29864643869799893a95a158a18e14201d4ffc10 SHA512 3a7cb07773099e766f8e796d4e555d42874b85285cc2c7c60220370cc6aafc36a60eb340008637298d85d83f529e73392895a81c1438ffccff9eb8f354b29ba9 WHIRLPOOL 11e75f4b696e2547c1da40e69d8ab75df4bf7080426204c040632f24846407b07d71061c09c4ff4a1d21a9d14a94769d8f8ef62421d0aecd99efe832caf4dd22
28 DIST mysql-extras-20151105-2051Z.tar.bz2 1490187 SHA256 129d79c2064b08b0afad69e04e27991bf4103c20ccea39c133239b1dd822a49f SHA512 af34a44275b06c1626eb5952b3643b5663b8a1fb1d9ff18a67d51c02daaa51c4476df407d38ab607cc41842b47e5dd7b4cef8ae380a41eb80923df8052b9e521 WHIRLPOOL 01702ca4e2033fbc70db3ab2dd166b2e31072ea0f6bdd42d00c27ae0c0afab5c8451c4dcc90cce6d46f9ea056017e273f7c719e1cfabf969293bdcd15241f5b3
29
30 diff --git a/dev-db/mysql/mysql-5.6.28.ebuild b/dev-db/mysql/mysql-5.6.28.ebuild
31 new file mode 100644
32 index 0000000..c41c878
33 --- /dev/null
34 +++ b/dev-db/mysql/mysql-5.6.28.ebuild
35 @@ -0,0 +1,173 @@
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 mysql-multilib-r1
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 +src_prepare() {
70 + mysql-multilib-r1_src_prepare
71 + if use libressl ; then
72 + sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
73 + "${S}/cmake/ssl.cmake" || die
74 + fi
75 +}
76 +
77 +# Official test instructions:
78 +# USE='server embedded extraengine perl openssl static-libs' \
79 +# FEATURES='test userpriv -usersandbox' \
80 +# ebuild mysql-X.X.XX.ebuild \
81 +# digest clean package
82 +multilib_src_test() {
83 +
84 + if ! multilib_is_native_abi ; then
85 + einfo "Server tests not available on non-native abi".
86 + return 0;
87 + fi
88 +
89 + local TESTDIR="${BUILD_DIR}/mysql-test"
90 + local retstatus_unit
91 + local retstatus_tests
92 +
93 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
94 + # localhost. Also causes weird failures.
95 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
96 +
97 + if use server ; then
98 +
99 + if [[ $UID -eq 0 ]]; then
100 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
101 + fi
102 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
103 +
104 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
105 + addpredict /this-dir-does-not-exist/t9.MYI
106 +
107 + # Run CTest (test-units)
108 + cmake-utils_src_test
109 + retstatus_unit=$?
110 + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
111 +
112 + # Create a symlink to provided binaries so the tests can find them when client-libs is off
113 + if ! use client-libs ; then
114 + ln -srf /usr/bin/my_print_defaults "${BUILD_DIR}/client/my_print_defaults" || die
115 + ln -srf /usr/bin/perror "${BUILD_DIR}/client/perror" || die
116 + mysql-multilib_disable_test main.perror "String mismatch due to not building local perror"
117 + fi
118 +
119 + # Ensure that parallel runs don't die
120 + export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
121 + # Enable parallel testing, auto will try to detect number of cores
122 + # You may set this by hand.
123 + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
124 + export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
125 +
126 + # create directories because mysqladmin might right out of order
127 + mkdir -p "${T}"/var-tests{,/log}
128 +
129 + # create symlink for the tests to find mysql_tzinfo_to_sql
130 + ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
131 +
132 + # These are failing in MySQL 5.5/5.6 for now and are believed to be
133 + # false positives:
134 + #
135 + # main.information_schema, binlog.binlog_statement_insert_delayed,
136 + # funcs_1.is_triggers funcs_1.is_tables_mysql,
137 + # funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
138 + # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
139 + # mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
140 + # perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
141 + # fails due to USE=-latin1 / utf8 default
142 + #
143 + # main.mysql_client_test:
144 + # segfaults at random under Portage only, suspect resource limits.
145 + #
146 + # rpl.rpl_plugin_load
147 + # fails due to included file not listed in expected result
148 + # appears to be poor planning
149 + #
150 + # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
151 + # fails due to bad cleanup of previous tests when run in parallel
152 + # The tool is deprecated anyway
153 + # Bug 532288
154 + for t in \
155 + binlog.binlog_mysqlbinlog_filter \
156 + binlog.binlog_statement_insert_delayed \
157 + funcs_1.is_columns_mysql \
158 + funcs_1.is_tables_mysql \
159 + funcs_1.is_triggers \
160 + main.information_schema \
161 + main.mysql_client_test \
162 + main.mysqld--help-notwin \
163 + perfschema.binlog_edge_mix \
164 + perfschema.binlog_edge_stmt \
165 + rpl.rpl_plugin_load \
166 + main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
167 + ; do
168 + mysql-multilib_disable_test "$t" "False positives in Gentoo"
169 + done
170 +
171 + if ! use extraengine ; then
172 + # bug 401673, 530766
173 + for t in federated.federated_plugin ; do
174 + mysql-multilib_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
175 + done
176 + fi
177 +
178 + # Run mysql tests
179 + pushd "${TESTDIR}"
180 +
181 + # Set file limits higher so tests run
182 + ulimit -n 3000
183 +
184 + # run mysql-test tests
185 + perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
186 + --suite-timeout=5000 --reorder
187 + retstatus_tests=$?
188 + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
189 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
190 +
191 + popd
192 +
193 + # Cleanup is important for these testcases.
194 + pkill -9 -f "${S}/ndb" 2>/dev/null
195 + pkill -9 -f "${S}/sql" 2>/dev/null
196 +
197 + failures=""
198 + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
199 + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
200 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
201 +
202 + [[ -z "$failures" ]] || die "Test failures: $failures"
203 + einfo "Tests successfully completed"
204 +
205 + else
206 + einfo "Skipping server tests due to minimal build."
207 + fi
208 +}