summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-04-18 02:08:34 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-04-18 02:08:34 +0000
commit338f4c4e7d9072b9ded7b93089eb9ce18138d224 (patch)
treeed824a4c253b1dacb8c29b4c4d580ad3c627853c /eclass/mysql-autotools.eclass
parentBased on 3.3.2 + genpatches-3.3-3 + grsecurity-2.9-3.3.2-201204131715 (diff)
downloadgentoo-2-338f4c4e7d9072b9ded7b93089eb9ce18138d224.tar.gz
gentoo-2-338f4c4e7d9072b9ded7b93089eb9ce18138d224.tar.bz2
gentoo-2-338f4c4e7d9072b9ded7b93089eb9ce18138d224.zip
Port changes from MySQL overlay. Drops old mysql-community, mysql-cluster. Fixes build of new PBXT, MariaDB and other bits.
Diffstat (limited to 'eclass/mysql-autotools.eclass')
-rw-r--r--eclass/mysql-autotools.eclass35
1 files changed, 15 insertions, 20 deletions
diff --git a/eclass/mysql-autotools.eclass b/eclass/mysql-autotools.eclass
index c6c2de44bce2..297a66e781bc 100644
--- a/eclass/mysql-autotools.eclass
+++ b/eclass/mysql-autotools.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.5 2012/01/09 10:42:19 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.6 2012/04/18 02:08:34 robbat2 Exp $
# @ECLASS: mysql-autotools.eclass
# @MAINTAINER:
@@ -123,7 +123,7 @@ mysql-autotools_configure_common() {
myconf="${myconf} --with-debug=full"
else
myconf="${myconf} --without-debug"
- if ( use cluster || [[ "${PN}" == "mysql-cluster" ]] ); then
+ if ( use cluster ); then
myconf="${myconf} --without-ndb-debug"
fi
fi
@@ -172,13 +172,11 @@ mysql-autotools_configure_51() {
# user's data is not accessible.
use max-idx-128 && die "Bug #336027: upstream has a corruption issue with max-idx-128 presently"
#use max-idx-128 && myconf="${myconf} --with-max-indexes=128"
- if [ "${MYSQL_COMMUNITY_FEATURES}" == "1" ]; then
- myconf="${myconf} $(use_enable community community-features)"
- if use community; then
- myconf="${myconf} $(use_enable profiling)"
- else
- myconf="${myconf} --disable-profiling"
- fi
+ myconf="${myconf} $(use_enable community community-features)"
+ if use community; then
+ myconf="${myconf} $(use_enable profiling)"
+ else
+ myconf="${myconf} --disable-profiling"
fi
# Scan for all available plugins
@@ -219,11 +217,11 @@ mysql-autotools_configure_51() {
if [[ "${PN}" != "mariadb" ]] ; then
elog "Before using the Federated storage engine, please be sure to read"
elog "http://dev.mysql.com/doc/refman/5.1/en/federated-limitations.html"
- plugins_dyn="${plugins_sta} federatedx"
+ plugins_dyn="${plugins_dyn} federated"
else
elog "MariaDB includes the FederatedX engine. Be sure to read"
elog "http://askmonty.org/wiki/index.php/Manual:FederatedX_storage_engine"
- plugins_dyn="${plugins_sta} federated"
+ plugins_dyn="${plugins_dyn} federatedx"
fi
else
plugins_dis="${plugins_dis} partition federated"
@@ -240,7 +238,7 @@ mysql-autotools_configure_51() {
done
# like configuration=max-no-ndb
- if ( use cluster || [[ "${PN}" == "mysql-cluster" ]] ) ; then
+ if ( use cluster ) ; then
plugins_sta="${plugins_sta} ndbcluster partition"
plugins_dis="${plugins_dis//partition}"
myconf="${myconf} --with-ndb-binlog"
@@ -289,7 +287,7 @@ mysql-autotools_configure_51() {
if pbxt_available && [[ "${PBXT_NEWSTYLE}" == "1" ]]; then
use pbxt \
- && plugins_dyn="${plugins_dyn} pbxt" \
+ && plugins_sta="${plugins_sta} pbxt" \
|| plugins_dis="${plugins_dis} pbxt"
fi
@@ -366,12 +364,9 @@ mysql-autotools_src_prepare() {
i="${S}"/storage/innodb_plugin/plug.in
[ -f "${i}" ] && sed -i -e '/CFLAGS/s,-prefer-non-pic,,g' "${i}"
- # Additional checks, remove bundled zlib (Cluster needs this, for static
- # memory management in zlib, leave available for Cluster)
- if [[ "${PN}" != "mysql-cluster" ]] ; then
- rm -f "${S}/zlib/"*.[ch]
- sed -i -e "s/zlib\/Makefile dnl/dnl zlib\/Makefile/" "${S}/configure.in"
- fi
+ # Additional checks, remove bundled zlib
+ rm -f "${S}/zlib/"*.[ch]
+ sed -i -e "s/zlib\/Makefile dnl/dnl zlib\/Makefile/" "${S}/configure.in"
rm -f "scripts/mysqlbug"
# Make charsets install in the right place
@@ -402,7 +397,7 @@ mysql-autotools_src_prepare() {
popd >/dev/null
fi
- if pbxt_available && [[ "${PBXT_NEWSTYLE}" == "1" ]] && use pbxt ; then
+ if pbxt_available && [[ "${PBXT_NEWSTYLE}" != "1" ]] && use pbxt ; then
einfo "Adding storage engine: PBXT"
pushd "${S}"/storage >/dev/null
i='pbxt'