From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6C931138010 for ; Fri, 26 Oct 2012 10:08:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46F3221C032; Fri, 26 Oct 2012 10:07:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A25B721C032 for ; Fri, 26 Oct 2012 10:07:54 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A404533D922 for ; Fri, 26 Oct 2012 10:07:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 12495E5436 for ; Fri, 26 Oct 2012 10:07:52 +0000 (UTC) From: "Jorge Manuel B. S. Vicetto" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jorge Manuel B. S. Vicetto" Message-ID: <1351246065.1db3f1924d733dae40a52bde1919255c605119f7.jmbsvicetto@gentoo> Subject: [gentoo-commits] proj/mysql:master commit in: dev-db/mariadb/ X-VCS-Repository: proj/mysql X-VCS-Files: dev-db/mariadb/Manifest dev-db/mariadb/mariadb-5.3.9.ebuild X-VCS-Directories: dev-db/mariadb/ X-VCS-Committer: jmbsvicetto X-VCS-Committer-Name: Jorge Manuel B. S. Vicetto X-VCS-Revision: 1db3f1924d733dae40a52bde1919255c605119f7 X-VCS-Branch: master Date: Fri, 26 Oct 2012 10:07:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0d0abb62-bf8d-4473-853f-6abb256337e3 X-Archives-Hash: 987379e4b7717660f9c2dc59e1510a18 commit: 1db3f1924d733dae40a52bde1919255c605119f7 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) gentoo org> AuthorDate: Fri Oct 26 10:07:45 2012 +0000 Commit: Jorge Manuel B. S. Vicetto gentoo org> CommitDate: Fri Oct 26 10:07:45 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=1db3f192 [dev-db/mariadb] 5.3.9 version bump. (Portage version: 2.2.0_alpha125/git/Linux x86_64, unsigned Manifest commit) --- dev-db/mariadb/Manifest | 1 + dev-db/mariadb/mariadb-5.3.9.ebuild | 174 +++++++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+), 0 deletions(-) diff --git a/dev-db/mariadb/Manifest b/dev-db/mariadb/Manifest index 8cdb3e3..d1f3598 100644 --- a/dev-db/mariadb/Manifest +++ b/dev-db/mariadb/Manifest @@ -3,6 +3,7 @@ DIST mariadb-5.1.62.tar.gz 24931609 SHA256 2293e973d22bc969dcb8b17710c909182d2b7 DIST mariadb-5.2.12.tar.gz 25364319 SHA256 6d53bc0831d87b695cc872c3456c16935aed67250fb305cdb7197274e2632a49 SHA512 d4583e0f6b8ae5b90e6c2818ecb98eadd5245e1c2c1a270980dc7b002c62f056fe0c15a389548d6e0ec3c0d83ac72a9fe30b6f9b220c92eae0e0ca29fd7bb333 WHIRLPOOL 10cdec3090f733110c762daae945f6a77f61103f3c14ccf38884df41b036497c360d98cc3be3c754563f8a0affb6ad012224f2f31905b709eb34a61e0613bf90 DIST mariadb-5.3.6.tar.gz 26724631 SHA256 899410ef19981d9be3c293f57fbceffc88487ccbd6ebcb02a8c14831c918e040 SHA512 ccf61f42084318a9084f742bdf03786b6590b0969b42c17c05503fac9608a56e39ee1a0ad0276aea413c61822cf5edfddcf25bfe9d421d76e01824332b7fee67 WHIRLPOOL cf5887291affd437f755e63d2c79e3fcc63fa5687dfab8c069b62caced59ced2cdae2a54e560e54a1435ec52c5a21ea19efe081704d98de104fc3c8688713b85 DIST mariadb-5.3.7.tar.gz 26741196 SHA256 463386ca84128a162e63137c8f6666859b94e2abf490b6ab2306f846a13fe9bc SHA512 08eefd9eabedf4b6097b2fcc6d7a853e9b3b7c262d02fb3aaa37f0f241b98368ca4b052cc8a47ab7fc45714a28720edd203e7f2c9227d6af2a36de7f1274fe6a WHIRLPOOL d4364585e2db4c4d7e823d22468aac21343f0f6d051533372c24c914f4b03939f6f98128872b80169d53aeb7ce4d1f4e42f6fbf38fb9baf6b240c58d7ee17cff +DIST mariadb-5.3.9.tar.gz 26806579 SHA256 4b9db3fd4ccdd8dd9f93c3f12fdb14e5523bbb08f563d29acfb919b66f804423 SHA512 dd87ad072f1b9242c76a35a1f827921ca0291a3b4009e4d29439f9e471d90b285a0b26ab5d1078505d31def91adf9c64cf8a22f56df2d4a04668ce952ae77914 WHIRLPOOL e8a346d5c44bd13978f7a30ee2b9ce782806f4043f9e020bac4a8427c9bbc8339f5e70b78ad64b4fadafe70e3130f996662bf7641df68fc063106774c696a47f DIST mariadb-5.5.24.tar.gz 27438507 SHA256 ced8d6b851ad0047d6654520c784f1bcfc3afa986f154ddb798041d1ebf9118b DIST mariadb-5.5.25.tar.gz 27488554 SHA256 40de17d2a54e1bd6da55144054c170b330d8e5281b236939238ff3574404bddb SHA512 4d937a1534b2b81de5c8e0f93a6d8b0928bf18277ed54b966a49c741262f6a01eecdd5bafc8fa2fa2869ae23eea5f06496d1ee5494c943641dc4121d7f239116 WHIRLPOOL 93a3199a145c34b1198d677eb8596547a9019170adad8efa1cbad923debe5098b386f5aafecff8211990175ac0f7e8f70483ff98eb5ac6e2d5a2b48bce2f129d DIST mariadb-5.5.28.tar.gz 27819467 SHA256 1237568d36fcbda707d363f2819ac539aedf2f49267162ec95e90cf4bb049850 SHA512 8ee9c624da4683ba4145f15014780568c4ea2034204d4f80e0aad688cdfe41cba49d3ca6db7adf52023054a5b7f467ab11d62a5fe30e0d5e92dff491dc8e5e5e WHIRLPOOL 879683cae962d8d15d0913d21df05570b01d24e7c5e9ece3c4ce8e23324005a044122d16a7e683ce43637bed796c93fa05c17e516ddf4e59f0662705be244b6c diff --git a/dev-db/mariadb/mariadb-5.3.9.ebuild b/dev-db/mariadb/mariadb-5.3.9.ebuild new file mode 100644 index 0000000..886b2a3 --- /dev/null +++ b/dev-db/mariadb/mariadb-5.3.9.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +MY_EXTRAS_VER="20120906-1344Z" + +# Build system +BUILD="autotools" + +# Suffix on files... +#MY_PV="$PV-ga" + +inherit toolchain-funcs mysql-v2 +# 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 +src_prepare() { + sed -i \ + -e '/^noinst_PROGRAMS/s/basic-t//g' \ + "${S}"/unittest/mytap/t/Makefile.am + mysql-v2_src_prepare +} + +# Official test instructions: +# USE='berkdb -cluster embedded extraengine perl ssl community' \ +# FEATURES='test userpriv -usersandbox' \ +# ebuild mariadb-X.X.XX.ebuild \ +# digest clean package +src_test() { + # 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" + + emake check || die "make check failed" + 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" + cd "${S}" + einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" + local retstatus_unit + local retstatus_ns + local retstatus_ps + local t + addpredict /this-dir-does-not-exist/t9.MYI + + # Ensure that parallel runs don't die + export MTR_BUILD_THREAD="$((${RANDOM} % 100))" + + # The entire 5.0 series has pre-generated SSL certificates, they have + # mostly expired now. ${S}/mysql-tests/std-data/*.pem + # The certs really SHOULD be generated for the tests, so that they are + # not expiring like this. We cannot do so ourselves as the tests look + # closely as the cert path data, and we do not have the CA key to regen + # ourselves. Alternatively, upstream should generate them with at least + # 50-year validity. + # + # Known expiry points: + # 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09 + # 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27 + # 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28 + # + # mysql-test/std_data/untrusted-cacert.pem is MEANT to be + # expired/invalid. + case ${PV} in + 5.1.*|5.5.*) + for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \ + ssl_compress ssl_connect rpl.rpl_heartbeat_ssl ; do \ + mysql-v2_disable_test \ + "$t" \ + "These OpenSSL tests break due to expired certificates" + done + ;; + esac + + # These are also failing in MySQL 5.1 for now, and are believed to be + # false positives: + # + # main.mysql_comment, main.mysql_upgrade, main.information_schema, + # funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers: + # fails due to USE=-latin1 / utf8 default + # + # main.mysql_client_test: + # segfaults at random under Portage only, suspect resource limits. + # + # main.not_partition: + # Failure reason unknown at this time, must resolve before package.mask + # removal FIXME + case ${PV} in + 5.1.*|5.2.*|5.3.*|5.5.*) + for t in main.mysql_client_test main.mysql_comments \ + main.mysql_upgrade \ + main.information_schema \ + main.not_partition funcs_1.is_columns_mysql \ + funcs_1.is_tables_mysql funcs_1.is_triggers; do + mysql-v2_disable_test "$t" "False positives in Gentoo" + done + ;; + esac + + # New failures in 5.1.50/5.1.51, reported by jmbsvicetto. + # These tests are picking up a 'connect-timeout' config from somewhere, + # which is not valid, and since it does not have 'loose-' in front of + # it, it's causing a failure + case ${PV} in + 5.1.5*|5.5.*|6*) + for t in rpl.rpl_mysql_upgrade main.log_tables_upgrade ; do + mysql-v2_disable_test "$t" \ + "False positives in Gentoo: connect-timeout" + done + ;; + esac + + use profiling && use community \ + || mysql-v2_disable_test main.profiling \ + "Profiling test needs profiling support" + + if [ "${PN}" == "mariadb" ]; then + for t in \ + parts.part_supported_sql_func_ndb \ + parts.partition_auto_increment_ndb ; do + mysql-v2_disable_test $t "ndb not supported in mariadb" + done + fi + + # create directories because mysqladmin might make out of order + mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log} + + # We run the test protocols seperately + emake test-unit + retstatus_unit=$? + [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" + + emake test-ns force="--force --vardir=${S}/mysql-test/var-ns" + retstatus_ns=$? + [[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed" + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + emake test-ps force="--force --vardir=${S}/mysql-test/var-ps" + retstatus_ps=$? + [[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed" + has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" + + # TODO: + # When upstream enables the pr and nr testsuites, we need those as well. + + # 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_ns -eq 0 ]] || failures="${failures} test-ns" + [[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps" + 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 +}