Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@×××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: dev-db/mariadb/
Date: Thu, 30 Jan 2014 03:01:29
Message-Id: 1391050867.99356f5af71aca48159f02c41963386cfe60a2d2.grknight.pub@gentoo
1 commit: 99356f5af71aca48159f02c41963386cfe60a2d2
2 Author: Brian Evans <grknight <AT> tuffmail <DOT> com>
3 AuthorDate: Thu Jan 30 03:01:07 2014 +0000
4 Commit: Brian Evans <grknight <AT> lavabit <DOT> com>
5 CommitDate: Thu Jan 30 03:01:07 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=99356f5a
7
8 [mariadb] Version bump 5.5.35 Tests pass
9
10 ---
11 dev-db/mariadb/Manifest | 1 +
12 dev-db/mariadb/mariadb-5.5.35.ebuild | 131 +++++++++++++++++++++++++++++++++++
13 2 files changed, 132 insertions(+)
14
15 diff --git a/dev-db/mariadb/Manifest b/dev-db/mariadb/Manifest
16 index 97eff4c..9104a44 100644
17 --- a/dev-db/mariadb/Manifest
18 +++ b/dev-db/mariadb/Manifest
19 @@ -6,6 +6,7 @@ DIST mariadb-5.3.12.tar.gz 26880808 SHA256 83a4598117cadde2bd7eac4c1398edbc86cc3
20 DIST mariadb-5.5.32.tar.gz 27929231 SHA256 cc76d143c60d9f24b551adaf80f694ef9beb4a6a9032c115a06f7b5c5d0ee468 SHA512 246ab7740cfdf5e9908ec437c226102e373824894813345cef7431e7ddc681b3b8081ec22d2c61bbc3e67dbe22a34b08096ffee6952f86c046b5d9fadfd79ba3 WHIRLPOOL 955098e9ea6c8cc23243e6deaef570979d201b504d20e680cf92dc11071373bf0650f6dcd455b9cbd66607659642ab2d20997b39e31d526bf691cf7ed2332742
21 DIST mariadb-5.5.33a.tar.gz 45226492 SHA256 adf4d04087177fde6568082c3fee77e52e84dc3ae4eb5b994d5defaaa8c83d5b SHA512 22b786f5646ca21f84404ccda233ce66e175fb791b0c0d03b0233b566c3584b96d8d7886eccf6f25605f9bee237a7422bf6a96389fe465aa3317ea3aa1a85ec6 WHIRLPOOL 12881339e1e2a37d58ed46bb647a0c51a2ae07b4bcf51bac0020f62620b038895e875f995156c9fb62b6a3cf80f13e8616e5173dcb1de9d909f8c48d02e7771b
22 DIST mariadb-5.5.34.tar.gz 45683350 SHA256 a4d8b54be0f5784924629a1e87dbbccc4c0aaf537c76951e265625deda322f89 SHA512 9e5ed4631d5041ff6ff6f5336f90f6d9bee36a7b4d14a994d98c0e9aac4ca60b41b9cec588e737714973a91f600f1cf9190165f74c0e906893aff88451bc82ee WHIRLPOOL d0aa652f3cddf9d59be68f0b254f0976d70212602dbb91749e6ca942524a4c32a04d0fd01a5e5d33f99291c7ba1dbfed514a0975785507172b76a8b60ae54f88
23 +DIST mariadb-5.5.35.tar.gz 45723697 SHA256 b47391e5da8ea1a09585411b2a892e2070d097bec6102b0f13640176a1746a4e SHA512 fe456d3bd63d78ec65ff4a9db182d18f02e6a04f5513d911d525743f0bb8bef74a5c3d058845eb6c5e9195c901c6afef51f453a9b836e8d432d12e62da041d8d WHIRLPOOL b58c1d979083bcc0e5f16dc1277c25fbc83ef33bee891e15216d8363496b7e488334d4dd40cae1763a53f09690b639df845ac23b4c8008330f76e12d58d0d407
24 DIST mysql-extras-20121101-2319Z.tar.bz2 1898358 SHA256 ea5da082d3384bde67e005ebc39b78e7caadea80745333fb5a9cf47a4c4e4c5d SHA512 6a49abb1beee012d87ab63071a568ee6d9d8e4ff7a76401b91f5bdc127860d1c504a3877cbadb81536b07afe5ff419c77c793b0fc14ba484f56765d1ca526614 WHIRLPOOL 4bda75a0a9063830b3140bbc3cb12b60fa21289eee2fa476fb286da6318fdf0445a9c6193bd2063aefcd3f4ecc1f8045b30635f0e32014098d0f3dbee86e01fc
25 DIST mysql-extras-20130120-0100Z.tar.bz2 1899297 SHA256 56db6daa26070cb10b220cb06e7b4d4a84214932a5a04500ed0e76b938c01776 SHA512 9fc9b21e547ec0e1ae37b288a1ade28b11c03a89129302226c36018cf69842fda95665799ded84f04cccffaf54555acde40bf2ae6e2ea39ec63b3876382af1ba WHIRLPOOL 25f31d91d6004e7472ef6f2ff0d02b9dde9915f56fc84da600145ac09d1d56751c2ef85c897d3b7bacd29b1010b304445517452254a1e9208bc7bfa9c2e9bf2e
26 DIST mysql-extras-20140121-1138Z.tar.bz2 1493430 SHA256 c04953c41fc559018491a26acfce4fb509e26b0d07e8ecef0d5e5f5c1c416862 SHA512 7fafdc52803044605e0c86f18503b258a949eadd1da71d3e7fae1571329ed869f577bff971da373767db56538c1a9feb864ad5451d1628958f0285a401d0886f WHIRLPOOL e3ab7c61d7b647669201417867237ce8e566dd59c42394add571814491fa59e89969ad9a3bd9a7399fb9cf8689b3a4e535fcc2a0bab32d44e45a24cb4526405a
27
28 diff --git a/dev-db/mariadb/mariadb-5.5.35.ebuild b/dev-db/mariadb/mariadb-5.5.35.ebuild
29 new file mode 100644
30 index 0000000..580a6ac
31 --- /dev/null
32 +++ b/dev-db/mariadb/mariadb-5.5.35.ebuild
33 @@ -0,0 +1,131 @@
34 +# Copyright 1999-2013 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Header: $
37 +
38 +EAPI="4"
39 +MY_EXTRAS_VER="20140121-1138Z"
40 +
41 +# Build system
42 +BUILD="cmake"
43 +
44 +inherit toolchain-funcs mysql-v2
45 +# only to make repoman happy. it is really set in the eclass
46 +IUSE="$IUSE"
47 +
48 +# REMEMBER: also update eclass/mysql*.eclass before committing!
49 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
50 +
51 +# When MY_EXTRAS is bumped, the index should be revised to exclude these.
52 +EPATCH_EXCLUDE=''
53 +
54 +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
55 +RDEPEND="${RDEPEND}"
56 +
57 +# Please do not add a naive src_unpack to this ebuild
58 +# If you want to add a single patch, copy the ebuild to an overlay
59 +# and create your own mysql-extras tarball, looking at 000_index.txt
60 +
61 +# Official test instructions:
62 +# USE='-cluster embedded extraengine perl ssl community' \
63 +# FEATURES='test userpriv -usersandbox' \
64 +# ebuild mariadb-X.X.XX.ebuild \
65 +# digest clean package
66 +src_test() {
67 +
68 + local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
69 + local retstatus_unit
70 + local retstatus_tests
71 +
72 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
73 + # localhost. Also causes weird failures.
74 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
75 +
76 + if ! use "minimal" ; then
77 +
78 + if [[ $UID -eq 0 ]]; then
79 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
80 + fi
81 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
82 +
83 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
84 + addpredict /this-dir-does-not-exist/t9.MYI
85 +
86 + # Run CTest (test-units)
87 + cmake-utils_src_test
88 + retstatus_unit=$?
89 + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
90 +
91 + # Ensure that parallel runs don't die
92 + export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
93 +
94 + # create directories because mysqladmin might right out of order
95 + mkdir -p "${S}"/mysql-test/var-tests{,/log}
96 +
97 + # create symlink for the tests to find mysql_tzinfo_to_sql
98 + ln -s "${CMAKE_BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
99 +
100 + # These are failing in MySQL 5.5 for now and are believed to be
101 + # false positives:
102 + #
103 + # main.information_schema, binlog.binlog_statement_insert_delayed,
104 + # main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql,
105 + # funcs_1.is_columns_mysql
106 + # fails due to USE=-latin1 / utf8 default
107 + #
108 + # main.mysql_client_test, main.mysql_client_test_nonblock:
109 + # segfaults at random under Portage only, suspect resource limits.
110 + #
111 + # sys_vars.plugin_dir_basic
112 + # fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin
113 + # instead of MYSQL_LIBDIR/plugin
114 + #
115 + # main.flush_read_lock_kill
116 + # fails because of unknown system variable 'DEBUG_SYNC'
117 + #
118 + # main.openssl_1
119 + # error message changing
120 + # -mysqltest: Could not open connection 'default': 2026 SSL connection
121 + # error: ASN: bad other signature confirmation
122 + # +mysqltest: Could not open connection 'default': 2026 SSL connection
123 + # error: error:00000001:lib(0):func(0):reason(1)
124 + #
125 + # plugins.unix_socket
126 + # fails because portage strips out the USER enviornment variable
127 + #
128 +
129 + for t in main.mysql_client_test main.mysql_client_test_nonblock \
130 + binlog.binlog_statement_insert_delayed main.information_schema \
131 + main.mysqld--help main.flush_read_lock_kill \
132 + sys_vars.plugin_dir_basic main.openssl_1 plugins.unix_socket \
133 + funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do
134 + mysql-v2_disable_test "$t" "False positives in Gentoo"
135 + done
136 +
137 + # Run mysql tests
138 + pushd "${TESTDIR}"
139 +
140 + # run mysql-test tests
141 + perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests"
142 + retstatus_tests=$?
143 + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
144 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
145 +
146 + popd
147 +
148 + # Cleanup is important for these testcases.
149 + pkill -9 -f "${S}/ndb" 2>/dev/null
150 + pkill -9 -f "${S}/sql" 2>/dev/null
151 +
152 + failures=""
153 + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
154 + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
155 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
156 +
157 + [[ -z "$failures" ]] || die "Test failures: $failures"
158 + einfo "Tests successfully completed"
159 +
160 + else
161 +
162 + einfo "Skipping server tests due to minimal build."
163 + fi
164 +}