Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/percona-server: metadata.xml percona-server-5.6.19.67.0.ebuild ChangeLog
Date: Tue, 29 Jul 2014 23:14:41
Message-Id: 20140729231434.915F92004F@flycatcher.gentoo.org
1 robbat2 14/07/29 23:14:33
2
3 Added: metadata.xml percona-server-5.6.19.67.0.ebuild
4 ChangeLog
5 Log:
6 Bring MySQL(percona-server) 5.6 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/percona-server/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/percona-server/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/percona-server/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 <use>
23 <flag name='cluster'>Add support for NDB clustering (deprecated)</flag>
24 <flag name='community'>Enables the community features from upstream.</flag>
25 <flag name='embedded'>Build embedded server (libmysqld)</flag>
26 <flag name='extraengine'>Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag>
27 <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag>
28 <flag name='latin1'>Use LATIN1 encoding instead of UTF8</flag>
29 <flag name='max-idx-128'>Raise the max index per table limit from 64 to 128</flag>
30 <flag name='minimal'>Install client programs only, no server</flag>
31 <flag name='profiling'>Add support for statement profiling (requires USE=community).</flag>
32 <flag name="systemtap">Build support for profiling and tracing using <pkg>dev-util/systemtap</pkg></flag>
33 <flag name='test'>Install upstream testsuites for end use.</flag>
34 </use>
35 </pkgmetadata>
36
37
38
39 1.1 dev-db/percona-server/percona-server-5.6.19.67.0.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/percona-server/percona-server-5.6.19.67.0.ebuild?rev=1.1&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/percona-server/percona-server-5.6.19.67.0.ebuild?rev=1.1&content-type=text/plain
43
44 Index: percona-server-5.6.19.67.0.ebuild
45 ===================================================================
46 # Copyright 1999-2014 Gentoo Foundation
47 # Distributed under the terms of the GNU General Public License v2
48 # $Header: /var/cvsroot/gentoo-x86/dev-db/percona-server/percona-server-5.6.19.67.0.ebuild,v 1.1 2014/07/29 23:14:33 robbat2 Exp $
49
50 EAPI="5"
51
52 MY_EXTRAS_VER="20140729-2200Z"
53 MY_PV="${PV//_alpha_pre/-m}"
54 MY_PV="${MY_PV//_/-}"
55
56 # Build type
57 BUILD="cmake"
58
59 inherit toolchain-funcs mysql-v2
60 # only to make repoman happy. it is really set in the eclass
61 IUSE="$IUSE"
62
63 # Define the mysql-extras source
64 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
65
66 # REMEMBER: also update eclass/mysql*.eclass before committing!
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
68
69 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
70 EPATCH_EXCLUDE=''
71
72 DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
73 RDEPEND="${RDEPEND}"
74
75 # Please do not add a naive src_unpack to this ebuild
76 # If you want to add a single patch, copy the ebuild to an overlay
77 # and create your own mysql-extras tarball, looking at 000_index.txt
78
79 # Official test instructions:
80 # USE='-cluster embedded extraengine perl ssl static-libs community' \
81 # FEATURES='test userpriv -usersandbox' \
82 # ebuild percona-server-X.X.XX.ebuild \
83 # digest clean package
84 src_test() {
85
86 local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
87 local retstatus_unit
88 local retstatus_tests
89
90 # Bug #213475 - MySQL _will_ object strenously if your machine is named
91 # localhost. Also causes weird failures.
92 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
93
94 if ! use "minimal" ; then
95
96 if [[ $UID -eq 0 ]]; then
97 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
98 fi
99 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
100
101 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
102 addpredict /this-dir-does-not-exist/t9.MYI
103
104 # Run CTest (test-units)
105 cmake-utils_src_test
106 retstatus_unit=$?
107 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
108
109 # Ensure that parallel runs don't die
110 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
111
112 # create directories because mysqladmin might right out of order
113 mkdir -p "${S}"/mysql-test/var-tests{,/log}
114
115 # These are failing in Percona 5.6 for now and are believed to be
116 # false positives:
117 #
118 # main.information_schema, binlog.binlog_statement_insert_delayed,
119 # main.mysqld--help-notwin, binlog.binlog_mysqlbinlog_filter
120 # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt
121 # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers
122 # fails due to USE=-latin1 / utf8 default
123 #
124 # main.mysql_client_test:
125 # segfaults at random under Portage only, suspect resource limits.
126 #
127 # main.percona_bug1289599
128 # Looks to be a syntax error in the test file itself
129 #
130 # main.variables main.myisam main.merge_recover
131 # fails due to ulimit not able to open enough files (needs 5000)
132 #
133
134 for t in main.mysql_client_test \
135 binlog.binlog_statement_insert_delayed main.information_schema \
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 main.variables main.myisam main.merge_recover \
140 main.percona_bug1289599; do
141 mysql-v2_disable_test "$t" "False positives in Gentoo"
142 done
143
144 # Run mysql tests
145 pushd "${TESTDIR}"
146
147 # Set file limits higher so tests run
148 ulimit -n 3000
149
150 # run mysql-test tests
151 perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" \
152 --testcase-timeout=30 --parallel=auto
153 retstatus_tests=$?
154 [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
155 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
156
157 popd
158
159 # Cleanup is important for these testcases.
160 pkill -9 -f "${S}/ndb" 2>/dev/null
161 pkill -9 -f "${S}/sql" 2>/dev/null
162
163 failures=""
164 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
165 [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
166 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
167
168 [[ -z "$failures" ]] || die "Test failures: $failures"
169 einfo "Tests successfully completed"
170
171 else
172
173 einfo "Skipping server tests due to minimal build."
174 fi
175 }
176
177
178
179 1.1 dev-db/percona-server/ChangeLog
180
181 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/percona-server/ChangeLog?rev=1.1&view=markup
182 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/percona-server/ChangeLog?rev=1.1&content-type=text/plain
183
184 Index: ChangeLog
185 ===================================================================
186 # ChangeLog for dev-db/percona-server
187 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
188 # $Header: /var/cvsroot/gentoo-x86/dev-db/percona-server/ChangeLog,v 1.1 2014/07/29 23:14:33 robbat2 Exp $
189
190 *percona-server-5.6.19.67.0 (29 Jul 2014)
191
192 29 Jul 2014; Robin H. Johnson <robbat2@g.o> +files/my.cnf-5.5,
193 +metadata.xml, +percona-server-5.6.19.67.0.ebuild:
194 Bring MySQL(percona-server) 5.6 from the overlay into the tree. Thanks to the
195 great work of Brian Evans <grknight@g.o>.