Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: dev-db/mariadb-galera/
Date: Wed, 03 Sep 2014 20:04:13
Message-Id: 1409774638.c6df5cb4ce472c219a3b63b710239b8cf3e9b06c.grknight@gentoo
1 commit: c6df5cb4ce472c219a3b63b710239b8cf3e9b06c
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 3 20:03:58 2014 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 3 20:03:58 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=c6df5cb4
7
8 [mariadb-galera] Version bump. Needs tests run.
9
10 ---
11 dev-db/mariadb-galera/Manifest | 2 +
12 .../mariadb-galera/mariadb-galera-10.0.13.ebuild | 121 +++++++++++++++++++++
13 2 files changed, 123 insertions(+)
14
15 diff --git a/dev-db/mariadb-galera/Manifest b/dev-db/mariadb-galera/Manifest
16 index 2c7c516..28d0312 100644
17 --- a/dev-db/mariadb-galera/Manifest
18 +++ b/dev-db/mariadb-galera/Manifest
19 @@ -1,4 +1,6 @@
20 DIST mariadb-galera-10.0.12.tar.gz 51307785 SHA256 e68d6ec7c99e0c361a1d2e986e4adb2436776de8192e39dc9ea08ef24e13b1ef SHA512 8c6a39d3a81a7ea795a1c55e527c85996b4dc227607722e94d3c13051e19109bb9873b9993279407064f1d9dc0d1585234af5d22d9d1940fc05b856076249504 WHIRLPOOL 2d2a2720a5b5289902254549b06dd4cbb1476ad76b6bb2bef2fbd7ae57cb8490a47a0b260507ff93ef5aa647a270d2de48f0fb7a3a9ef8dcfea059734362db7d
21 +DIST mariadb-galera-10.0.13.tar.gz 51542182 SHA256 9302c5ca8447e4f33e6f043dbdf56ec0028e1da8dfb713b9f1a81b1d6cd8d2fd SHA512 0274a344ef7da7f663f5822fcd5caa2672e4464e05d06c924050b9f7aaa34c0016067c9dda1f46697519d1eb6b80492f3ac2c7bbb86b0148735fd519b9eb1125 WHIRLPOOL df9c3e1a8fde111f5b1b66d9f556ab4a1b57c42cafd21dabc3a93d8de3add7b46f7f267f17110f19355018c5d2ebc97a8b75a5117106352137a5fdda67fde111
22 DIST mariadb-galera-5.5.38.tar.gz 45256556 SHA256 85d82d1d7610eae10d49ccb8b0c64598c0da63dd5b90248b8d2c17e7cd45fb34 SHA512 40b8e7d7d5dc19e74bc7f8d1bdb3bc0cff71f5e04ca76f26b107e4267062fc906640df3463d748107df2f23f12750987116197603d32417cce9b9adc1b0310de WHIRLPOOL 7a4f4e3f6a0dd2b29d6315a98db5884ea56531d0a4f1e1b49bc1df7868b3855a198c6473b967079b1e2e18317bc2c018c310091f9fd905cb83ada70c769bc3cc
23 DIST mysql-extras-20140426-0232Z.tar.bz2 1493717 SHA256 84002593102ba35383a7f30c7c03af95750edc7a1bfd0ac6219bdfb4771725e0 SHA512 a7c1d603a5aba7996746ee59699091d30f7422e825815b8198ca4a1068df8e0814cf3de3f8608c034d4b1c145bc3dbc93f73cc8a22ae68a0e1bce5eef9afc3bc WHIRLPOOL 241ba3d4f6c9a2a6f7ca672b1902c5829939fe643f192f7ec41e1ffd9134e137ad6729504300034bad310d21ef60366df9451757250be83900783d9cfca010d7
24 DIST mysql-extras-20140729-2200Z.tar.bz2 1494219 SHA256 28363c7ba1893677911451e7f05402a31afc0ed0a48ea1b7cf1915ae1be81e20 SHA512 d90e104b3e73af5589eb32ddbcf9098ad9d69898b55d4d662ebc9578f0281e87fef6b5adb6cdc33fa19a04bf066e01121ead2e6a2bffa0d44ffc10b895392a1c WHIRLPOOL 531a9e08f9231bfcd758bbe8d5b6d5968bd2cfce9c70bc8c15517f497606322da7cffbecd77a0cabd837c3c0ba4f2381a569d583f2fa5ecb14e95a367a93ee11
25 +DIST mysql-extras-20140903-1928Z.tar.bz2 1494599 SHA256 3a1e4ba87b301751f1964875bdba4c4baafe270267247ee79e4285e256f272f8 SHA512 2fcf08cca2ccf62533058e1994a8aca1ffc17867495d5c7fe588d42978e9c5c2e08f93991f44b0354818db14339a09b156471a7c428de17250c54f48c5aca7c4 WHIRLPOOL fc5983a0cb3c8a8faabdb2b8f8cba183188b5cfa2e40eda0207942ed92cf69675ca1753b7c35420c5b0882d4b77d1daacf586fb08f5cb5c701b7925e549cd2c8
26
27 diff --git a/dev-db/mariadb-galera/mariadb-galera-10.0.13.ebuild b/dev-db/mariadb-galera/mariadb-galera-10.0.13.ebuild
28 new file mode 100644
29 index 0000000..32e2aad
30 --- /dev/null
31 +++ b/dev-db/mariadb-galera/mariadb-galera-10.0.13.ebuild
32 @@ -0,0 +1,121 @@
33 +# Copyright 1999-2014 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Header: $
36 +
37 +EAPI="5"
38 +MY_EXTRAS_VER="20140903-1928Z"
39 +WSREP_REVISION="25"
40 +
41 +inherit toolchain-funcs mysql-multilib
42 +# only to make repoman happy. it is really set in the eclass
43 +IUSE="$IUSE"
44 +
45 +# REMEMBER: also update eclass/mysql*.eclass before committing!
46 +KEYWORDS="~amd64 ~x86"
47 +
48 +# When MY_EXTRAS is bumped, the index should be revised to exclude these.
49 +EPATCH_EXCLUDE=''
50 +
51 +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
52 +RDEPEND="${RDEPEND}"
53 +
54 +# Please do not add a naive src_unpack to this ebuild
55 +# If you want to add a single patch, copy the ebuild to an overlay
56 +# and create your own mysql-extras tarball, looking at 000_index.txt
57 +
58 +# Official test instructions:
59 +# USE='-cluster embedded extraengine perl ssl static-libs community' \
60 +# FEATURES='test userpriv -usersandbox' \
61 +# ebuild mariadb-galera-X.X.XX.ebuild \
62 +# digest clean package
63 +multilib_src_test() {
64 +
65 + if ! multilib_is_native_abi ; then
66 + einfo "Server tests not available on non-native abi".
67 + return 0;
68 + fi
69 +
70 + local TESTDIR="${BUILD_DIR}/mysql-test"
71 + local retstatus_unit
72 + local retstatus_tests
73 +
74 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
75 + # localhost. Also causes weird failures.
76 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
77 +
78 + if ! use "minimal" ; then
79 +
80 + if [[ $UID -eq 0 ]]; then
81 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
82 + fi
83 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
84 +
85 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
86 + addpredict /this-dir-does-not-exist/t9.MYI
87 +
88 + # Run CTest (test-units)
89 + cmake-utils_src_test
90 + retstatus_unit=$?
91 + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
92 +
93 + # Ensure that parallel runs don't die
94 + export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
95 +
96 + # create directories because mysqladmin might right out of order
97 + mkdir -p "${S}"/mysql-test/var-tests{,/log}
98 +
99 + # These are failing in MariaDB 10.0 for now and are believed to be
100 + # false positives:
101 + #
102 + # main.information_schema, binlog.binlog_statement_insert_delayed,
103 + # main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql,
104 + # funcs_1.is_columns_mysql
105 + # fails due to USE=-latin1 / utf8 default
106 + #
107 + # main.mysql_client_test, main.mysql_client_test_nonblock
108 + # mina.mysql_client_test_comp:
109 + # segfaults at random under Portage only, suspect resource limits.
110 + #
111 + # innodb.innodb_simulate_comp_failures_small
112 + # Has a very long timeout requirement to be consistent
113 + # Upstream bug MDEV-6546
114 + #
115 +
116 + for t in main.mysql_client_test main.mysql_client_test_nonblock \
117 + main.mysql_client_test_comp \
118 + binlog.binlog_statement_insert_delayed main.information_schema \
119 + main.mysqld--help innodb.innodb_simulate_comp_failures_small \
120 + funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do
121 + mysql-multilib_disable_test "$t" "False positives in Gentoo"
122 + done
123 +
124 + # Run mysql tests
125 + pushd "${TESTDIR}"
126 +
127 + # run mysql-test tests
128 + # Skip all CONNECT engine tests until upstream respondes to how to reference data files
129 + perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" \
130 + --skip-test=connect --parallel=auto
131 + retstatus_tests=$?
132 + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
133 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
134 +
135 + popd
136 +
137 + # Cleanup is important for these testcases.
138 + pkill -9 -f "${S}/ndb" 2>/dev/null
139 + pkill -9 -f "${S}/sql" 2>/dev/null
140 +
141 + failures=""
142 + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
143 + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
144 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
145 +
146 + [[ -z "$failures" ]] || die "Test failures: $failures"
147 + einfo "Tests successfully completed"
148 +
149 + else
150 +
151 + einfo "Skipping server tests due to minimal build."
152 + fi
153 +}