Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249467 - dev-db/mysql-community-5.1: `emerge --config' fails on ndbcluster
Summary: dev-db/mysql-community-5.1: `emerge --config' fails on ndbcluster
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 11:45 UTC by Fabian Groffen
Modified: 2009-02-12 09:04 UTC (History)
1 user (show)

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


Attachments
eclass patch (mysql.eclass.patch,1.08 KB, patch)
2008-12-06 10:31 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2008-12-01 11:45:10 UTC
(pegasus:usr/portage/eclass) fabian% rm -Rf /net/pegasus.ins.cwi.nl/export/scratch1/fabian/gentoo/prefix64///var/lib/mysql/*
(pegasus:usr/portage/eclass) fabian% emerge --config mysql-community            

Configuring pkg...

 * Creating the mysql database and setting proper
 * permissions on it ...
 * Insert a password for the mysql 'root' user
 * Avoid ["'_%] characters in the password
    >
 * Retype the password
    >
.081201 11:49:02 [Note] Plugin 'InnoDB' disabled by command line option
081201 11:49:02 [ERROR] /net/pegasus.ins.cwi.nl/export/scratch1/fabian/gentoo/prefix64//usr/sbin/mysqld: unknown option '--skip-ndbcluster'

081201 11:49:02 [ERROR] Aborting

081201 11:49:02 [Note] /net/pegasus.ins.cwi.nl/export/scratch1/fabian/gentoo/prefix64//usr/sbin/mysqld: Shutdown complete

....ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/net/pegasus.ins.cwi.nl/export/scratch1/fabian/gentoo/prefix64//var/run/mysqld/mysqld23469.sock' (2)
 * Loading "zoneinfo", this step may require a few seconds ...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/net/pegasus.ins.cwi.nl/export/scratch1/fabian/gentoo/prefix64//var/run/mysqld/mysqld23469.sock' (2)
/net/pegasus.ins.cwi.nl/export/scratch1/fabian/gentoo/prefix64/var/tmp/portage/dev-db/mysql-community-5.1.21_beta/temp/environment: line 3206: /net/pegasus.ins.cwi.nl/export/scratch1/fabian/gentoo/prefix64//var/run/mysqld/mysqld4951.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
 * Stopping the server ...
 * Done

(pegasus:usr/portage/eclass) fabian% emerge -pv mysql-community

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-db/mysql-community-5.1.21_beta  USE="innodb ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -perl (-selinux) -static" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
(pegasus:usr/portage/eclass) fabian% 


When emerged with USE="cluster" the script barfs on "unknown option '--skip-bdb'", so I'm affraid it needs some cleverness to avoid giving options which aren't compiled in.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-02 00:24:36 UTC
@Fabian: You are quite capable of assigning bugs yourself...
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-12-02 00:47:36 UTC
5.1 is in package.mask for a reason.
There is much brokenness in it.
Comment 3 Fabian Groffen gentoo-dev 2008-12-02 12:05:47 UTC
(In reply to comment #1)
> @Fabian: You are quite capable of assigning bugs yourself...

mysql@gentoo.org doesn't exist, and I don't know where to find the mapping herd->emailaddy

(In reply to comment #2)
> 5.1 is in package.mask for a reason.
> There is much brokenness in it.

Ok, it's the only version we use (in production), hence the report.
Comment 4 Fabian Groffen gentoo-dev 2008-12-06 10:31:06 UTC
Created attachment 174393 [details, diff]
eclass patch

this works for me, not much upstream in here, I guess...
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-12-07 00:09:04 UTC
grobian: it's the actual change that concerns me. In older versions, you could pass unrecognized --skip-FOO options safely.

Also, USE=innodb is no longer optional, at the explicit request of upstream. innodb is hard-included in ALL mysql builds.

I'm thinking also however that we shouldn't detect which --skip to pass based on the USE flags, but rather query the MySQL to see how it was built.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-02-12 09:04:52 UTC
5.1-specific breakage. Will have to see about when upstream solves it.