summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-03-09 20:37:34 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-03-09 20:37:34 +0000
commit4e1101443b992318d36e1f1f2841bc650b6a5130 (patch)
tree0178c134a5b8328bd94be9b6326c169f1da2d3fd /eclass
parentRemoving obsolete revision. (diff)
downloadgentoo-2-4e1101443b992318d36e1f1f2841bc650b6a5130.tar.gz
gentoo-2-4e1101443b992318d36e1f1f2841bc650b6a5130.tar.bz2
gentoo-2-4e1101443b992318d36e1f1f2841bc650b6a5130.zip
Bug 307641: more fixes to SSL configure options. Also add community/profiling features to 5.1 properly and clean up a dead SSL configure codepath in configure_40_41_50.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mysql.eclass20
1 files changed, 12 insertions, 8 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass
index c6d7c88f040e..faa8accc453e 100644
--- a/eclass/mysql.eclass
+++ b/eclass/mysql.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.135 2010/03/03 23:57:13 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.136 2010/03/09 20:37:34 robbat2 Exp $
# @ECLASS: mysql.eclass
# @MAINTAINER:
@@ -398,20 +398,16 @@ configure_40_41_50() {
myconf="${myconf} --with-extra-tools"
myconf="${myconf} --with-innodb"
myconf="${myconf} --without-readline"
+ myconf="${myconf} $(use_with ssl openssl)"
mysql_version_is_at_least "5.0" || myconf="${myconf} $(use_with raid)"
# --with-vio is not needed anymore, it's on by default and
# has been removed from configure
+ # Apply to 4.x and 5.0.[0-3]
if use ssl ; then
mysql_version_is_at_least "5.0.4" || myconf="${myconf} --with-vio"
fi
- if mysql_version_is_at_least "5.1.11" ; then
- myconf="${myconf} $(use_with ssl /usr)"
- else
- myconf="${myconf} $(use_with ssl openssl)"
- fi
-
if mysql_version_is_at_least "5.0.60" ; then
if use berkdb ; then
elog "Berkeley DB support was disabled due to build failures"
@@ -476,13 +472,21 @@ configure_51() {
# TODO: !!!! readd --without-readline
# the failure depend upon config/ac-macros/readline.m4 checking into
# readline.h instead of history.h
- myconf="${myconf} $(use_with ssl)"
+ myconf="${myconf} $(use_with ssl ssl /usr)"
myconf="${myconf} --enable-assembler"
myconf="${myconf} --with-geometry"
myconf="${myconf} --with-readline"
myconf="${myconf} --with-zlib-dir=/usr/"
myconf="${myconf} --without-pstack"
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
+ fi
# 5.1 introduces a new way to manage storage engines (plugins)
# like configuration=none