Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237727 - dev-db/mysql-community emerge --config fails
Summary: dev-db/mysql-community emerge --config fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-15 14:15 UTC by Pavel Stratil
Modified: 2008-11-14 04:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Stratil 2008-09-15 14:15:33 UTC
+++ This bug was initially created as a clone of Bug #213475 +++

Bug #213475 was resolved by disallowing "localhost" hostnames in mysql installs.
not very nice. I encountered the problem on a clean mysql-community install and tracked it down the mysql_install_db script provided with mysql. The error message it gives is the following:

Neither host 'rav' nor 'localhost' could be looked up with /resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with the --force option

Please note that it tries to run '/resolveip' which obviously doesnt exist. The problem lies around these lines of code:

if test "$windows" -eq 0 -a "$in_rpm" -eq 0 -a "$force" -eq 0
then
  resolved=`$extra_bindir/resolveip $hostname 2>&1`
  if [ $? -ne 0 ]
  then
    resolved=`$extra_bindir/resolveip localhost 2>&1`
    if [ $? -ne 0 ]
    then

....

the line resolved=`$extra_bindir/resolveip localhost 2>&1`
calls /resolveip localhost 2>&1
because $extra_bindir unsets magically along the run of the script. I wasnt able to identify where that happens. If anyone has time to look into it, please do so so that we have a proper fix to #213475.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-14 04:19:09 UTC
fixed in mysql-community-5.0.67