1 |
commit: ee94f9105fc0f4789a21c3086ea5ced408fd83eb |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 22 18:45:34 2015 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 22 18:45:34 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee94f910 |
7 |
|
8 |
dev-db/percona-server: Version bump wrt bug 569008 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-db/percona-server/Manifest | 1 + |
13 |
.../percona-server-5.6.27.76.0.ebuild | 173 +++++++++++++++++++++ |
14 |
2 files changed, 174 insertions(+) |
15 |
|
16 |
diff --git a/dev-db/percona-server/Manifest b/dev-db/percona-server/Manifest |
17 |
index 783a03c..953755c 100644 |
18 |
--- a/dev-db/percona-server/Manifest |
19 |
+++ b/dev-db/percona-server/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST mysql-extras-20151105-2051Z.tar.bz2 1490187 SHA256 129d79c2064b08b0afad69e04e27991bf4103c20ccea39c133239b1dd822a49f SHA512 af34a44275b06c1626eb5952b3643b5663b8a1fb1d9ff18a67d51c02daaa51c4476df407d38ab607cc41842b47e5dd7b4cef8ae380a41eb80923df8052b9e521 WHIRLPOOL 01702ca4e2033fbc70db3ab2dd166b2e31072ea0f6bdd42d00c27ae0c0afab5c8451c4dcc90cce6d46f9ea056017e273f7c719e1cfabf969293bdcd15241f5b3 |
22 |
DIST percona-server-5.6.27-75.0.tar.gz 54907367 SHA256 7dc4a4efadaee25e11fd78838f4ad2c0d7921ac9cc3b95068626f918c0add8d7 SHA512 c58fe18e3af7c88d9a3269c0b6a20c367bc80af6b3c1ab072fb380787f6b0ad44c8471134e366b7a9572fc4d16a4260d81a26f384aadab4bca99efcf521d3201 WHIRLPOOL 403a7efdbfb8bdaa5cecf72930be351b8762f17ce7166dffcff307e86a69f742546c85ff5badefab182dd001080ed49e71d2d5d587b74801cc22ccba682ac418 |
23 |
+DIST percona-server-5.6.27-76.0.tar.gz 54946650 SHA256 36d5c1c9a94712874b4d6e12c7e48d1f13c1fffb0ff976bc93aedbb4f73a0fef SHA512 64e2b1643bb06aefd59a1e1caddd31931b4b39ce5cd575ec3ec92f8c824887d112aa17573b10d596996579088c34e729eed83c37d63dd8cbef6755f0c0086805 WHIRLPOOL b203ba373ce312c1e10f0f96ba0fe8722ddc29c218bd075539f868426ad20c4d02c2307756c98fd2c7e21b45398d92c1b2b5145218b503bb0962bcafd908de12 |
24 |
|
25 |
diff --git a/dev-db/percona-server/percona-server-5.6.27.76.0.ebuild b/dev-db/percona-server/percona-server-5.6.27.76.0.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..2ba398a |
28 |
--- /dev/null |
29 |
+++ b/dev-db/percona-server/percona-server-5.6.27.76.0.ebuild |
30 |
@@ -0,0 +1,173 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI="5" |
36 |
+MY_EXTRAS_VER="20151105-2051Z" |
37 |
+SUBSLOT="18" |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+inherit python-any-r1 mysql-multilib-r1 |
40 |
+ |
41 |
+IUSE="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="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 |
+# Please do not add a naive src_unpack to this ebuild |
64 |
+# If you want to add a single patch, copy the ebuild to an overlay |
65 |
+# and create your own mysql-extras tarball, looking at 000_index.txt |
66 |
+ |
67 |
+python_check_deps() { |
68 |
+ has_version "dev-python/mysql-python[${PYTHON_USEDEP}]" |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITH_PAM=$(usex pam) |
73 |
+ $(mysql-cmake_use_plugin tokudb TOKUDB) |
74 |
+ ) |
75 |
+ if use tokudb ; then |
76 |
+ # TokuDB Backup plugin requires valgrind unconditionally |
77 |
+ MYSQL_CMAKE_NATIVE_DEFINES+=( |
78 |
+ $(usex tokudb-backup-plugin '' -DTOKUDB_BACKUP_DISABLED=1) |
79 |
+ ) |
80 |
+ fi |
81 |
+ mysql-multilib-r1_src_configure |
82 |
+} |
83 |
+ |
84 |
+# Official test instructions: |
85 |
+# USE='extraengine perl openssl static-libs' \ |
86 |
+# FEATURES='test userpriv -usersandbox' \ |
87 |
+# ebuild percona-server-X.X.XX.ebuild \ |
88 |
+# digest clean package |
89 |
+multilib_src_test() { |
90 |
+ |
91 |
+ if ! multilib_is_native_abi ; then |
92 |
+ einfo "Server tests not available on non-native abi". |
93 |
+ return 0; |
94 |
+ fi |
95 |
+ |
96 |
+ if ! use server ; then |
97 |
+ einfo "Skipping server tests due to minimal build." |
98 |
+ return 0 |
99 |
+ fi |
100 |
+ |
101 |
+ local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test" |
102 |
+ local retstatus_unit |
103 |
+ local retstatus_tests |
104 |
+ |
105 |
+ # Bug #213475 - MySQL _will_ object strenously if your machine is named |
106 |
+ # localhost. Also causes weird failures. |
107 |
+ [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
108 |
+ |
109 |
+ if [[ $UID -eq 0 ]]; then |
110 |
+ die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
111 |
+ fi |
112 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
113 |
+ |
114 |
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
115 |
+ addpredict /this-dir-does-not-exist/t9.MYI |
116 |
+ |
117 |
+ # Run CTest (test-units) |
118 |
+ cmake-utils_src_test |
119 |
+ retstatus_unit=$? |
120 |
+ [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
121 |
+ |
122 |
+ # Ensure that parallel runs don't die |
123 |
+ export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
124 |
+ # Enable parallel testing, auto will try to detect number of cores |
125 |
+ # You may set this by hand. |
126 |
+ # The default maximum is 8 unless MTR_MAX_PARALLEL is increased |
127 |
+ export MTR_PARALLEL="${MTR_PARALLEL:-auto}" |
128 |
+ |
129 |
+ # create directories because mysqladmin might right out of order |
130 |
+ mkdir -p "${T}"/var-tests{,/log} |
131 |
+ |
132 |
+ # These are failing in Percona 5.6 for now and are believed to be |
133 |
+ # false positives: |
134 |
+ # |
135 |
+ # main.information_schema, binlog.binlog_statement_insert_delayed, |
136 |
+ # main.mysqld--help-notwin, binlog.binlog_mysqlbinlog_filter |
137 |
+ # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt |
138 |
+ # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers |
139 |
+ # engines/funcs.db_alter_character_set engines/funcs.db_alter_character_set_collate |
140 |
+ # engines/funcs.db_alter_collate_ascii engines/funcs.db_alter_collate_utf8 |
141 |
+ # engines/funcs.db_create_character_set engines/funcs.db_create_character_set_collate |
142 |
+ # fails due to USE=-latin1 / utf8 default |
143 |
+ # |
144 |
+ # main.mysql_client_test: |
145 |
+ # segfaults at random under Portage only, suspect resource limits. |
146 |
+ # |
147 |
+ # main.percona_bug1289599 |
148 |
+ # Looks to be a syntax error in the test file itself |
149 |
+ # |
150 |
+ # main.variables main.myisam main.merge_recover |
151 |
+ # fails due to ulimit not able to open enough files (needs 5000) |
152 |
+ # |
153 |
+ # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam |
154 |
+ # Called with bad parameters should be reported upstream |
155 |
+ # |
156 |
+ |
157 |
+ for t in main.mysql_client_test \ |
158 |
+ binlog.binlog_statement_insert_delayed main.information_schema \ |
159 |
+ main.mysqld--help-notwin binlog.binlog_mysqlbinlog_filter \ |
160 |
+ perfschema.binlog_edge_mix perfschema.binlog_edge_stmt \ |
161 |
+ funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers \ |
162 |
+ main.variables main.myisam main.merge_recover \ |
163 |
+ engines/funcs.db_alter_character_set engines/funcs.db_alter_character_set_collate \ |
164 |
+ engines/funcs.db_alter_collate_ascii engines/funcs.db_alter_collate_utf8 \ |
165 |
+ engines/funcs.db_create_character_set engines/funcs.db_create_character_set_collate \ |
166 |
+ main.percona_bug1289599 main.mysqlhotcopy_archive main.mysqlhotcopy_myisam ; do |
167 |
+ mysql-multilib-r1_disable_test "$t" "False positives in Gentoo" |
168 |
+ done |
169 |
+ |
170 |
+ if ! use extraengine ; then |
171 |
+ # bug 401673, 530766 |
172 |
+ for t in federated.federated_plugin ; do |
173 |
+ mysql-multilib-r1_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)" |
174 |
+ done |
175 |
+ fi |
176 |
+ |
177 |
+ # Run mysql tests |
178 |
+ pushd "${TESTDIR}" || die |
179 |
+ |
180 |
+ # Set file limits higher so tests run |
181 |
+ ulimit -n 3000 |
182 |
+ python_setup |
183 |
+ # run mysql-test tests |
184 |
+ perl mysql-test-run.pl --force --vardir="${T}/var-tests" \ |
185 |
+ --testcase-timeout=30 --reorder |
186 |
+ retstatus_tests=$? |
187 |
+ [[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
188 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
189 |
+ |
190 |
+ popd || die |
191 |
+ |
192 |
+ # Cleanup is important for these testcases. |
193 |
+ pkill -9 -f "${S}/ndb" 2>/dev/null |
194 |
+ pkill -9 -f "${S}/sql" 2>/dev/null |
195 |
+ |
196 |
+ failures="" |
197 |
+ [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
198 |
+ [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" |
199 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
200 |
+ |
201 |
+ [[ -z "$failures" ]] || die "Test failures: $failures" |
202 |
+ einfo "Tests successfully completed" |
203 |
+} |