summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2015-04-10 19:54:25 +0000
committerBrian Evans <grknight@gentoo.org>2015-04-10 19:54:25 +0000
commit4e449df49dc6e1a2cc2f8e06cfb5d8a3e0a3e172 (patch)
tree967f98298f396990635c4509e897ddca947f9d16 /dev-db/mysql
parentStable for HPPA (bug #546108). (diff)
downloadhistorical-4e449df49dc6e1a2cc2f8e06cfb5d8a3e0a3e172.tar.gz
historical-4e449df49dc6e1a2cc2f8e06cfb5d8a3e0a3e172.tar.bz2
historical-4e449df49dc6e1a2cc2f8e06cfb5d8a3e0a3e172.zip
Version bumps
Package-Manager: portage-2.2.18/cvs/Linux x86_64 Manifest-Sign-Key: 0xD1F781EFF9F4A3B6
Diffstat (limited to 'dev-db/mysql')
-rw-r--r--dev-db/mysql/ChangeLog9
-rw-r--r--dev-db/mysql/Manifest35
-rw-r--r--dev-db/mysql/mysql-5.5.43.ebuild126
-rw-r--r--dev-db/mysql/mysql-5.6.24.ebuild153
4 files changed, 307 insertions, 16 deletions
diff --git a/dev-db/mysql/ChangeLog b/dev-db/mysql/ChangeLog
index 50f06f4de32e..185e4cd8fbed 100644
--- a/dev-db/mysql/ChangeLog
+++ b/dev-db/mysql/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-db/mysql
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.726 2015/03/15 17:31:35 grknight Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.727 2015/04/10 19:54:15 grknight Exp $
+
+*mysql-5.6.24 (10 Apr 2015)
+*mysql-5.5.43 (10 Apr 2015)
+
+ 10 Apr 2015; Brian Evans <grknight@gentoo.org> +mysql-5.5.43.ebuild,
+ +mysql-5.6.24.ebuild:
+ Version bumps
15 Mar 2015; Brian Evans <grknight@gentoo.org> files/my.cnf-5.1,
files/my.cnf-5.5, files/my.cnf-5.6:
diff --git a/dev-db/mysql/Manifest b/dev-db/mysql/Manifest
index a0713bbeac19..bcbf35518d4f 100644
--- a/dev-db/mysql/Manifest
+++ b/dev-db/mysql/Manifest
@@ -5,31 +5,36 @@ AUX my.cnf-5.1 4764 SHA256 2231b1ea3bb8cc08122c76cd0f241bfc68327081a37df401d5c24
AUX my.cnf-5.5 4839 SHA256 186c26831fe00bff8220c1edc66fdb15fe4d3feaf93090d30f596ae7bea34d38 SHA512 73cb8c11e326df4c12c000267bce518282c8209a67f8472b9c9ddf914f83a1548278c21b052e8d73e41c42d6d3dbdfa12b0e78d4e00abbccfe18b9b8549781eb WHIRLPOOL be55ef14fb8beb7645b80676b5ee38bc9b3afc64b63502ba486c198babb06514a3b94f4b396d310d5440b148e8d91c1f6b86922c3573cbfe1b5496dfa1b7b822
AUX my.cnf-5.6 4610 SHA256 e2af6129d68237a5b69f076a3bb5488c55a44724d67053a1e4e74a8a02c3ac9f SHA512 c2da2d7ba8471f0e25cde0394b5d7a09dc944ed8311de823725acfd646d3bb77dc8ca351d412820e47955a5f6a36dbf1414ea08d74321a6ff5167a7bfa34440e WHIRLPOOL e473b9dc68322692854c42c3d51c3091fa25ae7f9a3db607e802486172b32e5985cc39655fbdf788b5a05866a8fdae99bdeb5a3ad54ee9d9eb05c3d120e38d27
DIST mysql-5.5.42.tar.gz 21795431 SHA256 887b12676be4893fa833e4a585c6c8b0c0f18dee30ba7d22cfe860cd85bfc74a SHA512 d02ea8d5a3f0309c2bd17241c9feca81ef35acc2595bfcb134fe436cd6a3d9ddbac5daa71ac75d953518ec2dc5791f953663648f52727bb37cb378d6663f2e0a WHIRLPOOL 43accca23246c353d0ce4e8d0807c4f4f80ba00e2a1d08a97fec5e59abed1278c34c2cda010894af9f98e866aee2a33614c8bf4fe4b840d45ff1d88993a1ff9e
+DIST mysql-5.5.43.tar.gz 21784417 SHA256 43d3df79e5c839a2749deb6e056a4589e49c903e09034c18653ec56e6e4774cd SHA512 b14506ac45fa4c69a6b7bbf64b2c3e59516b1fca3e0cce97e9712c09abecbf50071a60fc09f3e009d8591bf0d7352f28479cd8cb5445008ee146735897878b52 WHIRLPOOL 93e77045f4c4b188db38912ec6709bfee1ee0e0b7bf4cadfbeede8aef701d1f0cbf238e02d82013ceabe13df952e4f08c75bd3ad7504790677dc5a5ec4844fea
DIST mysql-5.6.22.tar.gz 33115516 SHA256 c4d2dfabb20a8e26e8437dff41f366520001eb031ffd77fbfcde70d0073fc9f6 SHA512 11b4a1b34ff4bb63d7cdbc1134947772b2c30715b1e3d3fba2ed9c5102f0bde14a708561b2d463014eca64f5fb415a54a0e1656d48f118b403e66d83b98f5b82 WHIRLPOOL a85db903ce1bc542ac87d832d2d0d84cd4c8a75f5feae435d0a9c5ce26f792b7d30c0113764315e8df0e74a899ee2c02233e3b193b42a98daf46ed52b5ccc9cd
DIST mysql-5.6.23.tar.gz 33115859 SHA256 3bd21af06a9304e372daba41fa5612bb54ac1bc05a4349b3160d0cda972ac098 SHA512 ac648550934ac6ddcb0cbc93731c2d913288dff53ada665f161d14c46e16f2a8ad8d09106a2718e8412f859ea9cf038d04e4c6f5fbea6e4424f9373ddccf4da3 WHIRLPOOL ae315cc7a60408cc050a7941b3c16cf169554b5a67fe4ce23a9b183cb551168f2ec3817e28cf0aa24b619ddc1b638bd926cfcf9c2e0755b2acbf1b82548b2581
+DIST mysql-5.6.24.tar.gz 33178592 SHA256 37e27305b67d76883c5902dce59c89d596beee9dca7dbadd4a2e117f8101dfeb SHA512 cb4c27f67aad02e2120edb9dfaffa623d8ddb5861ee77055553c50cce76cbfe0a1e473e01cef3cf86b6362c719e1db18e69808a0e4e457f879a37297f14b9fd7 WHIRLPOOL 26e51a1c48d04c2f24f8914beb84bcd8122ecc569b922d001c05271c3b7dc3339652272e27169001c762356c6fffa9ba88a6ccd8b2235e41063b5948e1dd2011
DIST mysql-extras-20150127-1351Z.tar.bz2 1494648 SHA256 74497659f1fb3b0cb620e38a911cf2e59a084149dd175199eb7cf4be18b4c328 SHA512 886e42697b3b0a90d8542bafaf3a7ccedf075f9f0065fec995bf58f645edff3a5d62f29be1cfa2e01d002d6382ee02279832cea8c21db6a774c2567c75ab6a35 WHIRLPOOL 9ddb5ccd914a6a6a19741ff93df78534d2273cf918f24af427c018b7c4f424a90d9f57f167633c48e2fa4102a4fae0873fd6dec7529839f229af855cbddf82d4
+DIST mysql-extras-20150410-1944Z.tar.bz2 1493690 SHA256 e327adf02be4c2bce5121f01d6b139309c72814b8c50a29559dfddee12a0b4e2 SHA512 e2e5345290134e597734514041e413f0633b8078bfddb8b8e7695468ce7341735b732d5bb602ab7aa9a4045d71571b73aac01a5d96687d4fbd380736f5ed650c WHIRLPOOL f65f294905fd1d04e2be79a803b658ed432338501665a75cbe0cc5b3af8abf0615f1f808465c3ca3c7e850b9277f451f5c77b518977f4bee8dc77d6089ff88fb
EBUILD mysql-5.5.42.ebuild 4298 SHA256 b2e1919f6e90822285f1f903c43b75479a48d71de51e3f3fa175d18c221b08d8 SHA512 81a23d9f128ddde75fcfa6495fabc428a82e7fe8c279581ad75f037426f089867d045c758287db5a40b9b9df7165ab368da387f92e8908584f036b528805525c WHIRLPOOL a95ca23a1329bd23a1d432cfd84b63fa248a2732c7ce43f645c6567dc7d3255f6664916f63b44d7e07965b5f5694d84c3adc0ccdba3f7e7d93cc690749608657
+EBUILD mysql-5.5.43.ebuild 4289 SHA256 7e0d542682c15873b0fa2170e99eb861832f49e6ea10ac8154f427145a36d65a SHA512 2b8cd7bda59a3acf699c70a22150135626ad67138e4353cb836b23a03ebcc9e350264e28baa94de932de0986b580ba16444e247ec38d97c1e15a3dad1092edfa WHIRLPOOL bc2b88d4d3cd5cc4a5dc0b226a82145eb2f4648ad047f767ae38acc00d6d9b5a6448edc300f10333af863ef7b00c2ec5dfb61f2341c0edfa1f5421c0ac40624d
EBUILD mysql-5.6.22.ebuild 5246 SHA256 62e35b6bae6500c03fad65adcb9ec0515d6ed451508975b2229e263847a398a5 SHA512 216d781c137e0547ee2741e8d6485c7aab43849a56a7ca4f9624bf3eed599f4634fb58fe64f4bb92e938ba29017099327e11a388810698bdd5689d170bbc417f WHIRLPOOL ec74391cc9f6aaa9efce03ed26b06a3a9767d224a81d2dd21cdbcee510820cbe55383cfc7523e2b43bbf12ff5fc6e59428eaf7a16f4fedd52c33dcf51b09bb26
EBUILD mysql-5.6.23.ebuild 5254 SHA256 b9356860456f09d8b1a6a1a11ad426cad2858e40656efb28c3e820e3546e80fb SHA512 c42face5dd2d23bc2f3c4c4caebe0b7b52666f4c3fe48406f57dff50a0f63ba2e86cc8b4eea2448bd59c4827b51a0d59be3d7f937b739da65d7121e606a7907b WHIRLPOOL bc60e6803967a33210b3b81b2af34cabbfdb82eaf22ab2c4d94e74c0001ef0467a1a5dde2ae1069a421607348aca7f28e8595a5448760d01d605044ba77e6577
-MISC ChangeLog 24420 SHA256 7bfca3ef6593273b0be77937e44ca98efc49c9b9da6644b251cfa30855f1f50e SHA512 61bfef51906fe5f274cf6c95188d27aaf8916e05d50b35161619b546cb8633cabd27c14fb79d897f29185d0ba252892e2f773d1a7146070b24e7200e775a5e17 WHIRLPOOL 12ef99e3b5802bd05d7addf0155bc6fc32c329ae296a5c456651cac7b8bc2227090217c05bd63543644975eb07a8cfdb82914bc0f684c31e5d5aee860b7be052
+EBUILD mysql-5.6.24.ebuild 5245 SHA256 c54cdcfc908ebb9fdc0b154d6ecee1c5d7d5d10e84eda9356f4a84441bde32c3 SHA512 c75fa2bde59c34b0d2a25fdddc1fd78eb6946854dbba4fdcc7a05770d4ab87286e9a0957ae4f3609fc5d1db9d0d72464387cdab487f491eb011ab1c3b78984fb WHIRLPOOL 8a9620a7d5586ac711475e14ab05e193e68f1983a9915d2f6aa6188cb44a8abf95f77a3ee7b74c484c1047452d871075df7f4fbcc9cebeef64aa4c62b14f3714
+MISC ChangeLog 24589 SHA256 0cb434f1d06fd4c585e517d175d6e444418602ae42f3f87d535a0bce60be38ed SHA512 aa7abe809ecb167f3eec808a0a62ede434a0ca6ccccc74793f7d7778d014b4b03683fddbcb46fd02654b60d6b0096d8bb609b9264c6cea5a3b8559ca50bb08da WHIRLPOOL 2e2733b121f3eb7e442b3c059c3312a416dbcc75ff8c0bf678809c80868cb08b23be9ab027fdc3e63a0f5ad71f1e2132b0a9ee2db050cf47b67fd43611beb191
MISC ChangeLog-2010 108404 SHA256 93dda53b8871d9040e6aebb59f095a8debd5c0a9437e78e5e949989e209ba5cd SHA512 5f54b7c2e25d27680a9313da2450851118e34a57202d9f36f59da52834ca3b587701d93868d71bf684ddc253d49f87837c8d7e2d442f2955dfde8a701150fbe5 WHIRLPOOL 55f758942e3012aa0ae7d529c2f8b6e0d8f4d7cbde09039f16cd05f0a58fc4e3e09ccd50e366effdcaab4641300eb0f494ddbe3a35a645ced8a9d747d80e9821
MISC metadata.xml 1195 SHA256 de7dc626aa238322a90b982b1e2055d9f6b0b0fb4c72366a6ea79145626154c4 SHA512 236b205d90988ff622eccffec1d0811b1600115089b45dc1da457e707a3318330d2ce94d22fc92f0ce5555a806c82e95289ffe96fd440698fdf90936240373cf WHIRLPOOL f41e2b682bedbfec1d8389d60b352931339811d16012096f3856e76725a54488a36da6e8dcf108db9704a90fd9bb2b78c74d99c890c4619decf51063c7bf1fbf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0
-iQJ8BAEBCABmBQJVBcH7XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+iQJ8BAEBCABmBQJVKCpwXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NkMyRTQ0RUQ5MEUzMjc1OEU3RDU1QzBE
-MUY3ODFFRkY5RjRBM0I2AAoJENH3ge/59KO2urAP/1ny5NcXuzAXgbD/bheVkyuq
-XZ/jDB3Uo3hWE39axlJXzy42cwODPY8PSH10pKuN6bcR5h75IlCZhwkypiVY5Uwb
-8VZJPdWBWb8DBdef2LxWwUDqh3haXcovdfu1JKhgtC63dxk9cHZDEvS4CotdzpcS
-hE2BbT80G4DZZjdCZbU/Cugeg1SudTw55cTeCbXAxbWF4lmhJLf4ZzHbVUlydo3J
-C6x6p4IL6VL4hfu7lEoWJOhnfcxF0yL8z316BfPJ2XbwkD3zTiw74fJNDSvaR1Dg
-pqrZ8uZUWVw6QSxd57j794GJYg5+AX+xCQ44d1ptey5pDNPQuTA0AsuNABA6NWKc
-AuJ4w1Q2Y6DGNyOvTFwOLFyN/BIDBEMdz3LTzteHxwdjnIbXNgqhxnBTdOlU6yuU
-9Ub4QdnM9Gc7lhqFzough2IHyqCCVB6QbABgnQIUncKCSoN6qeydcgFHYwEmxKdn
-Q7lF73RonJouwpxElRn8V4cfNzp5PSr5xNsZLoasfSWAfM8PLvheDO/wFJ6ly2Mi
-aLoGKvSbDVSaC5Qk6MMllJgTyJ/xdrGIDIYOBfyRa2lVs8iypgLGfM6VcCFn5pMw
-eKl9IpmYwq617caz2xB4+/FrZiyz595bIAHO90iHEqbZ7POD2eq5b46FRM9bQgLM
-Gkr5wmUN+lFOwLUfnj8S
-=eVk/
+MUY3ODFFRkY5RjRBM0I2AAoJENH3ge/59KO2BjcP/22TJqoN+wKJjnkMiBU5AeQI
+KqOBT5cxk4U9dsMvZcfXYs8h3KDKxkGU9CIs/ASV14UpiF4yWFj7L66RVVEFeRvq
+/jQL1D+CKto6ylr/rEfP7AOccmBz4LqxJsmfmID3MBCBqVqKi+dhiE0JuNy5Rf6e
+tYDgUOsZHubQbIqJJTpJnO1dHxrb5mrtvcz3YGEJy8wqXk/IVHmG6ZN/+pkOSIgJ
+XAYRFMk0/fhLQux/TEj99Bn8jLmCv49GuRgzYT90ZizaVY4wIrKKZHfVXvi9MISj
+uTb8BVxAqP8VEAYyCWNZ/EETuaWblWeGOEa5DZl7jbEZIPZyPXQY1zZS6b/tH/G6
+rUHh00RA/oOZL+SFcigfKtmxn6qHyJwj7L5Kd3nWe9u0F9bjd8+zgktiIKLGypyW
+TCQlquGCUqRYPF9Q17+RDTx7SvlRVqb7Y4sHFdMiRI5Vut3gC1N4iy0Y569/GGsG
+dUa82KVZadIFM7iwJl7hK2BoCKRVN0WFRmnBLF5VWor9rnSFeM48IhLNfs3k/2aS
+drSn62bH1nzSwNv9IniQ1Sf9/dHfbIlupa4fQBDVxf3YsWAO5u3xQKgFjguVv9mB
+bEhrSjjQCihnetVUrDV789J7psB1lBl4QlR5FX01JJUNYcDICbCSuiDzvBuKkhO1
+hI3mMqYKeDS08rBI506C
+=/EUL
-----END PGP SIGNATURE-----
diff --git a/dev-db/mysql/mysql-5.5.43.ebuild b/dev-db/mysql/mysql-5.5.43.ebuild
new file mode 100644
index 000000000000..6e41049eb97c
--- /dev/null
+++ b/dev-db/mysql/mysql-5.5.43.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.5.43.ebuild,v 1.1 2015/04/10 19:54:15 grknight Exp $
+
+EAPI="5"
+
+MY_EXTRAS_VER="20150127-1351Z"
+MY_PV="${PV//_alpha_pre/-m}"
+MY_PV="${MY_PV//_/-}"
+
+# Build type
+BUILD="cmake"
+
+inherit toolchain-funcs mysql-v2
+# only to make repoman happy. it is really set in the eclass
+IUSE="$IUSE"
+
+# Define the mysql-extras source
+EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
+
+# REMEMBER: also update eclass/mysql*.eclass before committing!
+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"
+
+# When MY_EXTRAS is bumped, the index should be revised to exclude these.
+EPATCH_EXCLUDE=''
+
+DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
+RDEPEND="${RDEPEND}"
+
+# Please do not add a naive src_unpack to this ebuild
+# If you want to add a single patch, copy the ebuild to an overlay
+# and create your own mysql-extras tarball, looking at 000_index.txt
+
+# Official test instructions:
+# USE='embedded extraengine perl ssl static-libs community' \
+# FEATURES='test userpriv -usersandbox' \
+# ebuild mysql-X.X.XX.ebuild \
+# digest clean package
+src_test() {
+
+ local TESTDIR="${BUILD_DIR}/mysql-test"
+ local retstatus_unit
+ local retstatus_tests
+
+ # Bug #213475 - MySQL _will_ object strenously if your machine is named
+ # localhost. Also causes weird failures.
+ [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
+
+ if ! use "minimal" ; then
+
+ if [[ $UID -eq 0 ]]; then
+ die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
+ fi
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ # Run CTest (test-units)
+ cmake-utils_src_test
+ retstatus_unit=$?
+ [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
+
+ # Ensure that parallel runs don't die
+ export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
+ # Enable parallel testing, auto will try to detect number of cores
+ # You may set this by hand.
+ # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
+ export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
+
+ # create directories because mysqladmin might right out of order
+ mkdir -p "${T}"/var-tests{,/log}
+
+ # create symlink for the tests to find mysql_tzinfo_to_sql
+ ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
+
+ # These are failing in MySQL 5.5 for now and are believed to be
+ # false positives:
+ #
+ # main.information_schema, binlog.binlog_statement_insert_delayed,
+ # main.mysqld--help-notwin
+ # fails due to USE=-latin1 / utf8 default
+ #
+ # main.mysql_client_test:
+ # segfaults at random under Portage only, suspect resource limits.
+ #
+ # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
+ # fails due to bad cleanup of previous tests when run in parallel
+ # The tool is deprecated anyway
+ # Bug 532288
+
+ for t in main.mysql_client_test \
+ binlog.binlog_statement_insert_delayed main.information_schema \
+ main.mysqld--help-notwin main.mysqlhotcopy_archive main.mysqlhotcopy_myisam ; do
+ mysql-v2_disable_test "$t" "False positives in Gentoo"
+ done
+
+ # Run mysql tests
+ pushd "${TESTDIR}"
+
+ # run mysql-test tests
+ perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
+ --testcase-timeout=30
+ retstatus_tests=$?
+ [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+ popd
+
+ # Cleanup is important for these testcases.
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+
+ failures=""
+ [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
+ [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+ [[ -z "$failures" ]] || die "Test failures: $failures"
+ einfo "Tests successfully completed"
+
+ else
+
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
diff --git a/dev-db/mysql/mysql-5.6.24.ebuild b/dev-db/mysql/mysql-5.6.24.ebuild
new file mode 100644
index 000000000000..33aef2cbcc6f
--- /dev/null
+++ b/dev-db/mysql/mysql-5.6.24.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.6.24.ebuild,v 1.1 2015/04/10 19:54:15 grknight Exp $
+
+EAPI="5"
+
+MY_EXTRAS_VER="20150410-1944Z"
+MY_PV="${PV//_alpha_pre/-m}"
+MY_PV="${MY_PV//_/-}"
+
+inherit toolchain-funcs mysql-multilib
+# only to make repoman happy. it is really set in the eclass
+IUSE="$IUSE"
+
+# REMEMBER: also update eclass/mysql*.eclass before committing!
+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"
+
+# When MY_EXTRAS is bumped, the index should be revised to exclude these.
+EPATCH_EXCLUDE=''
+
+DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
+RDEPEND="${RDEPEND}"
+
+# Please do not add a naive src_unpack to this ebuild
+# If you want to add a single patch, copy the ebuild to an overlay
+# and create your own mysql-extras tarball, looking at 000_index.txt
+
+# Official test instructions:
+# USE='embedded extraengine perl ssl static-libs community' \
+# FEATURES='test userpriv -usersandbox' \
+# ebuild mysql-X.X.XX.ebuild \
+# digest clean package
+multilib_src_test() {
+
+ if ! multilib_is_native_abi ; then
+ einfo "Server tests not available on non-native abi".
+ return 0;
+ fi
+
+ local TESTDIR="${BUILD_DIR}/mysql-test"
+ local retstatus_unit
+ local retstatus_tests
+
+ # Bug #213475 - MySQL _will_ object strenously if your machine is named
+ # localhost. Also causes weird failures.
+ [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
+
+ if ! use "minimal" ; then
+
+ if [[ $UID -eq 0 ]]; then
+ die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
+ fi
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ # Run CTest (test-units)
+ cmake-utils_src_test
+ retstatus_unit=$?
+ [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
+
+ # Ensure that parallel runs don't die
+ export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
+ # Enable parallel testing, auto will try to detect number of cores
+ # You may set this by hand.
+ # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
+ export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
+
+ # create directories because mysqladmin might right out of order
+ mkdir -p "${T}"/var-tests{,/log}
+
+ # create symlink for the tests to find mysql_tzinfo_to_sql
+ ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
+
+ # These are failing in MySQL 5.5/5.6 for now and are believed to be
+ # false positives:
+ #
+ # main.information_schema, binlog.binlog_statement_insert_delayed,
+ # funcs_1.is_triggers funcs_1.is_tables_mysql,
+ # funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
+ # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
+ # mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
+ # perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
+ # fails due to USE=-latin1 / utf8 default
+ #
+ # main.mysql_client_test:
+ # segfaults at random under Portage only, suspect resource limits.
+ #
+ # rpl.rpl_plugin_load
+ # fails due to included file not listed in expected result
+ # appears to be poor planning
+ #
+ # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
+ # fails due to bad cleanup of previous tests when run in parallel
+ # The tool is deprecated anyway
+ # Bug 532288
+ for t in \
+ binlog.binlog_mysqlbinlog_filter \
+ binlog.binlog_statement_insert_delayed \
+ funcs_1.is_columns_mysql \
+ funcs_1.is_tables_mysql \
+ funcs_1.is_triggers \
+ main.information_schema \
+ main.mysql_client_test \
+ main.mysqld--help-notwin \
+ perfschema.binlog_edge_mix \
+ perfschema.binlog_edge_stmt \
+ rpl.rpl_plugin_load \
+ main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
+ ; do
+ mysql-multilib_disable_test "$t" "False positives in Gentoo"
+ done
+
+ if ! use extraengine ; then
+ # bug 401673, 530766
+ for t in federated.federated_plugin ; do
+ mysql-multilib_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
+ done
+ fi
+
+ # Run mysql tests
+ pushd "${TESTDIR}"
+
+ # Set file limits higher so tests run
+ ulimit -n 3000
+
+ # run mysql-test tests
+ perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
+ --suite-timeout=5000
+ retstatus_tests=$?
+ [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+ popd
+
+ # Cleanup is important for these testcases.
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+
+ failures=""
+ [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
+ [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
+
+ [[ -z "$failures" ]] || die "Test failures: $failures"
+ einfo "Tests successfully completed"
+
+ else
+
+ einfo "Skipping server tests due to minimal build."
+ fi
+}