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