summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-11-29 02:30:43 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-11-29 02:30:43 +0000
commitd908bb6225311e3fc2856ce3765dcab7f261e490 (patch)
tree025a8a7cd0d9d3141c42f6abce81a492f429915c /eclass
parenttuning pax-marking to allow building on some hardened systems. Thank to markp... (diff)
downloadgentoo-2-d908bb6225311e3fc2856ce3765dcab7f261e490.tar.gz
gentoo-2-d908bb6225311e3fc2856ce3765dcab7f261e490.tar.bz2
gentoo-2-d908bb6225311e3fc2856ce3765dcab7f261e490.zip
Move the hostname==localhost check from pkg_setup to pkg_config and src_test instead, to enable building in binpkg hosts more easily.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mysql.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass
index 0e9cc051006e..ac56e1ace306 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.101 2008/11/20 20:44:33 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.102 2008/11/29 02:30:43 robbat2 Exp $
# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
# Maintainer: MySQL Team <mysql-bugs@gentoo.org>
@@ -493,10 +493,6 @@ 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!"
@@ -852,6 +848,10 @@ mysql_pkg_config() {
die "MySQL database already exists!"
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"
+
einfo "Creating the mysql database and setting proper"
einfo "permissions on it ..."