# ChangeLog for dev-db/mysql-community
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-community/ChangeLog,v 1.9 2007/01/05 00:20:07 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-community/ChangeLog,v 1.10 2007/01/05 11:58:49 vivo Exp $
+
+*mysql-community-5.1.15_alpha20061231-r61 (05 Jan 2007)
+*mysql-community-5.1.14_beta-r1 (05 Jan 2007)
+*mysql-community-5.0.27-r1 (05 Jan 2007)
+
+ 05 Jan 2007; Francesco Riosa <vivo@gentoo.org> -files/mysql.conf.d,
+ -files/mysql.rc6, -files/mysqlmanager.conf.d, -files/mysqlmanager.rc6,
+ -mysql-community-5.0.27.ebuild, +mysql-community-5.0.27-r1.ebuild,
+ -mysql-community-5.1.14_beta.ebuild,
+ +mysql-community-5.1.14_beta-r1.ebuild,
+ -mysql-community-5.1.15_alpha20061231-r60.ebuild,
+ +mysql-community-5.1.15_alpha20061231-r61.ebuild:
+ force revision bump, needed to fix/discover bugs introuduced during last
+ working days.
05 Jan 2007; Francesco Riosa <vivo@gentoo.org>
mysql-community-5.0.27.ebuild, mysql-community-5.1.14_beta.ebuild,
--- /dev/null
+MD5 584d423440a9d9c859678e3d4f2690b3 mysql-5.0.27.tar.gz 25867740
+RMD160 3de75b959d04e002b2e4cfe322abdb48bf2f80fd mysql-5.0.27.tar.gz 25867740
+SHA256 08dc9a7b4adb766b2fb8390804147822f1772aa4bd2e06ca7764bc85010c73a7 mysql-5.0.27.tar.gz 25867740
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
--- /dev/null
+MD5 f02115e98c99558e062adcf2dc305283 mysql-5.1.14-beta.tar.gz 23640648
+RMD160 2acaa1393967a6fd57f9c37f3eef8dac62eb7138 mysql-5.1.14-beta.tar.gz 23640648
+SHA256 6b4990a784169560fd487d24c69efba1f73662500d0d3132375d8b5cd026bb67 mysql-5.1.14-beta.tar.gz 23640648
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
+MD5 1dde707c3f86ecbb4567b8d5de603dc3 pbxt-0.9.73-beta.tar.gz 2706652
+RMD160 a4d974a8519b62868e948966910a84dbded05abe pbxt-0.9.73-beta.tar.gz 2706652
+SHA256 a2176d137138d33028c57499b74a79c5f12dcd958c3e7f1aad67bb4b7b24674d pbxt-0.9.73-beta.tar.gz 2706652
--- /dev/null
+MD5 b231ba7f535806f1cb8d792e4091f1b9 mysql-5.1.15-bk-20061231.tar.bz2 11999404
+RMD160 9a9929d6c2df4e128b3b5259b21fec5e04fe3181 mysql-5.1.15-bk-20061231.tar.bz2 11999404
+SHA256 1e4acc53175af275b48dbab33320d4841c9502c74f283e4f62215f5c2e602f15 mysql-5.1.15-bk-20061231.tar.bz2 11999404
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
+MD5 1dde707c3f86ecbb4567b8d5de603dc3 pbxt-0.9.73-beta.tar.gz 2706652
+RMD160 a4d974a8519b62868e948966910a84dbded05abe pbxt-0.9.73-beta.tar.gz 2706652
+SHA256 a2176d137138d33028c57499b74a79c5f12dcd958c3e7f1aad67bb4b7b24674d pbxt-0.9.73-beta.tar.gz 2706652
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-community/mysql-community-5.0.27-r1.ebuild,v 1.1 2007/01/05 11:58:49 vivo Exp $
+
+MY_EXTRAS_VER="20070105"
+SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${PV//_/-}.tar.gz"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+src_test() {
+
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ cd "${S}"
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ local t
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ # mysqladmin start before dir creation
+ mkdir mysql-test/var{,/log}
+
+ if [[ ${UID} -eq 0 ]] ; then
+ mysql_disable_test "im_daemon_life_cycle" "fail as root"
+ mysql_disable_test "im_life_cycle" "fail as root"
+ mysql_disable_test "im_options_set" "fail as root"
+ mysql_disable_test "im_options_unset" "fail as root"
+ mysql_disable_test "im_utils" "fail as root"
+ fi
+
+ for t in \
+ loaddata_autocom_ndb \
+ ndb_{alter_table{,2},autodiscover{,2,3},basic,bitfield,blob} \
+ ndb_{cache{,2},cache_multi{,2},charset,condition_pushdown,config} \
+ ndb_{database,gis,index,index_ordered,index_unique,insert,limit} \
+ ndb_{loaddatalocal,lock,minmax,multi,read_multi_range,rename,replace} \
+ ndb_{restore,subquery,transaction,trigger,truncate,types,update} \
+ ps_7ndb rpl_ndb_innodb_trans strict_autoinc_5ndb
+ do
+ mysql_disable_test "${t}" "fail in sandbox"
+ done
+
+ useq "extraengine" && mysql_disable_test "federated" "fail with extraengine"
+
+ make test-force-pl
+ retstatus=$?
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "make test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-community/mysql-community-5.1.14_beta-r1.ebuild,v 1.1 2007/01/05 11:58:49 vivo Exp $
+
+MY_EXTRAS_VER="20070105"
+SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${PV//_/-}.tar.gz"
+PBXT_VERSION="0.9.73-beta"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+src_test() {
+
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ cd "${S}/mysql-test"
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ local t
+ local testopts="--force"
+
+ # sandbox make ndbd zombie
+ hasq "sandbox" ${FEATURES} && testopts="${testopts} --skip-ndb"
+
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ # mysqladmin start before dir creation
+ mkdir ${S}/mysql-test/var{,/log}
+
+ if [[ ${UID} -eq 0 ]] ; then
+ mysql_disable_test "im_cmd_line" "fail as root"
+ mysql_disable_test "im_daemon_life_cycle" "fail as root"
+ mysql_disable_test "im_instance_conf" "fail as root"
+ mysql_disable_test "im_life_cycle" "fail as root"
+ mysql_disable_test "im_options" "fail as root"
+ mysql_disable_test "im_utils" "fail as root"
+ mysql_disable_test "trigger" "fail as root"
+ fi
+
+ useq "extraengine" && mysql_disable_test "federated" "fail with extraengine"
+
+ mysql_disable_test "view" "FIXME: fail because now we are in year 2007"
+
+ # from Makefile.am:
+ retstatus=1
+ ./mysql-test-run.pl ${testopts} --mysqld=--binlog-format=mixed \
+ && ./mysql-test-run.pl ${testopts} --ps-protocol --mysqld=--binlog-format=row \
+ && ./mysql-test-run.pl ${testopts} --ps-protocol --mysqld=--binlog-format=mixed \
+ && ./mysql-test-run.pl ${testopts} --mysqld=--binlog-format=row \
+ && retstatus=0
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "make test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-community/mysql-community-5.1.15_alpha20061231-r61.ebuild,v 1.1 2007/01/05 11:58:49 vivo Exp $
+
+MY_EXTRAS_VER="latest"
+SERVER_URI="mirror://gentoo/MySQL-${PV%.*}/mysql-${PV//_alpha/-bk-}.tar.bz2"
+PBXT_VERSION="0.9.73-beta"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+src_test() {
+
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ cd "${S}/mysql-test"
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ local t
+ local testopts="--force"
+
+ # sandbox make ndbd zombie
+ hasq "sandbox" ${FEATURES} && testopts="${testopts} --skip-ndb"
+
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ # mysqladmin start before dir creation
+ mkdir ${S}/mysql-test/var{,/log}
+
+ if [[ ${UID} -eq 0 ]] ; then
+ mysql_disable_test "im_cmd_line" "fail as root"
+ mysql_disable_test "im_daemon_life_cycle" "fail as root"
+ mysql_disable_test "im_instance_conf" "fail as root"
+ mysql_disable_test "im_life_cycle" "fail as root"
+ mysql_disable_test "im_options" "fail as root"
+ mysql_disable_test "im_utils" "fail as root"
+ mysql_disable_test "trigger" "fail as root"
+ fi
+
+ useq "extraengine" && mysql_disable_test "federated" "fail with extraengine"
+
+ mysql_disable_test "view" "Already fixed: fail because now we are in year 2007"
+
+ # from Makefile.am:
+ retstatus=1
+ ./mysql-test-run.pl ${testopts} --mysqld=--binlog-format=mixed \
+ && ./mysql-test-run.pl ${testopts} --ps-protocol --mysqld=--binlog-format=row \
+ && ./mysql-test-run.pl ${testopts} --ps-protocol --mysqld=--binlog-format=mixed \
+ && ./mysql-test-run.pl ${testopts} --mysqld=--binlog-format=row \
+ && retstatus=0
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "make test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
# ChangeLog for dev-db/mysql
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.383 2007/01/05 00:17:35 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.384 2007/01/05 12:03:30 vivo Exp $
+
+*mysql-5.0.34_alpha20070101-r61 (05 Jan 2007)
+*mysql-5.0.30-r1 (05 Jan 2007)
+*mysql-5.0.26-r2 (05 Jan 2007)
+*mysql-4.1.23_alpha20070101-r61 (05 Jan 2007)
+*mysql-4.1.22-r1 (05 Jan 2007)
+*mysql-4.0.27-r1 (05 Jan 2007)
+
+ 05 Jan 2007; Francesco Riosa <vivo@gentoo.org> -files/mysql.conf.d,
+ -files/mysql.rc6, -files/mysqlmanager.conf.d, -files/mysqlmanager.rc6,
+ -mysql-4.0.27.ebuild, +mysql-4.0.27-r1.ebuild, -mysql-4.1.22.ebuild,
+ +mysql-4.1.22-r1.ebuild, -mysql-4.1.23_alpha20070101-r60.ebuild,
+ +mysql-4.1.23_alpha20070101-r61.ebuild, -mysql-5.0.26-r1.ebuild,
+ +mysql-5.0.26-r2.ebuild, -mysql-5.0.30.ebuild, +mysql-5.0.30-r1.ebuild,
+ -mysql-5.0.34_alpha20070101-r60.ebuild,
+ +mysql-5.0.34_alpha20070101-r61.ebuild:
+ force revision bump, needed to fix/discover bugs introuduced during last
+ working days.
05 Jan 2007; Francesco Riosa <vivo@gentoo.org> mysql-4.0.25-r2.ebuild,
mysql-4.0.27.ebuild, mysql-4.1.21.ebuild, mysql-4.1.22.ebuild,
--- /dev/null
+MD5 315f88a902c59e230212b3ccf137f92f mysql-4.0.27.tar.gz 11152643
+RMD160 00cf895eab192e3e0ab526587ccab3e81c6c9070 mysql-4.0.27.tar.gz 11152643
+SHA256 c79f83bed7c1ea98e018b8829375b55c1de838d21a526d7f679becc75de00d0f mysql-4.0.27.tar.gz 11152643
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
--- /dev/null
+MD5 37b4479951fa0cf052269d27c41ca200 mysql-4.1.22.tar.gz 17761101
+RMD160 bfcf5058e4247cf4d7d1550ea54c64ebc8bc615e mysql-4.1.22.tar.gz 17761101
+SHA256 6bd2436fd0f233bb1518e15975cb4e9fa4434acb53c3c3cd7d4648219abf58e9 mysql-4.1.22.tar.gz 17761101
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
--- /dev/null
+MD5 8e70436fc96eec966d0cf088e915e7ba mysql-4.1.23-bk-20070101.tar.bz2 12171000
+RMD160 3e7abcb4665b55bfe74305484b963a4d1d239a4f mysql-4.1.23-bk-20070101.tar.bz2 12171000
+SHA256 65cd010a75c6bfc006cc3095623edf2d106f0af03154f24bc4fbf711ad2b98ef mysql-4.1.23-bk-20070101.tar.bz2 12171000
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
--- /dev/null
+MD5 63ec8afeaf202c435b12d112f5ce7857 mysql-5.0.26.tar.gz 25986952
+RMD160 98ee85457de4bc8c8f8acddc8b6f0dc7687f32c7 mysql-5.0.26.tar.gz 25986952
+SHA256 4266fe6a3593700d4157b8cc4278fa8ae98837d4757735fc6ed70d9df6bb2680 mysql-5.0.26.tar.gz 25986952
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
--- /dev/null
+MD5 164b1e145155318f9904967715492f94 mysql-5.0.30.tar.gz 26139291
+RMD160 a26c3ecb4db22010c6dec66be15d73a274de73eb mysql-5.0.30.tar.gz 26139291
+SHA256 7d8deb0d829e1298b345900c58814750ee3d642653aab47ec65c8dfe07bca8a0 mysql-5.0.30.tar.gz 26139291
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
--- /dev/null
+MD5 37b3967f2b54bdb8eee00c3c65adf69b mysql-5.0.34-bk-20070101.tar.bz2 14431547
+RMD160 aab9ce10073c7a70585d041e475b575185e77fb6 mysql-5.0.34-bk-20070101.tar.bz2 14431547
+SHA256 c81687985203537acee8ccfbb4be4cd1dd764c1ac67ebdbb46b3ef00931b243b mysql-5.0.34-bk-20070101.tar.bz2 14431547
+MD5 444e5ecfccf6d2123fbfbda7f7ba2b83 mysql-extras-20070105.tar.bz2 50005
+RMD160 abf1f8ebab8ecdfdb5ebe9ca55076f39ab492acb mysql-extras-20070105.tar.bz2 50005
+SHA256 17697bf70acffd0eeefd976b5ef06dd36080273bf7e805b51a31d72f5f2c5172 mysql-extras-20070105.tar.bz2 50005
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-4.0.27-r1.ebuild,v 1.1 2007/01/05 12:03:30 vivo Exp $
+
+MY_EXTRAS_VER="20070105"
+SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${PV//_/-}.tar.gz"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+
+src_test() {
+ cd "${S}"
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ cd mysql-test
+ sed -i -e "s|PORT=3306|PORT=3307|g" mysql-test-run
+ ./mysql-test-run
+ retstatus=$?
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "make test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-4.1.22-r1.ebuild,v 1.1 2007/01/05 12:03:30 vivo Exp $
+
+MY_EXTRAS_VER="20070105"
+SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${PV//_/-}.tar.gz"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+
+src_test() {
+ cd "${S}"
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ local testopts="--force"
+
+ # sandbox make ndbd zombie
+ hasq "sandbox" ${FEATURES} && testopts="${testopts} --skip-ndb"
+
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ cd mysql-test
+ sed -i -e "s|3306|3307|g" mysql-test-run.pl
+
+ # from Makefile.am:
+ retstatus=1
+ ./mysql-test-run.pl ${testopts} \
+ && ./mysql-test-run.pl ${testopts} --ps-protocol \
+ && retstatus=0
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-4.1.23_alpha20070101-r61.ebuild,v 1.1 2007/01/05 12:03:30 vivo Exp $
+
+MY_EXTRAS_VER="latest"
+SERVER_URI="mirror://gentoo/MySQL-${PV%.*}/mysql-${PV//_alpha/-bk-}.tar.bz2"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="testing"
+
+src_test() {
+ cd "${S}"
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ local testopts="--force"
+
+ # sandbox make ndbd zombie
+ hasq "sandbox" ${FEATURES} && testopts="${testopts} --skip-ndb"
+
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ cd mysql-test
+
+ # from Makefile.am:
+ retstatus=1
+ ./mysql-test-run.pl ${testopts} \
+ && ./mysql-test-run.pl ${testopts} --ps-protocol \
+ && retstatus=0
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.0.26-r2.ebuild,v 1.1 2007/01/05 12:03:30 vivo Exp $
+
+MY_EXTRAS_VER="20070105"
+SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${PV//_/-}.tar.gz"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="~alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
+
+src_test() {
+
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ cd "${S}"
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ local t
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ # mysqladmin start before dir creation
+ mkdir mysql-test/var{,/log}
+
+ if [[ ${UID} -eq 0 ]] ; then
+ mysql_disable_test "im_daemon_life_cycle" "fail as root"
+ mysql_disable_test "im_life_cycle" "fail as root"
+ mysql_disable_test "im_options_set" "fail as root"
+ mysql_disable_test "im_options_unset" "fail as root"
+ mysql_disable_test "im_utils" "fail as root"
+ fi
+
+ for t in \
+ loaddata_autocom_ndb \
+ ndb_{alter_table{,2},autodiscover{,2,3},basic,bitfield,blob} \
+ ndb_{cache{,2},cache_multi{,2},charset,condition_pushdown,config} \
+ ndb_{database,gis,index,index_ordered,index_unique,insert,limit} \
+ ndb_{loaddatalocal,lock,minmax,multi,read_multi_range,rename,replace} \
+ ndb_{restore,subquery,transaction,trigger,truncate,types,update} \
+ ps_7ndb rpl_ndb_innodb_trans strict_autoinc_5ndb
+ do
+ mysql_disable_test "${t}" "fail in sandbox"
+ done
+
+ useq "extraengine" && mysql_disable_test "federated" "fail with extraengine"
+
+ make test-force-pl
+ retstatus=$?
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "make test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.0.30-r1.ebuild,v 1.1 2007/01/05 12:03:30 vivo Exp $
+
+MY_EXTRAS_VER="20070105"
+SERVER_URI="ftp://ftp.mysql.com/pub/mysql/src/mysql-${PV//_/-}.tar.gz"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+src_test() {
+
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ cd "${S}"
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ local t
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ # mysqladmin start before dir creation
+ mkdir mysql-test/var{,/log}
+
+ if [[ ${UID} -eq 0 ]] ; then
+ mysql_disable_test "im_daemon_life_cycle" "fail as root"
+ mysql_disable_test "im_life_cycle" "fail as root"
+ mysql_disable_test "im_options_set" "fail as root"
+ mysql_disable_test "im_options_unset" "fail as root"
+ mysql_disable_test "im_utils" "fail as root"
+ fi
+
+ for t in \
+ loaddata_autocom_ndb \
+ ndb_{alter_table{,2},autodiscover{,2,3},basic,bitfield,blob} \
+ ndb_{cache{,2},cache_multi{,2},charset,condition_pushdown,config} \
+ ndb_{database,gis,index,index_ordered,index_unique,insert,limit} \
+ ndb_{loaddatalocal,lock,minmax,multi,read_multi_range,rename,replace} \
+ ndb_{restore,subquery,transaction,trigger,truncate,types,update} \
+ ps_7ndb rpl_ndb_innodb_trans strict_autoinc_5ndb
+ do
+ mysql_disable_test "${t}" "fail in sandbox"
+ done
+
+ useq "extraengine" && mysql_disable_test "federated" "fail with extraengine"
+
+ make test-force-pl
+ retstatus=$?
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "make test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.0.34_alpha20070101-r61.ebuild,v 1.1 2007/01/05 12:03:30 vivo Exp $
+
+MY_EXTRAS_VER="latest"
+SERVER_URI="mirror://gentoo/MySQL-${PV%.*}/mysql-${PV//_alpha/-bk-}.tar.bz2"
+
+inherit mysql
+
+#REMEMBER!!!: update also eclass/mysql*.eclass prior to commit
+KEYWORDS="testing"
+
+src_test() {
+
+ make check || die "make check failed"
+ if ! useq "minimal" ; then
+ cd "${S}/mysql-test"
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ local retstatus
+ local t
+ local testopts="--force"
+
+ # sandbox make ndbd zombie
+ hasq "sandbox" ${FEATURES} && testopts="${testopts} --skip-ndb"
+
+ addpredict /this-dir-does-not-exist/t9.MYI
+
+ # mysqladmin start before dir creation
+ mkdir ${S}/mysql-test/var{,/log}
+
+ if [[ ${UID} -eq 0 ]] ; then
+ mysql_disable_test "im_cmd_line" "fail as root"
+ mysql_disable_test "im_daemon_life_cycle" "fail as root"
+ mysql_disable_test "im_instance_conf" "fail as root"
+ mysql_disable_test "im_life_cycle" "fail as root"
+ mysql_disable_test "im_options" "fail as root"
+ mysql_disable_test "im_options_set" "fail as root"
+ mysql_disable_test "im_options_unset" "fail as root"
+ mysql_disable_test "im_utils" "fail as root"
+ mysql_disable_test "trigger" "fail as root"
+ fi
+
+ for t in \
+ loaddata_autocom_ndb \
+ ndb_{alter_table{,2},autodiscover{,2,3},basic,bitfield,blob} \
+ ndb_{cache{,2},cache_multi{,2},charset,condition_pushdown,config} \
+ ndb_{database,gis,index,index_ordered,index_unique,insert,limit} \
+ ndb_{loaddatalocal,lock,minmax,multi,read_multi_range,rename,replace} \
+ ndb_{restore,subquery,transaction,trigger,truncate,types,update} \
+ ps_7ndb rpl_ndb_innodb_trans strict_autoinc_5ndb
+ do
+ mysql_disable_test "${t}" "fail in sandbox"
+ done
+
+ useq "extraengine" && mysql_disable_test "federated" "fail with extraengine"
+
+ mysql_disable_test "view" "Already fixed: fail because now we are in year 2007"
+
+ for t in \
+ myisam mysql_upgrade query_cache_notembedded rpl000015 rpl000017
+ do
+ mysql_disable_test "${t}" "FIXME: Im'not supposed to fail"
+ done
+
+ make test-force
+ retstatus=$?
+
+ # Just to be sure ;)
+ pkill -9 -f "${S}/ndb" 2>/dev/null
+ pkill -9 -f "${S}/sql" 2>/dev/null
+ [[ $retstatus -eq 0 ]] || die "make test failed"
+ else
+ einfo "Skipping server tests due to minimal build."
+ fi
+}