1 |
robbat2 14/07/30 06:26:21 |
2 |
|
3 |
Added: metadata.xml mariadb-galera-10.0.12.ebuild |
4 |
ChangeLog |
5 |
Log: |
6 |
Bring MariaDB-Galera from the overlay into the tree. Thanks to the great work of Brian Evans <grknight@g.o>. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-db/mariadb-galera/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb-galera/metadata.xml?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb-galera/metadata.xml?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
<?xml version="1.0" encoding="UTF-8"?> |
19 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
20 |
<pkgmetadata> |
21 |
<herd>mysql</herd> |
22 |
<!-- |
23 |
Please note that this list is shared between the following packages: |
24 |
dev-db/mysql |
25 |
dev-db/mariadb |
26 |
--> |
27 |
<use> |
28 |
<flag name='cluster'>Add support for NDB clustering (deprecated)</flag> |
29 |
<flag name='community'>Enables the community features from upstream.</flag> |
30 |
<flag name='embedded'>Build embedded server (libmysqld)</flag> |
31 |
<flag name='extraengine'>Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag> |
32 |
<flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag> |
33 |
<flag name='latin1'>Use LATIN1 encoding instead of UTF8</flag> |
34 |
<flag name='max-idx-128'>Raise the max index per table limit from 64 to 128</flag> |
35 |
<flag name='minimal'>Install client programs only, no server</flag> |
36 |
<flag name='oqgraph'>Add support for the Open Query GRAPH engine</flag> |
37 |
<flag name='profiling'>Add support for statement profiling (requires USE=community).</flag> |
38 |
<flag name="systemtap">Build support for profiling and tracing using <pkg>dev-util/systemtap</pkg></flag> |
39 |
<flag name='sphinx'>Add suport for the sphinx full-text search engine</flag> |
40 |
<flag name='test'>Install upstream testsuites for end use.</flag> |
41 |
<flag name='tokudb'>Add support for TokuDB storage engine</flag> |
42 |
</use> |
43 |
</pkgmetadata> |
44 |
|
45 |
|
46 |
|
47 |
1.1 dev-db/mariadb-galera/mariadb-galera-10.0.12.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb-galera/mariadb-galera-10.0.12.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb-galera/mariadb-galera-10.0.12.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: mariadb-galera-10.0.12.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2014 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb-galera/mariadb-galera-10.0.12.ebuild,v 1.1 2014/07/30 06:26:21 robbat2 Exp $ |
57 |
|
58 |
EAPI="5" |
59 |
MY_EXTRAS_VER="20140729-2200Z" |
60 |
WSREP_REVISION="25" |
61 |
|
62 |
# Build system |
63 |
BUILD="cmake" |
64 |
|
65 |
inherit toolchain-funcs mysql-v2 |
66 |
# only to make repoman happy. it is really set in the eclass |
67 |
IUSE="$IUSE" |
68 |
|
69 |
# REMEMBER: also update eclass/mysql*.eclass before committing! |
70 |
KEYWORDS="~amd64 ~x86" |
71 |
|
72 |
# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
73 |
EPATCH_EXCLUDE='' |
74 |
|
75 |
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" |
76 |
RDEPEND="${RDEPEND}" |
77 |
|
78 |
# Please do not add a naive src_unpack to this ebuild |
79 |
# If you want to add a single patch, copy the ebuild to an overlay |
80 |
# and create your own mysql-extras tarball, looking at 000_index.txt |
81 |
|
82 |
# Official test instructions: |
83 |
# USE='-cluster embedded extraengine perl ssl static-libs community' \ |
84 |
# FEATURES='test userpriv -usersandbox' \ |
85 |
# ebuild mariadb-galera-X.X.XX.ebuild \ |
86 |
# digest clean package |
87 |
src_test() { |
88 |
|
89 |
local TESTDIR="${BUILD_DIR}/mysql-test" |
90 |
local retstatus_unit |
91 |
local retstatus_tests |
92 |
|
93 |
# Bug #213475 - MySQL _will_ object strenously if your machine is named |
94 |
# localhost. Also causes weird failures. |
95 |
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
96 |
|
97 |
if ! use "minimal" ; then |
98 |
|
99 |
if [[ $UID -eq 0 ]]; then |
100 |
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
101 |
fi |
102 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
103 |
|
104 |
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
105 |
addpredict /this-dir-does-not-exist/t9.MYI |
106 |
|
107 |
# Run CTest (test-units) |
108 |
cmake-utils_src_test |
109 |
retstatus_unit=$? |
110 |
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
111 |
|
112 |
# Ensure that parallel runs don't die |
113 |
export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
114 |
|
115 |
# create directories because mysqladmin might right out of order |
116 |
mkdir -p "${S}"/mysql-test/var-tests{,/log} |
117 |
|
118 |
# These are failing in MariaDB 10.0 for now and are believed to be |
119 |
# false positives: |
120 |
# |
121 |
# main.information_schema, binlog.binlog_statement_insert_delayed, |
122 |
# main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql, |
123 |
# funcs_1.is_columns_mysql |
124 |
# fails due to USE=-latin1 / utf8 default |
125 |
# |
126 |
# main.mysql_client_test, main.mysql_client_test_nonblock: |
127 |
# segfaults at random under Portage only, suspect resource limits. |
128 |
# |
129 |
# plugins.unix_socket |
130 |
# fails because portage strips out the USER enviornment variable |
131 |
# |
132 |
|
133 |
for t in main.mysql_client_test main.mysql_client_test_nonblock \ |
134 |
binlog.binlog_statement_insert_delayed main.information_schema \ |
135 |
main.mysqld--help plugins.unix_socket \ |
136 |
funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do |
137 |
mysql-v2_disable_test "$t" "False positives in Gentoo" |
138 |
done |
139 |
|
140 |
# Run mysql tests |
141 |
pushd "${TESTDIR}" |
142 |
|
143 |
# run mysql-test tests |
144 |
# Skip all CONNECT engine tests until upstream respondes to how to reference data files |
145 |
perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" \ |
146 |
--skip-test=connect --parallel=auto |
147 |
retstatus_tests=$? |
148 |
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
149 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
150 |
|
151 |
popd |
152 |
|
153 |
# Cleanup is important for these testcases. |
154 |
pkill -9 -f "${S}/ndb" 2>/dev/null |
155 |
pkill -9 -f "${S}/sql" 2>/dev/null |
156 |
|
157 |
failures="" |
158 |
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
159 |
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" |
160 |
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
161 |
|
162 |
[[ -z "$failures" ]] || die "Test failures: $failures" |
163 |
einfo "Tests successfully completed" |
164 |
|
165 |
else |
166 |
|
167 |
einfo "Skipping server tests due to minimal build." |
168 |
fi |
169 |
} |
170 |
|
171 |
|
172 |
|
173 |
1.1 dev-db/mariadb-galera/ChangeLog |
174 |
|
175 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb-galera/ChangeLog?rev=1.1&view=markup |
176 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mariadb-galera/ChangeLog?rev=1.1&content-type=text/plain |
177 |
|
178 |
Index: ChangeLog |
179 |
=================================================================== |
180 |
# ChangeLog for dev-db/mariadb-galera |
181 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
182 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb-galera/ChangeLog,v 1.1 2014/07/30 06:26:21 robbat2 Exp $ |
183 |
|
184 |
*mariadb-galera-10.0.12 (30 Jul 2014) |
185 |
|
186 |
30 Jul 2014; Robin H. Johnson <robbat2@g.o> +files/my.cnf-5.5, |
187 |
+mariadb-galera-10.0.12.ebuild, +metadata.xml: |
188 |
Bring MariaDB-Galera from the overlay into the tree. Thanks to the great work |
189 |
of Brian Evans <grknight@g.o>. |