summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2013-02-13 00:40:57 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2013-02-13 00:40:57 +0000
commitb8a0f5d6c9b1e90b4f44de877569ce97019350fc (patch)
treec0935806e4d65da3a5f6645128c5632b3be20b53 /eclass/mysql-autotools.eclass
parentFix building with USE=lua and dev-util/pkgconfig-0.28 (bug #456810 by Juergen... (diff)
downloadhistorical-b8a0f5d6c9b1e90b4f44de877569ce97019350fc.tar.gz
historical-b8a0f5d6c9b1e90b4f44de877569ce97019350fc.tar.bz2
historical-b8a0f5d6c9b1e90b4f44de877569ce97019350fc.zip
Bug #455462: Libtool cleanup; Bug #455016: mariadb mytop deps; Bug #448598: USE=pam support.
Diffstat (limited to 'eclass/mysql-autotools.eclass')
-rw-r--r--eclass/mysql-autotools.eclass19
1 files changed, 18 insertions, 1 deletions
diff --git a/eclass/mysql-autotools.eclass b/eclass/mysql-autotools.eclass
index c342b635bd28..70b5123dcaaf 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.14 2013/01/28 02:13:05 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.15 2013/02/13 00:40:57 robbat2 Exp $
# @ECLASS: mysql-autotools.eclass
# @MAINTAINER:
@@ -289,6 +289,15 @@ mysql-autotools_configure_51() {
|| plugins_dis="${plugins_dis} ${i}"
done
fi
+
+ #Authentication plugins
+ if mysql_version_is_at_least "5.2.11" ; then
+ for i in pam ; do
+ use ${i} \
+ && plugins_dyn="${plugins_dyn} auth_${i}" \
+ || plugins_dis="${plugins_dis} auth_${i}"
+ done
+ fi
fi
if pbxt_available && [[ "${PBXT_NEWSTYLE}" == "1" ]]; then
@@ -648,4 +657,12 @@ mysql-autotools_src_install() {
fi
mysql_lib_symlinks "${ED}"
+
+ #Remove mytop if perl is not selected
+ [[ "${PN}" == "mariadb" ]] && ! use perl \
+ && mysql_version_is_at_least "5.3" \
+ && rm -f "${ED}/usr/bin/mytop"
+
+ #Bug 455462 remove unnecessary libtool files
+ prune_libtool_files --modules
}