1 |
commit: f1675d9494901d3cf36361da9617749617f4b9d2 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 28 02:06:47 2013 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 28 02:06:47 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=f1675d94 |
7 |
|
8 |
Sync from gentoo-x86. |
9 |
|
10 |
--- |
11 |
dev-db/mysql/mysql-5.5.29-r1.ebuild | 129 +++++++++++++++++++++++++++++++++++ |
12 |
1 files changed, 129 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/dev-db/mysql/mysql-5.5.29-r1.ebuild b/dev-db/mysql/mysql-5.5.29-r1.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..42bc387 |
17 |
--- /dev/null |
18 |
+++ b/dev-db/mysql/mysql-5.5.29-r1.ebuild |
19 |
@@ -0,0 +1,129 @@ |
20 |
+# Copyright 1999-2013 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.5.29-r1.ebuild,v 1.1 2013/01/20 23:05:14 robbat2 Exp $ |
23 |
+ |
24 |
+EAPI="4" |
25 |
+ |
26 |
+MY_EXTRAS_VER="20130120-2303Z" |
27 |
+MY_PV="${PV//_alpha_pre/-m}" |
28 |
+MY_PV="${MY_PV//_/-}" |
29 |
+ |
30 |
+# Build type |
31 |
+BUILD="cmake" |
32 |
+ |
33 |
+inherit toolchain-funcs mysql-v2 |
34 |
+# only to make repoman happy. it is really set in the eclass |
35 |
+IUSE="$IUSE" |
36 |
+ |
37 |
+# Define the mysql-extras source |
38 |
+EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git" |
39 |
+ |
40 |
+# REMEMBER: also update eclass/mysql*.eclass before committing! |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux" |
42 |
+ |
43 |
+# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
44 |
+EPATCH_EXCLUDE='' |
45 |
+ |
46 |
+DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" |
47 |
+RDEPEND="${RDEPEND}" |
48 |
+ |
49 |
+# Please do not add a naive src_unpack to this ebuild |
50 |
+# If you want to add a single patch, copy the ebuild to an overlay |
51 |
+# and create your own mysql-extras tarball, looking at 000_index.txt |
52 |
+ |
53 |
+# Official test instructions: |
54 |
+# USE='berkdb -cluster embedded extraengine perl ssl community' \ |
55 |
+# FEATURES='test userpriv -usersandbox' \ |
56 |
+# ebuild mysql-X.X.XX.ebuild \ |
57 |
+# digest clean package |
58 |
+src_test() { |
59 |
+ |
60 |
+ local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test" |
61 |
+ local retstatus_unit |
62 |
+ local retstatus_tests |
63 |
+ |
64 |
+ # Bug #213475 - MySQL _will_ object strenously if your machine is named |
65 |
+ # localhost. Also causes weird failures. |
66 |
+ [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
67 |
+ |
68 |
+ if ! use "minimal" ; then |
69 |
+ |
70 |
+ if [[ $UID -eq 0 ]]; then |
71 |
+ die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
72 |
+ fi |
73 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
74 |
+ |
75 |
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
76 |
+ addpredict /this-dir-does-not-exist/t9.MYI |
77 |
+ |
78 |
+ # Run CTest (test-units) |
79 |
+ cmake-utils_src_test |
80 |
+ retstatus_unit=$? |
81 |
+ [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
82 |
+ |
83 |
+ # Ensure that parallel runs don't die |
84 |
+ export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
85 |
+ |
86 |
+ # create directories because mysqladmin might right out of order |
87 |
+ mkdir -p "${S}"/mysql-test/var-tests{,/log} |
88 |
+ |
89 |
+ # These are failing in MySQL 5.5 for now and are believed to be |
90 |
+ # false positives: |
91 |
+ # |
92 |
+ # main.information_schema, binlog.binlog_statement_insert_delayed, |
93 |
+ # main.mysqld--help-notwin |
94 |
+ # fails due to USE=-latin1 / utf8 default |
95 |
+ # |
96 |
+ # main.mysql_client_test: |
97 |
+ # segfaults at random under Portage only, suspect resource limits. |
98 |
+ # |
99 |
+ # sys_vars.plugin_dir_basic |
100 |
+ # fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin |
101 |
+ # instead of MYSQL_LIBDIR/plugin |
102 |
+ # |
103 |
+ # main.flush_read_lock_kill |
104 |
+ # fails because of unknown system variable 'DEBUG_SYNC' |
105 |
+ # |
106 |
+ # main.openssl_1 |
107 |
+ # error message changing |
108 |
+ # -mysqltest: Could not open connection 'default': 2026 SSL connection |
109 |
+ # error: ASN: bad other signature confirmation |
110 |
+ # +mysqltest: Could not open connection 'default': 2026 SSL connection |
111 |
+ # error: error:00000001:lib(0):func(0):reason(1) |
112 |
+ # |
113 |
+ |
114 |
+ for t in main.mysql_client_test \ |
115 |
+ binlog.binlog_statement_insert_delayed main.information_schema \ |
116 |
+ main.mysqld--help-notwin main.flush_read_lock_kill \ |
117 |
+ sys_vars.plugin_dir_basic main.openssl_1 ; do |
118 |
+ mysql-v2_disable_test "$t" "False positives in Gentoo" |
119 |
+ done |
120 |
+ |
121 |
+ # Run mysql tests |
122 |
+ pushd "${TESTDIR}" |
123 |
+ |
124 |
+ # run mysql-test tests |
125 |
+ perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" |
126 |
+ retstatus_tests=$? |
127 |
+ [[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
128 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
129 |
+ |
130 |
+ popd |
131 |
+ |
132 |
+ # Cleanup is important for these testcases. |
133 |
+ pkill -9 -f "${S}/ndb" 2>/dev/null |
134 |
+ pkill -9 -f "${S}/sql" 2>/dev/null |
135 |
+ |
136 |
+ failures="" |
137 |
+ [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
138 |
+ [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" |
139 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
140 |
+ |
141 |
+ [[ -z "$failures" ]] || die "Test failures: $failures" |
142 |
+ einfo "Tests successfully completed" |
143 |
+ |
144 |
+ else |
145 |
+ |
146 |
+ einfo "Skipping server tests due to minimal build." |
147 |
+ fi |
148 |
+} |