Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 77917

Summary: 'emerge mysql' creates executables with 'x86_64-pc-linux-gnu-' prepended to all names
Product: Gentoo Linux Reporter: Greg Poucher <gregp01>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Greg Poucher 2005-01-13 18:16:37 UTC
Emerging mysql on amd64 causes the executables in /usr/bin and /usr/sbin to be named incorrectly. All executables have 'x86_64-pc-linux-gnu-' prepended to their usual names. (I've also seen this with Gaim.) This happens with mysql 4.0.22. I don't know what my previous version was, but it did not have this problem.

This problem causes mysql not to start at boot or with '/etc/init.d/mysql start'.

Reproducible: Always
Steps to Reproduce:
1. 'emerge mysql'
2. Check /usr/bin and /usr/sbin
Actual Results:  
Executables have names which start with 'x86_64-pc-linux-gnu-'.

Expected Results:  
Executables should not have this prefix.

This is a simple problem. This Perl script effects a workaround:

#!/usr/bin/perl
foreach (glob "x86_64-pc-linux-gnu-*")
{
    if (m/x86_64-pc-linux-gnu-(\S+)$/)
    {
        symlink($_, $1);
    }
}

Run it with root priveleges in /usr/bin and /usr/sbin to create symlinks with
the proper names.
Comment 1 Peter Johanson (RETIRED) gentoo-dev 2005-01-13 19:38:39 UTC
This is a gcc-config bug, not a mysql bug. Please see bug #74460 for how to fix this.

*** This bug has been marked as a duplicate of 74460 ***