Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666992 - dev-db/mysql-5.6.40-r2 pkg_config: Failed to initialize mysqld
Summary: dev-db/mysql-5.6.40-r2 pkg_config: Failed to initialize mysqld
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-24 16:16 UTC by Alexandre Cuvillier
Modified: 2018-09-25 01:24 UTC (History)
0 users

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


Attachments
mysqld.err logs (mysqld.err,5.63 KB, text/plain)
2018-09-24 16:16 UTC, Alexandre Cuvillier
Details
emerge --config output (emerge_config_mysql.log,1.71 KB, text/x-log)
2018-09-24 16:21 UTC, Alexandre Cuvillier
Details
config can't set password (output_emerge_config,2.63 KB, text/plain)
2018-09-24 20:11 UTC, Alexandre Cuvillier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Cuvillier 2018-09-24 16:16:54 UTC
Created attachment 547776 [details]
mysqld.err logs

MySQL failed to configure at fresh install with emerge --config.

Reproduced evrytime, tested with V5.6.40-r2 and V5.6.41 on a fresh gentoo install.
Comment 1 Alexandre Cuvillier 2018-09-24 16:21:42 UTC
Created attachment 547778 [details]
emerge --config output

added output of emerge --config mysql
Comment 2 Larry the Git Cow gentoo-dev 2018-09-24 17:18:42 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0daa60575ea81e0c514806b3c37c6610a3e4defa

commit 0daa60575ea81e0c514806b3c37c6610a3e4defa
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-09-24 17:18:13 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-09-24 17:18:13 +0000

    dev-db/mysql: Restore pkg_config options confused from 5.7
    
    5.6.40-r2 and 5.6.41 were back copied from 5.7
    Unfortunately pkg_config was not checked and failures occured trying to run it
    
    The relevant parts are restored here
    
    Bug: https://bugs.gentoo.org/666992
    Signed-off-by: Brian Evans <grknight@gentoo.org>
    Package-Manager: Portage-2.3.50, Repoman-2.3.10

 dev-db/mysql/mysql-5.6.40-r2.ebuild | 32 ++++++++++++++++++++++++++------
 dev-db/mysql/mysql-5.6.41.ebuild    | 32 ++++++++++++++++++++++++++------
 2 files changed, 52 insertions(+), 12 deletions(-)
Comment 3 Brian Evans (RETIRED) gentoo-dev 2018-09-24 17:20:16 UTC
Changes made.  Please rebuild the package and then execute --config again (yes it must be rebuilt first).

Once you confirm things, this bug can be closed.
Comment 4 Alexandre Cuvillier 2018-09-24 20:11:10 UTC
Created attachment 547826 [details]
config can't set password
Comment 5 Alexandre Cuvillier 2018-09-24 20:18:15 UTC
Ah, wrong published..

Anyway, thanks for fast correction.

Can configure MySQL now, but config seems not being able to set password from config file in homedir correctly anymore. I use a my.cnf file with username / password in it for root user, in his homedir. It's well reading it, but seems have a buggy SQL command.

Resulting in an inaccessible instance of mysql if we don't put skip-grant-tables to config to bypass it and put password by hand.

please see the previous comment for logs.

What did you think about it? separate bug or still relied on?

I will join an strace if needed, not able to do it now however.

Thanks again for the correction
Comment 6 Larry the Git Cow gentoo-dev 2018-09-24 20:38:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aabb0e5a81d08b3327fc8813b21f664185cd3964

commit aabb0e5a81d08b3327fc8813b21f664185cd3964
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-09-24 20:36:53 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-09-24 20:37:54 +0000

    dev-db/mysql: Fix initial password setting in 5.6
    
    Bug: https://bugs.gentoo.org/666992
    Signed-off-by: Brian Evans <grknight@gentoo.org>
    Package-Manager: Portage-2.3.50, Repoman-2.3.10

 dev-db/mysql/mysql-5.6.40-r2.ebuild | 2 +-
 dev-db/mysql/mysql-5.6.41.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)