Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174755 - dev-db/mysql-5.0.38 my.conf datadir change sucks
Summary: dev-db/mysql-5.0.38 my.conf datadir change sucks
Status: RESOLVED INVALID
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: 2007-04-16 08:08 UTC by Carsten Lohrke (RETIRED)
Modified: 2007-04-25 18:25 UTC (History)
1 user (show)

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 Carsten Lohrke (RETIRED) gentoo-dev 2007-04-16 08:08:26 UTC
/etc/portage/ is for portage config data, not mysql stuff.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-04-16 08:15:11 UTC
what the hell are you talking about? your one sentence description doesn't tell me anything.

Nowhere in mysql is /etc/portage used.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-04-16 08:20:41 UTC
Care to elaborate what's your trouble exactly? Noone sets
/etc/portage/ as DATADIR, as far as I can tell. o_O
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2007-04-17 07:37:39 UTC
*sigh*
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-04-17 09:27:00 UTC
carlo: could you please provide the information requested?

"equery f dev-db/mysql | grep /etc/portage" gives me nothing.

as does grepping for /etc/portage in ${D} right after src_install.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2007-04-17 16:24:37 UTC
# grep portage /etc/mysql/my.cnf
datadir                                         = /etc/portage/data


but -- I realize what's going on now - and should have noticed earlier. I have a a local bashrc file and set the variable DATADIR globally.

So, while thisis definitely a local hickup and we've - partly at least - the very same problem with other eclasses (kde.eclass variable naming is probably the worst example I know first hand) would you mind, changing your variable scheme to prefix with MYSQL_ and taking care declaring and initializing local ones as local, please!? :)
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2007-04-17 16:28:16 UTC
uh...
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-04-25 18:25:25 UTC
changed in CVS.