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, 13 Apr 2017 21:02:58
Message-Id: 1492117368.922a3cc6693589f4407bded58c0997ae136a4378.whissi@gentoo
1 commit: 922a3cc6693589f4407bded58c0997ae136a4378
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 13 21:02:29 2017 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 13 21:02:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=922a3cc6
7
8 dev-db/percona-server: Bump to v5.6.35-81.0
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-db/percona-server/Manifest | 1 +
13 .../percona-server-5.6.35.81.0.ebuild | 219 +++++++++++++++++++++
14 2 files changed, 220 insertions(+)
15
16 diff --git a/dev-db/percona-server/Manifest b/dev-db/percona-server/Manifest
17 index 0970993b332..2622b86c78b 100644
18 --- a/dev-db/percona-server/Manifest
19 +++ b/dev-db/percona-server/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mysql-extras-20161130-2354Z.tar.bz2 303863 SHA256 b18ce4ccfd023106a802bcb2e17a5bc3a1ec4d99e7bf7f45d047cf18ebb9ad1b SHA512 6c24c581fd471c4ce0ff20ed68bdb32150e310a2f8f000c8bb9892ab98302127f3427165b17967da3f5663e1da5a7f1d26f84021d4cb8292cbb5e0c241505113 WHIRLPOOL de6d896474faedf1d3696e346877cb03fb9908338d66f2b901aa83a24983ec3e0ea5f7f54dfd190bdf7a55f72bb580e21ab826850018ae25629b572cbabf532d
22 DIST percona-server-5.6.35-80.0.tar.gz 55839147 SHA256 259b5aa2c6218958c8cc55170b9381955ea60445127bf46e02aa09903af7f26b SHA512 78b0b9cd69f26dc3ac13e4c6165590736d723b0f07d18a8ac1056281522de22b67d9fd931b035962bc278c97775fe7f98c46791328ece286268c7d31a484b69d WHIRLPOOL a6a6f78f41b1f8b5c26d0899efa6b043256749f4082ae9bffafe9210c3a326f33fe512a4c6578984892797e4f2c94de88ceca4c8c983cde7096cf01e88dec9b7
23 +DIST percona-server-5.6.35-81.0.tar.gz 56065684 SHA256 c71c3f80662982ade22a0a538c5fd595b1761472c98efc2509124ecc4004d1e7 SHA512 7020946e91d57f6377064a7c3e820b9c9d5149d22f80c9bb509d4b06631862a4378167d7bec40d7ca9ff01bcb498bdb9656cad8a64f2eab985ebc722fd1985aa WHIRLPOOL 51239409fc5742f81b4baa6e3150ac5f2fa6d6f55d55b34e426737968bacc44999427e9ab65a390459ba270b740462b4c1c409d95a3d13781a2aefe716037cdf
24
25 diff --git a/dev-db/percona-server/percona-server-5.6.35.81.0.ebuild b/dev-db/percona-server/percona-server-5.6.35.81.0.ebuild
26 new file mode 100644
27 index 00000000000..246e89f6191
28 --- /dev/null
29 +++ b/dev-db/percona-server/percona-server-5.6.35.81.0.ebuild
30 @@ -0,0 +1,219 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="6"
35 +MY_EXTRAS_VER="20161130-2354Z"
36 +SUBSLOT="18"
37 +PYTHON_COMPAT=( python2_7 )
38 +inherit linux-info python-any-r1 mysql-multilib-r1
39 +
40 +IUSE="numa pam tokudb tokudb-backup-plugin"
41 +
42 +# REMEMBER: also update eclass/mysql*.eclass before committing!
43 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
44 +HOMEPAGE="http://www.percona.com/software/percona-server"
45 +DESCRIPTION="An enhanced, drop-in replacement for MySQL from the Percona team"
46 +
47 +# When MY_EXTRAS is bumped, the index should be revised to exclude these.
48 +EPATCH_EXCLUDE=''
49 +
50 +COMMON_DEPEND="numa? ( sys-process/numactl:= )
51 + server? ( pam? ( virtual/pam:0= ) )
52 + tokudb? ( app-arch/snappy )
53 + tokudb-backup-plugin? ( dev-util/valgrind )
54 + "
55 +
56 +DEPEND="${COMMON_DEPEND}
57 + || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
58 + test? ( $(python_gen_any_dep 'dev-python/mysql-python[${PYTHON_USEDEP}]') )"
59 +RDEPEND="${COMMON_DEPEND}"
60 +
61 +REQUIRED_USE="tokudb? ( jemalloc ) tokudb-backup-plugin? ( tokudb )"
62 +
63 +MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
64 +
65 +PATCHES=(
66 + "${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
67 + "${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
68 + "${MY_PATCH_DIR}"/20001_all_fix-minimal-build-cmake-mysql-5.6.20.patch
69 + "${MY_PATCH_DIR}"/20006_all_cmake_elib-percona-5.6.34.patch
70 + "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
71 + "${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink.patch
72 + "${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
73 + "${MY_PATCH_DIR}"/20018_all_percona-server-5.6.25-without-clientlibs-tools.patch
74 +)
75 +
76 +# Please do not add a naive src_unpack to this ebuild
77 +# If you want to add a single patch, copy the ebuild to an overlay
78 +# and create your own mysql-extras tarball, looking at 000_index.txt
79 +
80 +pkg_pretend() {
81 + mysql-multilib-r1_pkg_pretend
82 +
83 + if use numa; then
84 + local CONFIG_CHECK="~NUMA"
85 +
86 + local WARNING_NUMA="This package expects NUMA support in kernel which this system does not have at the moment;"
87 + WARNING_NUMA+=" Either expect runtime errors, enable NUMA support in kernel or rebuild the package without NUMA support"
88 +
89 + check_extra_config
90 + fi
91 +}
92 +
93 +python_check_deps() {
94 + has_version "dev-python/mysql-python[${PYTHON_USEDEP}]"
95 +}
96 +
97 +src_prepare() {
98 + mysql-multilib-r1_src_prepare
99 + if use libressl ; then
100 + sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
101 + "${S}/cmake/ssl.cmake" || die
102 + fi
103 +}
104 +
105 +src_configure() {
106 + local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITH_NUMA=$(usex numa)
107 + -DWITH_PAM=$(usex pam)
108 + $(mysql-cmake_use_plugin tokudb TOKUDB)
109 + )
110 + if use tokudb ; then
111 + # TokuDB Backup plugin requires valgrind unconditionally
112 + MYSQL_CMAKE_NATIVE_DEFINES+=(
113 + $(usex tokudb-backup-plugin '' -DTOKUDB_BACKUP_DISABLED=1)
114 + )
115 + fi
116 + mysql-multilib-r1_src_configure
117 +}
118 +
119 +# Official test instructions:
120 +# USE='extraengine perl openssl static-libs' \
121 +# FEATURES='test userpriv -usersandbox' \
122 +# ebuild percona-server-X.X.XX.ebuild \
123 +# digest clean package
124 +multilib_src_test() {
125 +
126 + if ! multilib_is_native_abi ; then
127 + einfo "Server tests not available on non-native abi".
128 + return 0;
129 + fi
130 +
131 + if ! use server ; then
132 + einfo "Skipping server tests due to minimal build."
133 + return 0
134 + fi
135 +
136 + local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
137 + local retstatus_unit
138 + local retstatus_tests
139 +
140 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
141 + # localhost. Also causes weird failures.
142 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
143 +
144 + if [[ $UID -eq 0 ]]; then
145 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
146 + fi
147 +
148 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
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 +}