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, 09 Mar 2017 19:18:08
Message-Id: 1489087075.2b80bbeab4f59f5fad26392256f830d2069638db.whissi@gentoo
1 commit: 2b80bbeab4f59f5fad26392256f830d2069638db
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 9 19:17:55 2017 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 9 19:17:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b80bbea
7
8 dev-db/percona-server: Security cleanup (bug #612150)
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-db/percona-server/Manifest | 4 -
13 .../percona-server-5.6.32.78.1.ebuild | 215 ---------------------
14 .../percona-server-5.6.33.79.0.ebuild | 211 --------------------
15 .../percona-server-5.6.34.79.1.ebuild | 211 --------------------
16 4 files changed, 641 deletions(-)
17
18 diff --git a/dev-db/percona-server/Manifest b/dev-db/percona-server/Manifest
19 index 98c2d05ad78..0970993b332 100644
20 --- a/dev-db/percona-server/Manifest
21 +++ b/dev-db/percona-server/Manifest
22 @@ -1,6 +1,2 @@
23 -DIST mysql-extras-20160818-1822Z.tar.bz2 302657 SHA256 7e4f42ea0754af120d2ad6b4a3e40dd9bd5a769913ac141453a2c53419bd6c05 SHA512 19bd509fd1a37c537ae28919516406735cdf3d3fbc66583f765b64b3d296bd041cf2bc2291004b7274604a2fda3cb399141d6c672ae5d6f8aced3d019ac81826 WHIRLPOOL 46b4e3c7f415b2de1440aa9d190805dfbc49a8f4a6ed26be5e4bb3e3e9553885cc7e7e13c83c49fadf71a6081bb8fd9d28d5f4d8372540c89a649f2d913fdd9b
24 DIST mysql-extras-20161130-2354Z.tar.bz2 303863 SHA256 b18ce4ccfd023106a802bcb2e17a5bc3a1ec4d99e7bf7f45d047cf18ebb9ad1b SHA512 6c24c581fd471c4ce0ff20ed68bdb32150e310a2f8f000c8bb9892ab98302127f3427165b17967da3f5663e1da5a7f1d26f84021d4cb8292cbb5e0c241505113 WHIRLPOOL de6d896474faedf1d3696e346877cb03fb9908338d66f2b901aa83a24983ec3e0ea5f7f54dfd190bdf7a55f72bb580e21ab826850018ae25629b572cbabf532d
25 -DIST percona-server-5.6.32-78.1.tar.gz 55115483 SHA256 d94d73bf12459c57fcc8fa8018d7a08775d45ba718999a4ef0a09f543c654778 SHA512 77788932e83c3e3e4bbaa143844a11c809e0cbd87afbdc0f76ea12c462581d7438246d61984f82fe5174c2a099ea38274aa61957b05c6fc5a101a52028477b41 WHIRLPOOL 87561c8ce13809518b0a4fb2429cac9ef6667eedf0dad742f349e8f15736cf8249e4955eb1f49f579ab7cac550409603171b9003bf523c87603b3a2f38fd4ac0
26 -DIST percona-server-5.6.33-79.0.tar.gz 55184504 SHA256 ed8372340740faca1f58735938823eaf65ffbda64a5c65b18d187b959afbd34e SHA512 5a31f9aecf9ec4515e46dcddc614989fbbbd7b23af9c5b351eac30ede3399358413b6f9b204628a12e3260a5e1d6ed94e70769ae487728c27796c81ea0282c85 WHIRLPOOL c341746eb053a74c02df47ea24a3e941bbdc89b840abadf68668e403dc50e071a9f96d429a8bead17b269d2a602bff35b8588179714d99372e068c0494db93c2
27 -DIST percona-server-5.6.34-79.1.tar.gz 55763384 SHA256 8db1906e8fae2ac10faa23f44663f083762edd954a8efae2c798bc671b9d12d6 SHA512 3691daf14042cb35ab8cfe487c760e3da8f0758384224511ef84f388f895a5e15cbbf1a5ae1022d8a9d8ff7ee8ae7651ec8f39381cefce14b4f0fe3f2de2608b WHIRLPOOL 03911d171699ecf2c07e27fbdc82baa19a1fb72e2f0cbe17b107b49594e1c7755ae4ace5c2b74576517c262d6a812d0aa376c776e5f87f67c7f57bae37c6f4fd
28 DIST percona-server-5.6.35-80.0.tar.gz 55839147 SHA256 259b5aa2c6218958c8cc55170b9381955ea60445127bf46e02aa09903af7f26b SHA512 78b0b9cd69f26dc3ac13e4c6165590736d723b0f07d18a8ac1056281522de22b67d9fd931b035962bc278c97775fe7f98c46791328ece286268c7d31a484b69d WHIRLPOOL a6a6f78f41b1f8b5c26d0899efa6b043256749f4082ae9bffafe9210c3a326f33fe512a4c6578984892797e4f2c94de88ceca4c8c983cde7096cf01e88dec9b7
29
30 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
31 deleted file mode 100644
32 index aa480d351ba..00000000000
33 --- a/dev-db/percona-server/percona-server-5.6.32.78.1.ebuild
34 +++ /dev/null
35 @@ -1,215 +0,0 @@
36 -# Copyright 1999-2016 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI="6"
40 -MY_EXTRAS_VER="20160818-1822Z"
41 -SUBSLOT="18"
42 -PYTHON_COMPAT=( python2_7 )
43 -inherit linux-info python-any-r1 mysql-multilib-r1
44 -
45 -IUSE="numa pam tokudb tokudb-backup-plugin"
46 -
47 -# REMEMBER: also update eclass/mysql*.eclass before committing!
48 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
49 -HOMEPAGE="http://www.percona.com/software/percona-server"
50 -DESCRIPTION="An enhanced, drop-in replacement for MySQL from the Percona team"
51 -
52 -# When MY_EXTRAS is bumped, the index should be revised to exclude these.
53 -EPATCH_EXCLUDE=''
54 -
55 -COMMON_DEPEND="numa? ( sys-process/numactl:= )
56 - server? ( pam? ( virtual/pam:0= ) )
57 - tokudb? ( app-arch/snappy )
58 - tokudb-backup-plugin? ( dev-util/valgrind )
59 - "
60 -
61 -DEPEND="${COMMON_DEPEND}
62 - || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
63 - test? ( $(python_gen_any_dep 'dev-python/mysql-python[${PYTHON_USEDEP}]') )"
64 -RDEPEND="${COMMON_DEPEND}"
65 -
66 -REQUIRED_USE="tokudb? ( jemalloc ) tokudb-backup-plugin? ( tokudb )"
67 -
68 -MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
69 -
70 -PATCHES=(
71 - "${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
72 - "${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
73 - "${MY_PATCH_DIR}"/20001_all_fix-minimal-build-cmake-mysql-5.6.20.patch
74 - "${MY_PATCH_DIR}"/20006_all_cmake_elib-percona-5.6.29.patch
75 - "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
76 - "${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink.patch
77 - "${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
78 - "${MY_PATCH_DIR}"/20018_all_percona-server-5.6.25-without-clientlibs-tools.patch
79 -)
80 -
81 -# Please do not add a naive src_unpack to this ebuild
82 -# If you want to add a single patch, copy the ebuild to an overlay
83 -# and create your own mysql-extras tarball, looking at 000_index.txt
84 -
85 -pkg_pretend() {
86 - mysql-multilib-r1_pkg_pretend
87 -
88 - if use numa; then
89 - local CONFIG_CHECK="~NUMA"
90 -
91 - local WARNING_NUMA="This package expects NUMA support in kernel which this system does not have at the moment;"
92 - WARNING_NUMA+=" Either expect runtime errors, enable NUMA support in kernel or rebuild the package without NUMA support"
93 -
94 - check_extra_config
95 - fi
96 -}
97 -
98 -python_check_deps() {
99 - has_version "dev-python/mysql-python[${PYTHON_USEDEP}]"
100 -}
101 -
102 -src_configure() {
103 - local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITH_NUMA=$(usex numa)
104 - -DWITH_PAM=$(usex pam)
105 - $(mysql-cmake_use_plugin tokudb TOKUDB)
106 - )
107 - if use tokudb ; then
108 - # TokuDB Backup plugin requires valgrind unconditionally
109 - MYSQL_CMAKE_NATIVE_DEFINES+=(
110 - $(usex tokudb-backup-plugin '' -DTOKUDB_BACKUP_DISABLED=1)
111 - )
112 - fi
113 - mysql-multilib-r1_src_configure
114 -}
115 -
116 -# Official test instructions:
117 -# USE='extraengine perl openssl static-libs' \
118 -# FEATURES='test userpriv -usersandbox' \
119 -# ebuild percona-server-X.X.XX.ebuild \
120 -# digest clean package
121 -multilib_src_test() {
122 -
123 - if ! multilib_is_native_abi ; then
124 - einfo "Server tests not available on non-native abi".
125 - return 0;
126 - fi
127 -
128 - if ! use server ; then
129 - einfo "Skipping server tests due to minimal build."
130 - return 0
131 - fi
132 -
133 - local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
134 - local retstatus_unit
135 - local retstatus_tests
136 -
137 - # Bug #213475 - MySQL _will_ object strenously if your machine is named
138 - # localhost. Also causes weird failures.
139 - [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
140 -
141 - if [[ $UID -eq 0 ]]; then
142 - die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
143 - fi
144 -
145 - einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
146 - # Silence repoman, this is only valid in tests
147 - if use test ; then
148 - addpredict /this-dir-does-not-exist/t9.MYI
149 - fi
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 -}
251
252 diff --git a/dev-db/percona-server/percona-server-5.6.33.79.0.ebuild b/dev-db/percona-server/percona-server-5.6.33.79.0.ebuild
253 deleted file mode 100644
254 index ce879820244..00000000000
255 --- a/dev-db/percona-server/percona-server-5.6.33.79.0.ebuild
256 +++ /dev/null
257 @@ -1,211 +0,0 @@
258 -# Copyright 1999-2016 Gentoo Foundation
259 -# Distributed under the terms of the GNU General Public License v2
260 -
261 -EAPI="6"
262 -MY_EXTRAS_VER="20160818-1822Z"
263 -SUBSLOT="18"
264 -PYTHON_COMPAT=( python2_7 )
265 -inherit linux-info python-any-r1 mysql-multilib-r1
266 -
267 -IUSE="numa pam tokudb tokudb-backup-plugin"
268 -
269 -# REMEMBER: also update eclass/mysql*.eclass before committing!
270 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
271 -HOMEPAGE="http://www.percona.com/software/percona-server"
272 -DESCRIPTION="An enhanced, drop-in replacement for MySQL from the Percona team"
273 -
274 -# When MY_EXTRAS is bumped, the index should be revised to exclude these.
275 -EPATCH_EXCLUDE=''
276 -
277 -COMMON_DEPEND="numa? ( sys-process/numactl:= )
278 - server? ( pam? ( virtual/pam:0= ) )
279 - tokudb? ( app-arch/snappy )
280 - tokudb-backup-plugin? ( dev-util/valgrind )
281 - "
282 -
283 -DEPEND="${COMMON_DEPEND}
284 - || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
285 - test? ( $(python_gen_any_dep 'dev-python/mysql-python[${PYTHON_USEDEP}]') )"
286 -RDEPEND="${COMMON_DEPEND}"
287 -
288 -REQUIRED_USE="tokudb? ( jemalloc ) tokudb-backup-plugin? ( tokudb )"
289 -
290 -MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
291 -
292 -PATCHES=(
293 - "${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
294 - "${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
295 - "${MY_PATCH_DIR}"/20001_all_fix-minimal-build-cmake-mysql-5.6.20.patch
296 - "${MY_PATCH_DIR}"/20006_all_cmake_elib-percona-5.6.29.patch
297 - "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
298 - "${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink.patch
299 - "${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
300 - "${MY_PATCH_DIR}"/20018_all_percona-server-5.6.25-without-clientlibs-tools.patch
301 -)
302 -
303 -# Please do not add a naive src_unpack to this ebuild
304 -# If you want to add a single patch, copy the ebuild to an overlay
305 -# and create your own mysql-extras tarball, looking at 000_index.txt
306 -
307 -pkg_pretend() {
308 - mysql-multilib-r1_pkg_pretend
309 -
310 - if use numa; then
311 - local CONFIG_CHECK="~NUMA"
312 -
313 - local WARNING_NUMA="This package expects NUMA support in kernel which this system does not have at the moment;"
314 - WARNING_NUMA+=" Either expect runtime errors, enable NUMA support in kernel or rebuild the package without NUMA support"
315 -
316 - check_extra_config
317 - fi
318 -}
319 -
320 -python_check_deps() {
321 - has_version "dev-python/mysql-python[${PYTHON_USEDEP}]"
322 -}
323 -
324 -src_configure() {
325 - local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITH_NUMA=$(usex numa)
326 - -DWITH_PAM=$(usex pam)
327 - $(mysql-cmake_use_plugin tokudb TOKUDB)
328 - )
329 - if use tokudb ; then
330 - # TokuDB Backup plugin requires valgrind unconditionally
331 - MYSQL_CMAKE_NATIVE_DEFINES+=(
332 - $(usex tokudb-backup-plugin '' -DTOKUDB_BACKUP_DISABLED=1)
333 - )
334 - fi
335 - mysql-multilib-r1_src_configure
336 -}
337 -
338 -# Official test instructions:
339 -# USE='extraengine perl openssl static-libs' \
340 -# FEATURES='test userpriv -usersandbox' \
341 -# ebuild percona-server-X.X.XX.ebuild \
342 -# digest clean package
343 -multilib_src_test() {
344 -
345 - if ! multilib_is_native_abi ; then
346 - einfo "Server tests not available on non-native abi".
347 - return 0;
348 - fi
349 -
350 - if ! use server ; then
351 - einfo "Skipping server tests due to minimal build."
352 - return 0
353 - fi
354 -
355 - local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
356 - local retstatus_unit
357 - local retstatus_tests
358 -
359 - # Bug #213475 - MySQL _will_ object strenously if your machine is named
360 - # localhost. Also causes weird failures.
361 - [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
362 -
363 - if [[ $UID -eq 0 ]]; then
364 - die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
365 - fi
366 -
367 - einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
368 -
369 - # Run CTest (test-units)
370 - cmake-utils_src_test
371 - retstatus_unit=$?
372 - [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
373 -
374 - # Ensure that parallel runs don't die
375 - export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
376 - # Enable parallel testing, auto will try to detect number of cores
377 - # You may set this by hand.
378 - # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
379 - export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
380 -
381 - # create directories because mysqladmin might right out of order
382 - mkdir -p "${T}"/var-tests{,/log}
383 -
384 - # These are failing in Percona 5.6 for now and are believed to be
385 - # false positives:
386 - #
387 - # main.information_schema, binlog.binlog_statement_insert_delayed,
388 - # main.mysqld--help-notwin, binlog.binlog_mysqlbinlog_filter
389 - # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt
390 - # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers
391 - # engines/funcs.db_alter_character_set engines/funcs.db_alter_character_set_collate
392 - # engines/funcs.db_alter_collate_ascii engines/funcs.db_alter_collate_utf8
393 - # engines/funcs.db_create_character_set engines/funcs.db_create_character_set_collate
394 - # fails due to USE=-latin1 / utf8 default
395 - #
396 - # main.mysql_client_test:
397 - # segfaults at random under Portage only, suspect resource limits.
398 - #
399 - # main.percona_bug1289599
400 - # Looks to be a syntax error in the test file itself
401 - #
402 - # main.variables main.myisam main.merge_recover
403 - # fails due to ulimit not able to open enough files (needs 5000)
404 - #
405 - # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
406 - # Called with bad parameters should be reported upstream
407 - #
408 -
409 - local t
410 -
411 - for t in main.mysql_client_test \
412 - binlog.binlog_statement_insert_delayed main.information_schema \
413 - main.mysqld--help-notwin binlog.binlog_mysqlbinlog_filter \
414 - perfschema.binlog_edge_mix perfschema.binlog_edge_stmt \
415 - funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers \
416 - main.variables main.myisam main.merge_recover \
417 - engines/funcs.db_alter_character_set engines/funcs.db_alter_character_set_collate \
418 - engines/funcs.db_alter_collate_ascii engines/funcs.db_alter_collate_utf8 \
419 - engines/funcs.db_create_character_set engines/funcs.db_create_character_set_collate \
420 - main.percona_bug1289599 main.mysqlhotcopy_archive main.mysqlhotcopy_myisam ; do
421 - mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
422 - done
423 -
424 - if use numa && use kernel_linux ; then
425 - # bug 584880
426 - if ! linux_config_exists || ! linux_chkconfig_present NUMA ; then
427 - for t in sys_vars.innodb_buffer_pool_populate_basic ; do
428 - mysql-multilib-r1_disable_test "$t" "Test $t requires system with NUMA support"
429 - done
430 - fi
431 - fi
432 -
433 - if ! use extraengine ; then
434 - # bug 401673, 530766
435 - for t in federated.federated_plugin ; do
436 - mysql-multilib-r1_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
437 - done
438 - fi
439 -
440 - # Run mysql tests
441 - pushd "${TESTDIR}" || die
442 -
443 - # Set file limits higher so tests run
444 - ulimit -n 3000
445 - python_setup
446 - # run mysql-test tests
447 - perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
448 - --testcase-timeout=30 --reorder
449 - retstatus_tests=$?
450 - [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
451 -
452 - popd || die
453 -
454 - # Cleanup is important for these testcases.
455 - pkill -9 -f "${S}/ndb" 2>/dev/null
456 - pkill -9 -f "${S}/sql" 2>/dev/null
457 -
458 - failures=""
459 - [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
460 - [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
461 -
462 - if [[ -n "$failures" ]]; then
463 - has usersandbox $FEATURES && eerror "Some tests may have failed due to FEATURES=usersandbox"
464 - die "Test failures: $failures"
465 - fi
466 -
467 - einfo "Tests successfully completed"
468 -}
469
470 diff --git a/dev-db/percona-server/percona-server-5.6.34.79.1.ebuild b/dev-db/percona-server/percona-server-5.6.34.79.1.ebuild
471 deleted file mode 100644
472 index e20ed4d1123..00000000000
473 --- a/dev-db/percona-server/percona-server-5.6.34.79.1.ebuild
474 +++ /dev/null
475 @@ -1,211 +0,0 @@
476 -# Copyright 1999-2016 Gentoo Foundation
477 -# Distributed under the terms of the GNU General Public License v2
478 -
479 -EAPI="6"
480 -MY_EXTRAS_VER="20161130-2354Z"
481 -SUBSLOT="18"
482 -PYTHON_COMPAT=( python2_7 )
483 -inherit linux-info python-any-r1 mysql-multilib-r1
484 -
485 -IUSE="numa pam tokudb tokudb-backup-plugin"
486 -
487 -# REMEMBER: also update eclass/mysql*.eclass before committing!
488 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
489 -HOMEPAGE="http://www.percona.com/software/percona-server"
490 -DESCRIPTION="An enhanced, drop-in replacement for MySQL from the Percona team"
491 -
492 -# When MY_EXTRAS is bumped, the index should be revised to exclude these.
493 -EPATCH_EXCLUDE=''
494 -
495 -COMMON_DEPEND="numa? ( sys-process/numactl:= )
496 - server? ( pam? ( virtual/pam:0= ) )
497 - tokudb? ( app-arch/snappy )
498 - tokudb-backup-plugin? ( dev-util/valgrind )
499 - "
500 -
501 -DEPEND="${COMMON_DEPEND}
502 - || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
503 - test? ( $(python_gen_any_dep 'dev-python/mysql-python[${PYTHON_USEDEP}]') )"
504 -RDEPEND="${COMMON_DEPEND}"
505 -
506 -REQUIRED_USE="tokudb? ( jemalloc ) tokudb-backup-plugin? ( tokudb )"
507 -
508 -MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
509 -
510 -PATCHES=(
511 - "${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
512 - "${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
513 - "${MY_PATCH_DIR}"/20001_all_fix-minimal-build-cmake-mysql-5.6.20.patch
514 - "${MY_PATCH_DIR}"/20006_all_cmake_elib-percona-5.6.34.patch
515 - "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
516 - "${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink.patch
517 - "${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
518 - "${MY_PATCH_DIR}"/20018_all_percona-server-5.6.25-without-clientlibs-tools.patch
519 -)
520 -
521 -# Please do not add a naive src_unpack to this ebuild
522 -# If you want to add a single patch, copy the ebuild to an overlay
523 -# and create your own mysql-extras tarball, looking at 000_index.txt
524 -
525 -pkg_pretend() {
526 - mysql-multilib-r1_pkg_pretend
527 -
528 - if use numa; then
529 - local CONFIG_CHECK="~NUMA"
530 -
531 - local WARNING_NUMA="This package expects NUMA support in kernel which this system does not have at the moment;"
532 - WARNING_NUMA+=" Either expect runtime errors, enable NUMA support in kernel or rebuild the package without NUMA support"
533 -
534 - check_extra_config
535 - fi
536 -}
537 -
538 -python_check_deps() {
539 - has_version "dev-python/mysql-python[${PYTHON_USEDEP}]"
540 -}
541 -
542 -src_configure() {
543 - local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITH_NUMA=$(usex numa)
544 - -DWITH_PAM=$(usex pam)
545 - $(mysql-cmake_use_plugin tokudb TOKUDB)
546 - )
547 - if use tokudb ; then
548 - # TokuDB Backup plugin requires valgrind unconditionally
549 - MYSQL_CMAKE_NATIVE_DEFINES+=(
550 - $(usex tokudb-backup-plugin '' -DTOKUDB_BACKUP_DISABLED=1)
551 - )
552 - fi
553 - mysql-multilib-r1_src_configure
554 -}
555 -
556 -# Official test instructions:
557 -# USE='extraengine perl openssl static-libs' \
558 -# FEATURES='test userpriv -usersandbox' \
559 -# ebuild percona-server-X.X.XX.ebuild \
560 -# digest clean package
561 -multilib_src_test() {
562 -
563 - if ! multilib_is_native_abi ; then
564 - einfo "Server tests not available on non-native abi".
565 - return 0;
566 - fi
567 -
568 - if ! use server ; then
569 - einfo "Skipping server tests due to minimal build."
570 - return 0
571 - fi
572 -
573 - local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
574 - local retstatus_unit
575 - local retstatus_tests
576 -
577 - # Bug #213475 - MySQL _will_ object strenously if your machine is named
578 - # localhost. Also causes weird failures.
579 - [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
580 -
581 - if [[ $UID -eq 0 ]]; then
582 - die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
583 - fi
584 -
585 - einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
586 -
587 - # Run CTest (test-units)
588 - cmake-utils_src_test
589 - retstatus_unit=$?
590 - [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
591 -
592 - # Ensure that parallel runs don't die
593 - export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
594 - # Enable parallel testing, auto will try to detect number of cores
595 - # You may set this by hand.
596 - # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
597 - export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
598 -
599 - # create directories because mysqladmin might right out of order
600 - mkdir -p "${T}"/var-tests{,/log}
601 -
602 - # These are failing in Percona 5.6 for now and are believed to be
603 - # false positives:
604 - #
605 - # main.information_schema, binlog.binlog_statement_insert_delayed,
606 - # main.mysqld--help-notwin, binlog.binlog_mysqlbinlog_filter
607 - # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt
608 - # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers
609 - # engines/funcs.db_alter_character_set engines/funcs.db_alter_character_set_collate
610 - # engines/funcs.db_alter_collate_ascii engines/funcs.db_alter_collate_utf8
611 - # engines/funcs.db_create_character_set engines/funcs.db_create_character_set_collate
612 - # fails due to USE=-latin1 / utf8 default
613 - #
614 - # main.mysql_client_test:
615 - # segfaults at random under Portage only, suspect resource limits.
616 - #
617 - # main.percona_bug1289599
618 - # Looks to be a syntax error in the test file itself
619 - #
620 - # main.variables main.myisam main.merge_recover
621 - # fails due to ulimit not able to open enough files (needs 5000)
622 - #
623 - # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
624 - # Called with bad parameters should be reported upstream
625 - #
626 -
627 - local t
628 -
629 - for t in main.mysql_client_test \
630 - binlog.binlog_statement_insert_delayed main.information_schema \
631 - main.mysqld--help-notwin binlog.binlog_mysqlbinlog_filter \
632 - perfschema.binlog_edge_mix perfschema.binlog_edge_stmt \
633 - funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers \
634 - main.variables main.myisam main.merge_recover \
635 - engines/funcs.db_alter_character_set engines/funcs.db_alter_character_set_collate \
636 - engines/funcs.db_alter_collate_ascii engines/funcs.db_alter_collate_utf8 \
637 - engines/funcs.db_create_character_set engines/funcs.db_create_character_set_collate \
638 - main.percona_bug1289599 main.mysqlhotcopy_archive main.mysqlhotcopy_myisam ; do
639 - mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
640 - done
641 -
642 - if use numa && use kernel_linux ; then
643 - # bug 584880
644 - if ! linux_config_exists || ! linux_chkconfig_present NUMA ; then
645 - for t in sys_vars.innodb_buffer_pool_populate_basic ; do
646 - mysql-multilib-r1_disable_test "$t" "Test $t requires system with NUMA support"
647 - done
648 - fi
649 - fi
650 -
651 - if ! use extraengine ; then
652 - # bug 401673, 530766
653 - for t in federated.federated_plugin ; do
654 - mysql-multilib-r1_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
655 - done
656 - fi
657 -
658 - # Run mysql tests
659 - pushd "${TESTDIR}" || die
660 -
661 - # Set file limits higher so tests run
662 - ulimit -n 3000
663 - python_setup
664 - # run mysql-test tests
665 - perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
666 - --testcase-timeout=30 --reorder
667 - retstatus_tests=$?
668 - [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
669 -
670 - popd || die
671 -
672 - # Cleanup is important for these testcases.
673 - pkill -9 -f "${S}/ndb" 2>/dev/null
674 - pkill -9 -f "${S}/sql" 2>/dev/null
675 -
676 - failures=""
677 - [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
678 - [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
679 -
680 - if [[ -n "$failures" ]]; then
681 - has usersandbox $FEATURES && eerror "Some tests may have failed due to FEATURES=usersandbox"
682 - die "Test failures: $failures"
683 - fi
684 -
685 - einfo "Tests successfully completed"
686 -}