1 |
commit: 67421646fa335d67a5b7cbcb36e3a13428ab9021 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 30 19:37:20 2015 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 30 19:37:20 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=67421646 |
7 |
|
8 |
[mariadb-galera] Version bump; Tests fail and need work |
9 |
|
10 |
--- |
11 |
dev-db/mariadb-galera/Manifest | 1 + |
12 |
.../mariadb-galera/mariadb-galera-10.0.16.ebuild | 130 +++++++++++++++++++++ |
13 |
2 files changed, 131 insertions(+) |
14 |
|
15 |
diff --git a/dev-db/mariadb-galera/Manifest b/dev-db/mariadb-galera/Manifest |
16 |
index 5f816d2..b70fdcc 100644 |
17 |
--- a/dev-db/mariadb-galera/Manifest |
18 |
+++ b/dev-db/mariadb-galera/Manifest |
19 |
@@ -1,4 +1,5 @@ |
20 |
DIST mariadb-galera-10.0.14.tar.gz 51396249 SHA256 ce5a20df0cea64cd1efb2cbe29f91842e56d47266a550e79d87dc96f50bff769 SHA512 6e617b0050eb52f14631c9751b4d4fea699b4eca6ef33a8397fe5076f029ca7c516c6915264a175cecd735651b540ae37bc5d3214a2da6e24d8430a969b5ea45 WHIRLPOOL 6807e32ac5e6423eb216f45d9dbf5829837880ace0f96e09a6dc760c7dcd9e169744197019f879c08a661ec11ae8269d57f5063bec33b648aabdba87e4fbf2de |
21 |
DIST mariadb-galera-10.0.15.tar.gz 55753400 SHA256 aea257ce0834d2c0e34e76966afecda0349995c2f6df0dbeec01f3e81ce5e0bb SHA512 e8a3addb7b6dcda8d3984d3cad17b478df70c67ce356e007385953bbd17d717cbc874713ac0066570e5b3154459666991d6f69bc80deeedff219d3efa9bac1ea WHIRLPOOL c7453899591da3a68e51a24d17283bfe2334f87db6a0e1e25313f5bade1bf5986227e21aeff086be291d55d4533d1e69556c3630048fca346cf3fa6ee864d71a |
22 |
+DIST mariadb-galera-10.0.16.tar.gz 55886236 SHA256 c730c6dbeee4e2985a8db9dc15a6b6e8e64db14cef1442ee5f6732d2754ed9fb SHA512 2a3fcb79bd32420b4b69118825ed4c954fcf7d1fd2358159687bc90157aef9e440d24209ffa71887029b66adca14f439f08d3edfdcee431b9d8bc49a9c7e6762 WHIRLPOOL 60c27680e8ba91f174cb9827e9def0760e8e388f4f072e9d8b71b102a57f2e141dc6cdd66604ad802512ad24855af9216ab4d87718f30c1ff599b3222b44d31c |
23 |
DIST mysql-extras-20141019-1948Z.tar.bz2 1494569 SHA256 9a2ced701ef613e2a41c9a1fc550d9004d04f52cbfc06bb634ba9284d7a1c0ea SHA512 c9e3f3a447f010be0563b9d9ee2937d32c5334b04a883218eb6c14af41f9de635c3c0c44128959793e8a12ca3b26b2415777a13aced7c3812ab2c6d21ade6799 WHIRLPOOL bc0c73ca86d59d18a76a047a920fc2f64d2b3246e6b64838127d26c5c55cb3fc1ce8833656f5eadba72ef651e1f6c3e75700f776a1205ab33ab6ee0064851b86 |
24 |
DIST mysql-extras-20141215-0144Z.tar.bz2 1494767 SHA256 4757043858110654d52b0e6dccab064987ab5db8ae4ae99863cf86df0b90f947 SHA512 7a9b733d09f44b1faff19a496a3e820e444b339838665e6f37c4fddc8f2ad67e805082d598c4edc06fda9364f9906e4cf95520552f72d6b6df34413f38e7a2ed WHIRLPOOL 99ea6890a5faf097b941707538b68f62390e1a49ee662a87c27435a317a9a3f37f00802e72f86b52993b3d1674b57645db0f7e73379ab88fbc1d0ef791cf4326 |
25 |
|
26 |
diff --git a/dev-db/mariadb-galera/mariadb-galera-10.0.16.ebuild b/dev-db/mariadb-galera/mariadb-galera-10.0.16.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..3df601e |
29 |
--- /dev/null |
30 |
+++ b/dev-db/mariadb-galera/mariadb-galera-10.0.16.ebuild |
31 |
@@ -0,0 +1,130 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb-galera/mariadb-galera-10.0.15.ebuild,v 1.1 2014/12/16 02:02:07 grknight Exp $ |
35 |
+ |
36 |
+EAPI="5" |
37 |
+MY_EXTRAS_VER="20141215-0144Z" |
38 |
+WSREP_REVISION="25" |
39 |
+ |
40 |
+inherit toolchain-funcs mysql-multilib |
41 |
+# only to make repoman happy. it is really set in the eclass |
42 |
+IUSE="$IUSE" |
43 |
+ |
44 |
+# REMEMBER: also update eclass/mysql*.eclass before committing! |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
48 |
+EPATCH_EXCLUDE='' |
49 |
+ |
50 |
+DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" |
51 |
+RDEPEND="${RDEPEND}" |
52 |
+ |
53 |
+# Please do not add a naive src_unpack to this ebuild |
54 |
+# If you want to add a single patch, copy the ebuild to an overlay |
55 |
+# and create your own mysql-extras tarball, looking at 000_index.txt |
56 |
+ |
57 |
+# Official test instructions: |
58 |
+# USE='-cluster embedded extraengine perl ssl static-libs community' \ |
59 |
+# FEATURES='test userpriv -usersandbox' \ |
60 |
+# ebuild mariadb-galera-X.X.XX.ebuild \ |
61 |
+# digest clean package |
62 |
+multilib_src_test() { |
63 |
+ |
64 |
+ if ! multilib_is_native_abi ; then |
65 |
+ einfo "Server tests not available on non-native abi". |
66 |
+ return 0; |
67 |
+ fi |
68 |
+ |
69 |
+ local TESTDIR="${BUILD_DIR}/mysql-test" |
70 |
+ local retstatus_unit |
71 |
+ local retstatus_tests |
72 |
+ |
73 |
+ # Bug #213475 - MySQL _will_ object strenously if your machine is named |
74 |
+ # localhost. Also causes weird failures. |
75 |
+ [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
76 |
+ |
77 |
+ if ! use "minimal" ; then |
78 |
+ |
79 |
+ if [[ $UID -eq 0 ]]; then |
80 |
+ die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
81 |
+ fi |
82 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
83 |
+ |
84 |
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
85 |
+ addpredict /this-dir-does-not-exist/t9.MYI |
86 |
+ |
87 |
+ # Run CTest (test-units) |
88 |
+ cmake-utils_src_test |
89 |
+ retstatus_unit=$? |
90 |
+ [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
91 |
+ |
92 |
+ # Ensure that parallel runs don't die |
93 |
+ export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
94 |
+ # You may set this by hand. |
95 |
+ # The default maximum is 8 unless MTR_MAX_PARALLEL is increased |
96 |
+ export MTR_PARALLEL="${MTR_PARALLEL:-auto}" |
97 |
+ |
98 |
+ # create directories because mysqladmin might right out of order |
99 |
+ mkdir -p "${T}"/var-tests{,/log} |
100 |
+ |
101 |
+ # These are failing in MariaDB 10.0 for now and are believed to be |
102 |
+ # false positives: |
103 |
+ # |
104 |
+ # main.information_schema, binlog.binlog_statement_insert_delayed, |
105 |
+ # main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql, |
106 |
+ # funcs_1.is_columns_mysql |
107 |
+ # fails due to USE=-latin1 / utf8 default |
108 |
+ # |
109 |
+ # main.mysql_client_test, main.mysql_client_test_nonblock |
110 |
+ # mina.mysql_client_test_comp: |
111 |
+ # segfaults at random under Portage only, suspect resource limits. |
112 |
+ # |
113 |
+ # wsrep.variables: |
114 |
+ # Expects the sys-cluster/galera library to be installed and configured |
115 |
+ # |
116 |
+ # wsrep.foreign_key: |
117 |
+ # Issues a configuration deprecation warning which does not affect data |
118 |
+ # |
119 |
+ |
120 |
+ for t in main.mysql_client_test main.mysql_client_test_nonblock \ |
121 |
+ main.mysql_client_test_comp \ |
122 |
+ binlog.binlog_statement_insert_delayed main.information_schema \ |
123 |
+ main.mysqld--help wsrep.variables wsrep.foreign_key \ |
124 |
+ funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do |
125 |
+ mysql-multilib_disable_test "$t" "False positives in Gentoo" |
126 |
+ done |
127 |
+ |
128 |
+ for t in rpl.rpl_heartbeat_ssl rpl.rpl_ssl rpl.rpl_ssl1 main.ssl_cipher ; do |
129 |
+ mysql-multilib_disable_test "$t" "Disabled due to expired certificate" |
130 |
+ done |
131 |
+ |
132 |
+ # Run mysql tests |
133 |
+ pushd "${TESTDIR}" |
134 |
+ |
135 |
+ # run mysql-test tests |
136 |
+ # The PATH addition is required for the galera suite to find the sst scripts |
137 |
+ WSREP_LOG_DIR="${T}/var-test/wsrep" \ |
138 |
+ PATH="${BUILD_DIR}/scripts:${PATH}" \ |
139 |
+ perl mysql-test-run.pl --force --vardir="${T}/var-tests" |
140 |
+ retstatus_tests=$? |
141 |
+ [[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
142 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
143 |
+ |
144 |
+ popd |
145 |
+ |
146 |
+ # Cleanup is important for these testcases. |
147 |
+ pkill -9 -f "${S}/ndb" 2>/dev/null |
148 |
+ pkill -9 -f "${S}/sql" 2>/dev/null |
149 |
+ |
150 |
+ failures="" |
151 |
+ [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
152 |
+ [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" |
153 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
154 |
+ |
155 |
+ [[ -z "$failures" ]] || die "Test failures: $failures" |
156 |
+ einfo "Tests successfully completed" |
157 |
+ else |
158 |
+ |
159 |
+ einfo "Skipping server tests due to minimal build." |
160 |
+ fi |
161 |
+} |