summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>2011-07-14 02:11:32 +0000
committerJorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>2011-07-14 02:11:32 +0000
commit88be2e4b81efddf4be0a764d209800c5f73e505d (patch)
treeb372796025c30f6448c2c7c66f8c1797fb180898 /eclass/mysql_fx.eclass
parent*portage-2.2.0_alpha45 (14 Jul 2011) (diff)
downloadhistorical-88be2e4b81efddf4be0a764d209800c5f73e505d.tar.gz
historical-88be2e4b81efddf4be0a764d209800c5f73e505d.tar.bz2
historical-88be2e4b81efddf4be0a764d209800c5f73e505d.zip
Synced with mysql_fx from the mysql overlay.
Set includedir and libdir appropriately for mariadb and mysql - fixes bug 375063.
Diffstat (limited to 'eclass/mysql_fx.eclass')
-rw-r--r--eclass/mysql_fx.eclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/mysql_fx.eclass b/eclass/mysql_fx.eclass
index 1d531c1dcc95..504f54ae3ba3 100644
--- a/eclass/mysql_fx.eclass
+++ b/eclass/mysql_fx.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.23 2011/07/13 07:07:15 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.24 2011/07/14 02:11:32 jmbsvicetto Exp $
# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
# Maintainer:
@@ -227,10 +227,15 @@ mysql_lib_symlinks() {
mysql_init_vars() {
MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR="/usr/share/mysql"}
MY_SYSCONFDIR=${MY_SYSCONFDIR="/etc/mysql"}
- MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql"}
MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="/var/lib/mysql"}
MY_LOGDIR=${MY_LOGDIR="/var/log/mysql"}
- MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"}
+ if [[ ${PN} == "mariadb" ]]; then
+ MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include/mysql"}
+ MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)/mysql"}
+ else
+ MY_INCLUDEDIR=${MY_INCLUDEDIR="/usr/include"}
+ MY_LIBDIR=${MY_LIBDIR="/usr/$(get_libdir)"}
+ fi
if [[ -z "${MY_DATADIR}" ]] ; then
MY_DATADIR=""