Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430836 - MySQL ebuild/eclass does not generate my.cnf with eprefix paths
Summary: MySQL ebuild/eclass does not generate my.cnf with eprefix paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
: 453258 (view as bug list)
Depends on:
Blocks: 446200
  Show dependency tree
 
Reported: 2012-08-10 22:04 UTC by Mike Lewis
Modified: 2013-01-21 00:05 UTC (History)
2 users (show)

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


Attachments
Fixed my.cnf (my.cnf-5.1,4.74 KB, text/plain)
2012-08-10 22:04 UTC, Mike Lewis
Details
mysql-cmake patch (mysql-cmake.eclass.patch,657 bytes, patch)
2012-08-10 22:04 UTC, Mike Lewis
Details | Diff
eclass fix (autotools-prefix.patch,623 bytes, patch)
2013-01-20 20:57 UTC, Brian Evans (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***