Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77917 - 'emerge mysql' creates executables with 'x86_64-pc-linux-gnu-' prepended to all names
Summary: 'emerge mysql' creates executables with 'x86_64-pc-linux-gnu-' prepended to a...
Status: RESOLVED DUPLICATE of bug 74460
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 18:16 UTC by Greg Poucher
Modified: 2005-07-17 13:06 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 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 ***