/[gentoo-x86]/eclass/mysql.eclass
Gentoo

Diff of /eclass/mysql.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.127 Revision 1.132
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.127 2010/02/01 01:07:08 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.132 2010/02/02 22:16:04 robbat2 Exp $
4 4
5# @ECLASS: mysql.eclass 5# @ECLASS: mysql.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 7# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
8# Maintainers: MySQL Team <mysql-bugs@gentoo.org> 8# Maintainers: MySQL Team <mysql-bugs@gentoo.org>
83 MYSQL_COMMUNITY_FEATURES=1 83 MYSQL_COMMUNITY_FEATURES=1
84elif [ "${PV#5.0}" != "${PV}" ] && mysql_version_is_at_least "5.0.82"; then 84elif [ "${PV#5.0}" != "${PV}" ] && mysql_version_is_at_least "5.0.82"; then
85 MYSQL_COMMUNITY_FEATURES=1 85 MYSQL_COMMUNITY_FEATURES=1
86elif [ "${PV#5.1}" != "${PV}" ] && mysql_version_is_at_least "5.1.28"; then 86elif [ "${PV#5.1}" != "${PV}" ] && mysql_version_is_at_least "5.1.28"; then
87 MYSQL_COMMUNITY_FEATURES=1 87 MYSQL_COMMUNITY_FEATURES=1
88elif [ "${PV#5.4}" != "${PV}" ]; then 88elif [ "${PV#5.4}" != "${PV}" ] ; then
89 MYSQL_COMMUNITY_FEATURES=1
90elif [ "${PV#5.5}" != "${PV}" ] ; then
91 MYSQL_COMMUNITY_FEATURES=1
92elif [ "${PV#6.0}" != "${PV}" ] ; then
89 MYSQL_COMMUNITY_FEATURES=1 93 MYSQL_COMMUNITY_FEATURES=1
90else 94else
91 MYSQL_COMMUNITY_FEATURES=0 95 MYSQL_COMMUNITY_FEATURES=0
92fi 96fi
93 97
134# For other stuff to bring us in 138# For other stuff to bring us in
135PDEPEND="${PDEPEND} =virtual/mysql-$(get_version_component_range 1-2 ${PV})" 139PDEPEND="${PDEPEND} =virtual/mysql-$(get_version_component_range 1-2 ${PV})"
136 140
137# Work out the default SERVER_URI correctly 141# Work out the default SERVER_URI correctly
138if [ -z "${SERVER_URI}" ]; then 142if [ -z "${SERVER_URI}" ]; then
143 [ -z "${MY_PV}" ] && MY_PV="${PV//_/-}"
139 # The community build is on the mirrors 144 # The community build is on the mirrors
140 if [ "${MYSQL_COMMUNITY_FEATURES}" == "1" ]; then 145 if [ "${MYSQL_COMMUNITY_FEATURES}" == "1" ]; then
141 SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${PV//_/-}.tar.gz" 146 SERVER_URI="mirror://mysql/Downloads/MySQL-${PV%.*}/mysql-${MY_PV}.tar.gz"
142 # The (old) enterprise source is on the primary site only 147 # The (old) enterprise source is on the primary site only
143 elif [ "${PN}" == "mysql" ]; then 148 elif [ "${PN}" == "mysql" ]; then
144 SERVER_URI="ftp://ftp.mysql.com/pub/mysql/src/mysql-${PV//_/-}.tar.gz" 149 SERVER_URI="ftp://ftp.mysql.com/pub/mysql/src/mysql-${MY_PV}.tar.gz"
145 fi 150 fi
146fi 151fi
147 152
148# Define correct SRC_URIs 153# Define correct SRC_URIs
149SRC_URI="${SERVER_URI}" 154SRC_URI="${SERVER_URI}"
215 ewarn "test '${rawtestname}' disabled: '${reason}'" 220 ewarn "test '${rawtestname}' disabled: '${reason}'"
216 221
217 testsuite="${rawtestname/.*}" 222 testsuite="${rawtestname/.*}"
218 testname="${rawtestname/*.}" 223 testname="${rawtestname/*.}"
219 mysql_disable_file="${S}/mysql-test/t/disabled.def" 224 mysql_disable_file="${S}/mysql-test/t/disabled.def"
220 einfo "rawtestname=${rawtestname} testname=${testname} testsuite=${testsuite}" 225 #einfo "rawtestname=${rawtestname} testname=${testname} testsuite=${testsuite}"
221 echo ${testname} : ${reason} >> "${mysql_disable_file}" 226 echo ${testname} : ${reason} >> "${mysql_disable_file}"
222 227
223 # ${S}/mysql-tests/t/disabled.def 228 # ${S}/mysql-tests/t/disabled.def
224 # 229 #
225 # ${S}/mysql-tests/suite/federated/disabled.def 230 # ${S}/mysql-tests/suite/federated/disabled.def
487 # 5.1 introduces a new way to manage storage engines (plugins) 492 # 5.1 introduces a new way to manage storage engines (plugins)
488 # like configuration=none 493 # like configuration=none
489 local plugins="csv,myisam,myisammrg,heap" 494 local plugins="csv,myisam,myisammrg,heap"
490 if use extraengine ; then 495 if use extraengine ; then
491 # like configuration=max-no-ndb, archive and example removed in 5.1.11 496 # like configuration=max-no-ndb, archive and example removed in 5.1.11
497 # not added yet: ibmdb2i
498 # Not supporting as examples: example,daemon_example,ftexample
492 plugins="${plugins},archive,blackhole,example,federated,partition" 499 plugins="${plugins},archive,blackhole,federated,partition"
493 500
494 elog "Before using the Federated storage engine, please be sure to read" 501 elog "Before using the Federated storage engine, please be sure to read"
495 elog "http://dev.mysql.com/doc/refman/5.1/en/federated-limitations.html" 502 elog "http://dev.mysql.com/doc/refman/5.1/en/federated-limitations.html"
496 fi 503 fi
497 504
498 # Upstream specifically requests that InnoDB always be built. 505 # Upstream specifically requests that InnoDB always be built:
499 plugins="${plugins},innobase" 506 # - innobase, innodb_plugin
507 # Build falcon if available for 6.x series.
508 for i in innobase innodb_plugin falcon ; do
509 [ -e "${S}"/storage/${i} ] && plugins="${plugins},${i}"
510 done
500 511
501 # like configuration=max-no-ndb 512 # like configuration=max-no-ndb
502 if use cluster ; then 513 if use cluster ; then
503 plugins="${plugins},ndbcluster" 514 plugins="${plugins},ndbcluster"
504 myconf="${myconf} --with-ndb-binlog" 515 myconf="${myconf} --with-ndb-binlog"
505 fi
506
507 if mysql_version_is_at_least "5.2" ; then
508 plugins="${plugins},falcon"
509 fi 516 fi
510 517
511 myconf="${myconf} --with-plugins=${plugins}" 518 myconf="${myconf} --with-plugins=${plugins}"
512} 519}
513 520

Legend:
Removed from v.1.127  
changed lines
  Added in v.1.132

  ViewVC Help
Powered by ViewVC 1.1.20