Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122180 - New slotted mysql.eclass fails to detect where datadir is.
Summary: New slotted mysql.eclass fails to detect where datadir is.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-08 14:57 UTC by Federico Galassi
Modified: 2006-02-09 05:17 UTC (History)
0 users

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


Attachments
Patch to solve incorrect detection of datadir and srvdir effectiveness (mysql.eclass.patch,1.51 KB, patch)
2006-02-08 15:02 UTC, Federico Galassi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Galassi 2006-02-08 14:57:32 UTC
mysql.eclass, in mysql_init_vars, does not parse correctly the my.cnf in use, so it always ends up with datadir=/var/lib/mysql-<mysql-slot>.

Also srvdir flag is completely ignored: check for srvdir use flag is in a place in the code which is never reached on first install (my.cnf should exist already), and it's never reached later because datadir now gets hardcoded into my.cnf by pkg_install, and the value is taken from there before even testing srvdir existence.

Federico
Comment 1 Federico Galassi 2006-02-08 15:02:27 UTC
Created attachment 79280 [details, diff]
Patch to solve incorrect detection of datadir and srvdir effectiveness

Attached a patch which solve both problems mentioned
Comment 2 Francesco R. (RETIRED) gentoo-dev 2006-02-09 05:17:09 UTC
Applied, only a comment, add ${ROOT} when using an absolute path in ebuilds.

Thanks for the report