Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465734 - =dev-db/mysql-5.5.30 - `emerge --config =dev-db/mysql-5.5.30` fails to start mysqld when /var/run/mysql isn't present (eg. after a reboot)
Summary: =dev-db/mysql-5.5.30 - `emerge --config =dev-db/mysql-5.5.30` fails to start ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2013-04-13 04:15 UTC by Sascha Cunz
Modified: 2013-06-26 20:42 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 Sascha Cunz 2013-04-13 04:15:02 UTC
The mysql-v2.eclass silently assumes that /var/run/mysql exists and is a directory. This is not the case, i.e. if you emerge mysql, then reboot before configuring mysql.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-db/mysql
2. reboot system or rm -rf /var/run/mysql
3. emerge --config =dev-dev/mysql-5.5.30
Actual Results:  
The configuration dies with error "Completely failed to start up mysqld with ${cmd}"

Expected Results:  
The directory should have been created and the configuration step should have succeeded.
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2013-05-09 18:26:06 UTC
I forgot to add a comment here, but I've fixed this in the overlay[1].

 [1] - http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=f9a57ec33503693228f0aeb61752023a6f5450db
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2013-06-26 20:42:04 UTC
I've pushed this fixed into the tree.