summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-05-29 05:28:54 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-05-29 05:28:54 +0000
commit469f37247b72654e0e7cf7db5b2b2436ed148ae8 (patch)
tree0c17452c4835a9fd66267f46a77d1961e31a0256 /eclass
parentEnsure correct install of docs and config examples for bug #212910. (diff)
downloadgentoo-2-469f37247b72654e0e7cf7db5b2b2436ed148ae8.tar.gz
gentoo-2-469f37247b72654e0e7cf7db5b2b2436ed148ae8.tar.bz2
gentoo-2-469f37247b72654e0e7cf7db5b2b2436ed148ae8.zip
MySQL hates you if your machine is called localhost per bug #213475.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mysql.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass
index 92cbeb0be434..f19368f5ed7d 100644
--- a/eclass/mysql.eclass
+++ b/eclass/mysql.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.eclass,v 1.92 2008/05/29 05:17:16 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.93 2008/05/29 05:28:54 robbat2 Exp $
# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
# Maintainer: MySQL Team <mysql-bugs@gentoo.org>
@@ -475,6 +475,10 @@ mysql_pkg_setup() {
fi
fi
+ # Bug #213475 - MySQL _will_ object strenously if your machine is named
+ # localhost. Also causes weird failures.
+ [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
+
# Check for USE flag problems in pkg_setup
if use static && use ssl ; then
eerror "MySQL does not support being built statically with SSL support enabled!"