/etc/portage/ is for portage config data, not mysql stuff.
what the hell are you talking about? your one sentence description doesn't tell me anything. Nowhere in mysql is /etc/portage used.
Care to elaborate what's your trouble exactly? Noone sets /etc/portage/ as DATADIR, as far as I can tell. o_O
*sigh*
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.
# 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!? :)
uh...
changed in CVS.