From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1L6Fba-0000Sv-Oz for garchives@archives.gentoo.org; Sat, 29 Nov 2008 02:30:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 124BEE00FB; Sat, 29 Nov 2008 02:30:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DBC59E00FB for ; Sat, 29 Nov 2008 02:30:45 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 8493B644BE for ; Sat, 29 Nov 2008 02:30:45 +0000 (UTC) Received: from robbat2 by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1L6FbY-0006hS-5A for gentoo-commits@lists.gentoo.org; Sat, 29 Nov 2008 02:30:44 +0000 From: "Robin H. Johnson (robbat2)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, robbat2@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: mysql.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: mysql.eclass X-VCS-Directories: eclass X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson Content-Type: text/plain; charset=utf8 Message-Id: Sender: "Robin H. Johnson" Date: Sat, 29 Nov 2008 02:30:44 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: a5392f8c-fb99-4370-8805-339285c96f70 X-Archives-Hash: 4af83ae9697b901a4bcd037dd4c76b7d robbat2 08/11/29 02:30:44 Modified: mysql.eclass Log: Move the hostname=3D=3Dlocalhost check from pkg_setup to pkg_config and= src_test instead, to enable building in binpkg hosts more easily. Revision Changes Path 1.102 eclass/mysql.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclas= s?rev=3D1.102&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclas= s?rev=3D1.102&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mysql.eclas= s?r1=3D1.101&r2=3D1.102 Index: mysql.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v retrieving revision 1.101 retrieving revision 1.102 diff -p -w -b -B -u -u -r1.101 -r1.102 --- mysql.eclass 20 Nov 2008 20:44:33 -0000 1.101 +++ mysql.eclass 29 Nov 2008 02:30:43 -0000 1.102 @@ -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/2= 0 20:44:33 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.102 2008/11/2= 9 02:30:43 robbat2 Exp $ =20 # Author: Francesco Riosa (Retired) # Maintainer: MySQL Team @@ -493,10 +493,6 @@ mysql_pkg_setup() { fi fi =20 - # Bug #213475 - MySQL _will_ object strenously if your machine is named - # localhost. Also causes weird failures. - [[ "${HOSTNAME}" =3D=3D "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 =20 + # Bug #213475 - MySQL _will_ object strenously if your machine is named + # localhost. Also causes weird failures. + [[ "${HOSTNAME}" =3D=3D "localhost" ]] && die "Your machine must NOT be= named localhost" + einfo "Creating the mysql database and setting proper" einfo "permissions on it ..." =20