/[gentoo-x86]/dev-db/mariadb/mariadb-5.1.42.ebuild
Gentoo

Contents of /dev-db/mariadb/mariadb-5.1.42.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Apr 13 17:55:05 2012 UTC (2 years, 4 months ago) by ulm
Branch: MAIN
Changes since 1.7: +2 -2 lines
Move EAPI assignment to top of ebuild, bug 411875.

(Portage version: 2.1.10.56/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-5.1.42.ebuild,v 1.7 2012/01/08 23:55:47 jmbsvicetto Exp $
4
5 EAPI="4"
6 MY_EXTRAS_VER="20100324-0235Z"
7
8 inherit toolchain-funcs mysql
9 # only to make repoman happy. it is really set in the eclass
10 IUSE="$IUSE"
11
12 # REMEMBER: also update eclass/mysql*.eclass before committing!
13 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
14
15 # When MY_EXTRAS is bumped, the index should be revised to exclude these.
16 EPATCH_EXCLUDE=''
17
18 DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
19 RDEPEND="!media-sound/amarok[embedded]"
20
21 # Please do not add a naive src_unpack to this ebuild
22 # If you want to add a single patch, copy the ebuild to an overlay
23 # and create your own mysql-extras tarball, looking at 000_index.txt
24
25 # Official test instructions:
26 # USE='berkdb -cluster embedded extraengine perl ssl community' \
27 # FEATURES='test userpriv -usersandbox' \
28 # ebuild mysql-X.X.XX.ebuild \
29 # digest clean package
30 src_test() {
31 # Bug #213475 - MySQL _will_ object strenously if your machine is named
32 # localhost. Also causes weird failures.
33 [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
34
35 emake check || die "make check failed"
36 if ! use "minimal" ; then
37 if [[ $UID -eq 0 ]]; then
38 die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
39 fi
40 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
41 cd "${S}"
42 einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
43 local retstatus_unit
44 local retstatus_ns
45 local retstatus_ps
46 local t
47 addpredict /this-dir-does-not-exist/t9.MYI
48
49 # Ensure that parallel runs don't die
50 export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
51
52 # archive_gis really sucks a lot, but it's only relevant for the
53 # USE=extraengines case
54 case ${PV} in
55 5.0.42)
56 mysql_disable_test "archive_gis" "Totally broken in 5.0.42"
57 ;;
58
59 5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87)
60 [ "$(tc-endian)" == "big" ] && \
61 mysql_disable_test \
62 "archive_gis" \
63 "Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only"
64 ;;
65 esac
66
67 # This was a slight testcase breakage when the read_only security issue
68 # was fixed.
69 case ${PV} in
70 5.0.54|5.0.51*)
71 mysql_disable_test \
72 "read_only" \
73 "Broken in 5.0.51-54, output in wrong order"
74 ;;
75 esac
76
77 # Ditto to read_only
78 [ "${PV}" == "5.0.51a" ] && \
79 mysql_disable_test \
80 "view" \
81 "Broken in 5.0.51, output in wrong order"
82
83 # x86-specific, OOM issue with some subselects on low memory servers
84 [ "${PV}" == "5.0.54" ] && \
85 [ "${ARCH/x86}" != "${ARCH}" ] && \
86 mysql_disable_test \
87 "subselect" \
88 "Testcase needs tuning on x86 for oom condition"
89
90 # Broke with the YaSSL security issue that didn't affect Gentoo.
91 [ "${PV}" == "5.0.56" ] && \
92 for t in openssl_1 rpl_openssl rpl_ssl ssl \
93 ssl_8k_key ssl_compress ssl_connect ; do \
94 mysql_disable_test \
95 "$t" \
96 "OpenSSL tests broken on 5.0.56"
97 done
98
99 # New test was broken in first time
100 # Upstream bug 41066
101 # http://bugs.mysql.com/bug.php?id=41066
102 [ "${PV}" == "5.0.72" ] && \
103 mysql_disable_test \
104 "status2" \
105 "Broken in 5.0.72, new test is broken, upstream bug #41066"
106
107 # The entire 5.0 series has pre-generated SSL certificates, they have
108 # mostly expired now. ${S}/mysql-tests/std-data/*.pem
109 # The certs really SHOULD be generated for the tests, so that they are
110 # not expiring like this. We cannot do so ourselves as the tests look
111 # closely as the cert path data, and we do not have the CA key to regen
112 # ourselves. Alternatively, upstream should generate them with at least
113 # 50-year validity.
114 #
115 # Known expiry points:
116 # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
117 # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
118 # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
119 #
120 # mysql-test/std_data/untrusted-cacert.pem is MEANT to be
121 # expired/invalid.
122 case ${PV} in
123 5.0.*|5.1.*|5.4.*|5.5.*)
124 for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
125 ssl_compress ssl_connect rpl.rpl_heartbeat_ssl ; do \
126 mysql_disable_test \
127 "$t" \
128 "These OpenSSL tests break due to expired certificates"
129 done
130 ;;
131 esac
132
133 # These are also failing in MySQL 5.1 for now, and are believed to be
134 # false positives:
135 #
136 # main.mysql_comment, main.mysql_upgrade, main.information_schema,
137 # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers:
138 # fails due to USE=-latin1 / utf8 default
139 #
140 # main.mysql_client_test:
141 # segfaults at random under Portage only, suspect resource limits.
142 #
143 # main.not_partition:
144 # Failure reason unknown at this time, must resolve before package.mask
145 # removal FIXME
146 case ${PV} in
147 5.1.*|5.4.*|5.5.*)
148 for t in main.mysql_client_test main.mysql_comments \
149 main.mysql_upgrade \
150 main.information_schema \
151 main.not_partition funcs_1.is_columns_mysql \
152 funcs_1.is_tables_mysql funcs_1.is_triggers; do
153 mysql_disable_test "$t" "False positives in Gentoo"
154 done
155 ;;
156 esac
157
158 if [ "${PN}" == "mariadb" ]; then
159 use profiling \
160 || mysql_disable_test main.profiling \
161 "Profiling test needs profiling support"
162
163 for t in \
164 parts.part_supported_sql_func_ndb \
165 parts.partition_auto_increment_ndb ; do
166 mysql_disable_test $t "ndb not supported in mariadb"
167 done
168 fi
169
170 use profiling && use community \
171 || mysql_disable_test main.profiling \
172 "Profiling test needs profiling support"
173
174 # create directories because mysqladmin might make out of order
175 mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
176
177 # We run the test protocols seperately
178 emake test-unit
179 retstatus_unit=$?
180 [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
181
182 emake test-ns force="--force --vardir=${S}/mysql-test/var-ns"
183 retstatus_ns=$?
184 [[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed"
185 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
186
187 emake test-ps force="--force --vardir=${S}/mysql-test/var-ps"
188 retstatus_ps=$?
189 [[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed"
190 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
191
192 # TODO:
193 # When upstream enables the pr and nr testsuites, we need those as well.
194
195 # Cleanup is important for these testcases.
196 pkill -9 -f "${S}/ndb" 2>/dev/null
197 pkill -9 -f "${S}/sql" 2>/dev/null
198 failures=""
199 [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
200 [[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns"
201 [[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps"
202 has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
203 [[ -z "$failures" ]] || die "Test failures: $failures"
204 einfo "Tests successfully completed"
205 else
206 einfo "Skipping server tests due to minimal build."
207 fi
208 }

  ViewVC Help
Powered by ViewVC 1.1.20