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