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