Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 430836

Summary: MySQL ebuild/eclass does not generate my.cnf with eprefix paths
Product: Gentoo/Alt Reporter: Mike Lewis <mikelikespie>
Component: Prefix SupportAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: dflogeras2, prefix
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=453258
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 446200    
Attachments: Fixed my.cnf
mysql-cmake patch
eclass fix

Description Mike Lewis 2012-08-10 22:04:21 UTC
Created attachment 320930 [details]
Fixed my.cnf

The eclass needs to be updated to inherit from prefixy and run eprefixify.

my.cnf needs to be updated to have @GENTOO_PORTAGE_EPREFIX@ before each path.

Attached is a patch for the eclass, as well as a working my.cnf.


Still having an issue with mysql-5.5 after this, but it is unrelated. (something to do with the language setting, the config was made for 5.1, and things have been deprecated)
Comment 1 Mike Lewis 2012-08-10 22:04:41 UTC
Created attachment 320932 [details, diff]
mysql-cmake patch
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-20 02:39:41 UTC
InCVS
Comment 3 Gerald 2013-01-20 20:12:51 UTC
I'm not really sure what this is supposed to fix, but basically for my servers it just broke everything:

 * Starting mysql ...
mkdir: cannot create directory ‘@GENTOO_PORTAGE_EPREFIX@/var/run/mysqld’: No such file or directory
 * Directory @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld for pidfile does not exist and cannot be created

This is on mysql-5.1.67, which has been flagged stable on amd64 TODAY.
Perhaps it needs a new init script or some other depencency?
Comment 4 Brian Evans (RETIRED) gentoo-dev 2013-01-20 20:57:40 UTC
Created attachment 336272 [details, diff]
eclass fix

The problem is that mysql-cmake.eclass was patched, but mysql-autotools.eclass was not.

The attached patch fixes the issue, also sent as a pull request to mysql-bugs.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-21 00:04:42 UTC
Fixed in mysql-autotools.eclass
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-01-21 00:05:31 UTC
*** Bug 453258 has been marked as a duplicate of this bug. ***