Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/percona-server/
Date: Thu, 22 Sep 2016 21:54:53
Message-Id: 1474581278.58dd266b403128484921b2630b08286e50481874.whissi@gentoo
1 commit: 58dd266b403128484921b2630b08286e50481874
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 21:52:36 2016 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 21:54:38 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58dd266b
7
8 dev-db/percona-server: Bump to v5.6.32-78.1
9
10 Link: https://www.percona.com/blog/2016/09/21/percona-server-5-6-32-78-1-is-now-available/
11
12 Package-Manager: portage-2.3.1
13
14 dev-db/percona-server/Manifest | 2 +
15 .../percona-server-5.6.32.78.1.ebuild | 216 +++++++++++++++++++++
16 2 files changed, 218 insertions(+)
17
18 diff --git a/dev-db/percona-server/Manifest b/dev-db/percona-server/Manifest
19 index 98c1ba4..30bca75 100644
20 --- a/dev-db/percona-server/Manifest
21 +++ b/dev-db/percona-server/Manifest
22 @@ -1,2 +1,4 @@
23 DIST mysql-extras-20160307-1854Z.tar.bz2 298005 SHA256 a6516841d24670a1802e28fd66d4f540b16367396e6b2f687b8429b8e6a5d865 SHA512 d90081bd910dfffe6e1ac250465c0dbd9968edbdfe08f25f213ec328028fbb6fdb016816846c7fcee9202b9b93f4868edaff44ee04a0554cc93c6ecbf088db8f WHIRLPOOL f971804db83f42d717da318deeb647c1b294fa0967db7073e7f83d0fa15476d68089201430aaa882d90d5223a41a1a1668cfbe82bb897dcf864925e3da715c10
24 +DIST mysql-extras-20160818-1822Z.tar.bz2 302657 SHA256 7e4f42ea0754af120d2ad6b4a3e40dd9bd5a769913ac141453a2c53419bd6c05 SHA512 19bd509fd1a37c537ae28919516406735cdf3d3fbc66583f765b64b3d296bd041cf2bc2291004b7274604a2fda3cb399141d6c672ae5d6f8aced3d019ac81826 WHIRLPOOL 46b4e3c7f415b2de1440aa9d190805dfbc49a8f4a6ed26be5e4bb3e3e9553885cc7e7e13c83c49fadf71a6081bb8fd9d28d5f4d8372540c89a649f2d913fdd9b
25 DIST percona-server-5.6.32-78.0.tar.gz 55120585 SHA256 b3f9191dd8660ba4f825c5fa8fa470e66417335ad8455e31bbc2d5f2cac1a923 SHA512 958cc27351c507410fe2a0a7a126ec36a25d1ced19ec6b2a4996a011c65c4f0e42d6a3235e21511f38677762dd8e0efe436fee67a5bf3db64b2c8b25520c43e5 WHIRLPOOL ef821cf1f9a5e3377bda96159d04f179f8ee9e8ef75ccfaed3512626ec51baf197e425b9fe39a300e7898824d7e76187d22314c07b1535bd7e7e00626fde2923
26 +DIST percona-server-5.6.32-78.1.tar.gz 55115483 SHA256 d94d73bf12459c57fcc8fa8018d7a08775d45ba718999a4ef0a09f543c654778 SHA512 77788932e83c3e3e4bbaa143844a11c809e0cbd87afbdc0f76ea12c462581d7438246d61984f82fe5174c2a099ea38274aa61957b05c6fc5a101a52028477b41 WHIRLPOOL 87561c8ce13809518b0a4fb2429cac9ef6667eedf0dad742f349e8f15736cf8249e4955eb1f49f579ab7cac550409603171b9003bf523c87603b3a2f38fd4ac0
27
28 diff --git a/dev-db/percona-server/percona-server-5.6.32.78.1.ebuild b/dev-db/percona-server/percona-server-5.6.32.78.1.ebuild
29 new file mode 100644
30 index 00000000..1d4c2ef
31 --- /dev/null
32 +++ b/dev-db/percona-server/percona-server-5.6.32.78.1.ebuild
33 @@ -0,0 +1,216 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI="6"
39 +MY_EXTRAS_VER="20160818-1822Z"
40 +SUBSLOT="18"
41 +PYTHON_COMPAT=( python2_7 )
42 +inherit linux-info python-any-r1 mysql-multilib-r1
43 +
44 +IUSE="numa pam tokudb tokudb-backup-plugin"
45 +
46 +# REMEMBER: also update eclass/mysql*.eclass before committing!
47 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
48 +HOMEPAGE="http://www.percona.com/software/percona-server"
49 +DESCRIPTION="An enhanced, drop-in replacement for MySQL from the Percona team"
50 +
51 +# When MY_EXTRAS is bumped, the index should be revised to exclude these.
52 +EPATCH_EXCLUDE=''
53 +
54 +COMMON_DEPEND="numa? ( sys-process/numactl:= )
55 + server? ( pam? ( virtual/pam:0= ) )
56 + tokudb? ( app-arch/snappy )
57 + tokudb-backup-plugin? ( dev-util/valgrind )
58 + "
59 +
60 +DEPEND="${COMMON_DEPEND}
61 + || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
62 + test? ( $(python_gen_any_dep 'dev-python/mysql-python[${PYTHON_USEDEP}]') )"
63 +RDEPEND="${COMMON_DEPEND}"
64 +
65 +REQUIRED_USE="tokudb? ( jemalloc ) tokudb-backup-plugin? ( tokudb )"
66 +
67 +MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
68 +
69 +PATCHES=(
70 + "${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
71 + "${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
72 + "${MY_PATCH_DIR}"/20001_all_fix-minimal-build-cmake-mysql-5.6.20.patch
73 + "${MY_PATCH_DIR}"/20006_all_cmake_elib-percona-5.6.29.patch
74 + "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
75 + "${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink.patch
76 + "${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
77 + "${MY_PATCH_DIR}"/20018_all_percona-server-5.6.25-without-clientlibs-tools.patch
78 +)
79 +
80 +# Please do not add a naive src_unpack to this ebuild
81 +# If you want to add a single patch, copy the ebuild to an overlay
82 +# and create your own mysql-extras tarball, looking at 000_index.txt
83 +
84 +pkg_pretend() {
85 + mysql-multilib-r1_pkg_pretend
86 +
87 + if use numa; then
88 + local CONFIG_CHECK="~NUMA"
89 +
90 + local WARNING_NUMA="This package expects NUMA support in kernel which this system does not have at the moment;"
91 + WARNING_NUMA+=" Either expect runtime errors, enable NUMA support in kernel or rebuild the package without NUMA support"
92 +
93 + check_extra_config
94 + fi
95 +}
96 +
97 +python_check_deps() {
98 + has_version "dev-python/mysql-python[${PYTHON_USEDEP}]"
99 +}
100 +
101 +src_configure() {
102 + local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITH_NUMA=$(usex numa)
103 + -DWITH_PAM=$(usex pam)
104 + $(mysql-cmake_use_plugin tokudb TOKUDB)
105 + )
106 + if use tokudb ; then
107 + # TokuDB Backup plugin requires valgrind unconditionally
108 + MYSQL_CMAKE_NATIVE_DEFINES+=(
109 + $(usex tokudb-backup-plugin '' -DTOKUDB_BACKUP_DISABLED=1)
110 + )
111 + fi
112 + mysql-multilib-r1_src_configure
113 +}
114 +
115 +# Official test instructions:
116 +# USE='extraengine perl openssl static-libs' \
117 +# FEATURES='test userpriv -usersandbox' \
118 +# ebuild percona-server-X.X.XX.ebuild \
119 +# digest clean package
120 +multilib_src_test() {
121 +
122 + if ! multilib_is_native_abi ; then
123 + einfo "Server tests not available on non-native abi".
124 + return 0;
125 + fi
126 +
127 + if ! use server ; then
128 + einfo "Skipping server tests due to minimal build."
129 + return 0
130 + fi
131 +
132 + local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
133 + local retstatus_unit
134 + local retstatus_tests
135 +
136 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
137 + # localhost. Also causes weird failures.
138 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
139 +
140 + if [[ $UID -eq 0 ]]; then
141 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
142 + fi
143 +
144 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
145 + # Silence repoman, this is only valid in tests
146 + if use test ; then
147 + addpredict /this-dir-does-not-exist/t9.MYI
148 + fi
149 +
150 + # Run CTest (test-units)
151 + cmake-utils_src_test
152 + retstatus_unit=$?
153 + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
154 +
155 + # Ensure that parallel runs don't die
156 + export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
157 + # Enable parallel testing, auto will try to detect number of cores
158 + # You may set this by hand.
159 + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
160 + export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
161 +
162 + # create directories because mysqladmin might right out of order
163 + mkdir -p "${T}"/var-tests{,/log}
164 +
165 + # These are failing in Percona 5.6 for now and are believed to be
166 + # false positives:
167 + #
168 + # main.information_schema, binlog.binlog_statement_insert_delayed,
169 + # main.mysqld--help-notwin, binlog.binlog_mysqlbinlog_filter
170 + # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt
171 + # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers
172 + # engines/funcs.db_alter_character_set engines/funcs.db_alter_character_set_collate
173 + # engines/funcs.db_alter_collate_ascii engines/funcs.db_alter_collate_utf8
174 + # engines/funcs.db_create_character_set engines/funcs.db_create_character_set_collate
175 + # fails due to USE=-latin1 / utf8 default
176 + #
177 + # main.mysql_client_test:
178 + # segfaults at random under Portage only, suspect resource limits.
179 + #
180 + # main.percona_bug1289599
181 + # Looks to be a syntax error in the test file itself
182 + #
183 + # main.variables main.myisam main.merge_recover
184 + # fails due to ulimit not able to open enough files (needs 5000)
185 + #
186 + # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
187 + # Called with bad parameters should be reported upstream
188 + #
189 +
190 + local t
191 +
192 + for t in main.mysql_client_test \
193 + binlog.binlog_statement_insert_delayed main.information_schema \
194 + main.mysqld--help-notwin binlog.binlog_mysqlbinlog_filter \
195 + perfschema.binlog_edge_mix perfschema.binlog_edge_stmt \
196 + funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers \
197 + main.variables main.myisam main.merge_recover \
198 + engines/funcs.db_alter_character_set engines/funcs.db_alter_character_set_collate \
199 + engines/funcs.db_alter_collate_ascii engines/funcs.db_alter_collate_utf8 \
200 + engines/funcs.db_create_character_set engines/funcs.db_create_character_set_collate \
201 + main.percona_bug1289599 main.mysqlhotcopy_archive main.mysqlhotcopy_myisam ; do
202 + mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
203 + done
204 +
205 + if use numa && use kernel_linux ; then
206 + # bug 584880
207 + if ! linux_config_exists || ! linux_chkconfig_present NUMA ; then
208 + for t in sys_vars.innodb_buffer_pool_populate_basic ; do
209 + mysql-multilib-r1_disable_test "$t" "Test $t requires system with NUMA support"
210 + done
211 + fi
212 + fi
213 +
214 + if ! use extraengine ; then
215 + # bug 401673, 530766
216 + for t in federated.federated_plugin ; do
217 + mysql-multilib-r1_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
218 + done
219 + fi
220 +
221 + # Run mysql tests
222 + pushd "${TESTDIR}" || die
223 +
224 + # Set file limits higher so tests run
225 + ulimit -n 3000
226 + python_setup
227 + # run mysql-test tests
228 + perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
229 + --testcase-timeout=30 --reorder
230 + retstatus_tests=$?
231 + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
232 +
233 + popd || die
234 +
235 + # Cleanup is important for these testcases.
236 + pkill -9 -f "${S}/ndb" 2>/dev/null
237 + pkill -9 -f "${S}/sql" 2>/dev/null
238 +
239 + failures=""
240 + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
241 + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
242 +
243 + if [[ -n "$failures" ]]; then
244 + has usersandbox $FEATURES && eerror "Some tests may have failed due to FEATURES=usersandbox"
245 + die "Test failures: $failures"
246 + fi
247 +
248 + einfo "Tests successfully completed"
249 +}