Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: dev-db/mysql/
Date: Fri, 06 Feb 2015 14:10:39
Message-Id: 1423231826.00c6b716805aad678411fd8c279a54bd79d44386.grknight@gentoo
1 commit: 00c6b716805aad678411fd8c279a54bd79d44386
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 6 14:10:26 2015 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 6 14:10:26 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=00c6b716
7
8 [mysql] Version bump
9
10 ---
11 dev-db/mysql/Manifest | 1 +
12 dev-db/mysql/mysql-5.5.42.ebuild | 126 +++++++++++++++++++++++++++++++++++++++
13 2 files changed, 127 insertions(+)
14
15 diff --git a/dev-db/mysql/Manifest b/dev-db/mysql/Manifest
16 index 2a6873e..4358e3f 100644
17 --- a/dev-db/mysql/Manifest
18 +++ b/dev-db/mysql/Manifest
19 @@ -3,6 +3,7 @@ DIST mysql-4.1.22.tar.gz 17761101 SHA256 6bd2436fd0f233bb1518e15975cb4e9fa4434ac
20 DIST mysql-5.0.96.tar.gz 22686667 SHA256 43853814775158aa1650f483530a7dde153957579e3349e3ec780b89d741fc84 SHA512 2e3b4ac221c1c1c11618dc79067a7feff680380fcea435813287b02cb0dff45fb5a32a4393c53cf13165f6efc99dbf347a9388ad364cfdf2e392760a310aa5a9 WHIRLPOOL 3e167e4ff4c56095fbdee55b7e619c9b7ad2120eb72c9a58fe77a023ab6e7498c74e2053876e61687d7812f9ff7022303728ddda49732e7569035684263d2517
21 DIST mysql-5.1.73.tar.gz 24023347 SHA256 05ebe21305408b24407d14b77607a3e5ffa3c300e03f1359d3066f301989dcb5 SHA512 2e3651ebc1370dad7e01158cdd99133ed3f90c985114766b6282d58b743ae7bce16db797e82819fa5bbc2fa53d89811fd76b278c7459338288e7957634a8c3ff WHIRLPOOL f47c3fe1cd98b8ca2163646c760bd9763c65eab0591b31fe30a8c55c72c8b10d7b549b394493695cf98f50999364409ef8158661141277e6d99b011835aef942
22 DIST mysql-5.5.41.tar.gz 21768300 SHA256 ec642fc5be5ea03b24a0c5189204675fb3794dee772314ace650623c1c994844 SHA512 4c4e9658175e1f5de218527045d7d43f880a16c0069725e6c9f9873538b5ede39e4024fc9983e42c04d59a7bece7a3505d154eabbaa230c0dd456c46ff4982b8 WHIRLPOOL 37ef2709b489db62beb745d3b39bf6e6ebe97e98ea6f5630fa4a74cf865d048a222b19995eff71c6146b15cb28f4dd7edf1567ddf6dbef606f964149dad37ccc
23 +DIST mysql-5.5.42.tar.gz 21795431 SHA256 887b12676be4893fa833e4a585c6c8b0c0f18dee30ba7d22cfe860cd85bfc74a SHA512 d02ea8d5a3f0309c2bd17241c9feca81ef35acc2595bfcb134fe436cd6a3d9ddbac5daa71ac75d953518ec2dc5791f953663648f52727bb37cb378d6663f2e0a WHIRLPOOL 43accca23246c353d0ce4e8d0807c4f4f80ba00e2a1d08a97fec5e59abed1278c34c2cda010894af9f98e866aee2a33614c8bf4fe4b840d45ff1d88993a1ff9e
24 DIST mysql-5.6.22.tar.gz 33115516 SHA256 c4d2dfabb20a8e26e8437dff41f366520001eb031ffd77fbfcde70d0073fc9f6 SHA512 11b4a1b34ff4bb63d7cdbc1134947772b2c30715b1e3d3fba2ed9c5102f0bde14a708561b2d463014eca64f5fb415a54a0e1656d48f118b403e66d83b98f5b82 WHIRLPOOL a85db903ce1bc542ac87d832d2d0d84cd4c8a75f5feae435d0a9c5ce26f792b7d30c0113764315e8df0e74a899ee2c02233e3b193b42a98daf46ed52b5ccc9cd
25 DIST mysql-5.6.23.tar.gz 33115859 SHA256 3bd21af06a9304e372daba41fa5612bb54ac1bc05a4349b3160d0cda972ac098 SHA512 ac648550934ac6ddcb0cbc93731c2d913288dff53ada665f161d14c46e16f2a8ad8d09106a2718e8412f859ea9cf038d04e4c6f5fbea6e4424f9373ddccf4da3 WHIRLPOOL ae315cc7a60408cc050a7941b3c16cf169554b5a67fe4ce23a9b183cb551168f2ec3817e28cf0aa24b619ddc1b638bd926cfcf9c2e0755b2acbf1b82548b2581
26 DIST mysql-5.7.4-m14.tar.gz 44115280 SHA256 3c6b29641b50c6622db31e3067e4b9ed542f620b55f44372f398040219349732 SHA512 7dea15db9a08a4b94272babd5d5d45ddf8a0bf932291d37c90c5f49962b2d2e732c37d3aeaecc445631d7c8a1ee9717e8561c1b2abf4f52d853ce2a06a715c1b WHIRLPOOL 6738a6fbc1a71b6f8244ad5fbaa76facf55ec0cda6b78f5895f693f0b780582e89bab297e54bd16a17b6c8e88dcb3760f5d78ed2f776c769e7117991b50b153c
27
28 diff --git a/dev-db/mysql/mysql-5.5.42.ebuild b/dev-db/mysql/mysql-5.5.42.ebuild
29 new file mode 100644
30 index 0000000..9240420
31 --- /dev/null
32 +++ b/dev-db/mysql/mysql-5.5.42.ebuild
33 @@ -0,0 +1,126 @@
34 +# Copyright 1999-2015 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.5.42.ebuild,v 1.1 2015/02/05 16:03:20 grknight Exp $
37 +
38 +EAPI="5"
39 +
40 +MY_EXTRAS_VER="20150127-1351Z"
41 +MY_PV="${PV//_alpha_pre/-m}"
42 +MY_PV="${MY_PV//_/-}"
43 +
44 +# Build type
45 +BUILD="cmake"
46 +
47 +inherit toolchain-funcs mysql-v2
48 +# only to make repoman happy. it is really set in the eclass
49 +IUSE="$IUSE"
50 +
51 +# Define the mysql-extras source
52 +EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
53 +
54 +# REMEMBER: also update eclass/mysql*.eclass before committing!
55 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~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"
56 +
57 +# When MY_EXTRAS is bumped, the index should be revised to exclude these.
58 +EPATCH_EXCLUDE=''
59 +
60 +DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
61 +RDEPEND="${RDEPEND}"
62 +
63 +# Please do not add a naive src_unpack to this ebuild
64 +# If you want to add a single patch, copy the ebuild to an overlay
65 +# and create your own mysql-extras tarball, looking at 000_index.txt
66 +
67 +# Official test instructions:
68 +# USE='-cluster embedded extraengine perl ssl static-libs community' \
69 +# FEATURES='test userpriv -usersandbox' \
70 +# ebuild mysql-X.X.XX.ebuild \
71 +# digest clean package
72 +src_test() {
73 +
74 + local TESTDIR="${BUILD_DIR}/mysql-test"
75 + local retstatus_unit
76 + local retstatus_tests
77 +
78 + # Bug #213475 - MySQL _will_ object strenously if your machine is named
79 + # localhost. Also causes weird failures.
80 + [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
81 +
82 + if ! use "minimal" ; then
83 +
84 + if [[ $UID -eq 0 ]]; then
85 + die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
86 + fi
87 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
88 +
89 + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
90 + addpredict /this-dir-does-not-exist/t9.MYI
91 +
92 + # Run CTest (test-units)
93 + cmake-utils_src_test
94 + retstatus_unit=$?
95 + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
96 +
97 + # Ensure that parallel runs don't die
98 + export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
99 + # Enable parallel testing, auto will try to detect number of cores
100 + # You may set this by hand.
101 + # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
102 + export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
103 +
104 + # create directories because mysqladmin might right out of order
105 + mkdir -p "${T}"/var-tests{,/log}
106 +
107 + # create symlink for the tests to find mysql_tzinfo_to_sql
108 + ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
109 +
110 + # These are failing in MySQL 5.5 for now and are believed to be
111 + # false positives:
112 + #
113 + # main.information_schema, binlog.binlog_statement_insert_delayed,
114 + # main.mysqld--help-notwin
115 + # fails due to USE=-latin1 / utf8 default
116 + #
117 + # main.mysql_client_test:
118 + # segfaults at random under Portage only, suspect resource limits.
119 + #
120 + # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
121 + # fails due to bad cleanup of previous tests when run in parallel
122 + # The tool is deprecated anyway
123 + # Bug 532288
124 +
125 + for t in main.mysql_client_test \
126 + binlog.binlog_statement_insert_delayed main.information_schema \
127 + main.mysqld--help-notwin main.mysqlhotcopy_archive main.mysqlhotcopy_myisam ; do
128 + mysql-v2_disable_test "$t" "False positives in Gentoo"
129 + done
130 +
131 + # Run mysql tests
132 + pushd "${TESTDIR}"
133 +
134 + # run mysql-test tests
135 + perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
136 + --testcase-timeout=30
137 + retstatus_tests=$?
138 + [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
139 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
140 +
141 + popd
142 +
143 + # Cleanup is important for these testcases.
144 + pkill -9 -f "${S}/ndb" 2>/dev/null
145 + pkill -9 -f "${S}/sql" 2>/dev/null
146 +
147 + failures=""
148 + [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
149 + [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
150 + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
151 +
152 + [[ -z "$failures" ]] || die "Test failures: $failures"
153 + einfo "Tests successfully completed"
154 +
155 + else
156 +
157 + einfo "Skipping server tests due to minimal build."
158 + fi
159 +}