Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513136 - dev-db/mysql-init-scripts depends on portage tree and package database
Summary: dev-db/mysql-init-scripts depends on portage tree and package database
Status: RESOLVED WONTFIX
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: 2014-06-13 17:51 UTC by devsk
Modified: 2014-06-13 18:58 UTC (History)
0 users

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 devsk 2014-06-13 17:51:31 UTC
The way the /etc/init.d/mysql is written, it depends on the presence of /usr/portage and /var/db/pkg because it runs portageq during 'start'.

In a squashfs based read-only install where the system has no need for /usr/portage and /var/db/pkg, this is a major pain to setup and start mysql. More so now that akonadi hard depends on mysql from KDE 4.13 and simple things like knotes does not work.

So, is it possible to remove this dependency on portage tree and package database for mysql startup?

Reproducible: Always
Comment 1 Brian Evans (RETIRED) gentoo-dev 2014-06-13 18:10:50 UTC
(In reply to devsk from comment #0)
> The way the /etc/init.d/mysql is written, it depends on the presence of
> /usr/portage and /var/db/pkg because it runs portageq during 'start'.
> 
> In a squashfs based read-only install where the system has no need for
> /usr/portage and /var/db/pkg, this is a major pain to setup and start mysql.
> More so now that akonadi hard depends on mysql from KDE 4.13 and simple
> things like knotes does not work.
> 
> So, is it possible to remove this dependency on portage tree and package
> database for mysql startup?
> 
> Reproducible: Always

The portageq command is only ever called when you forget to have initialized mysql/mariadb via emerge --config.  It is used to construct an error message.

I want to mark as WONTFIX, but willing to discuss a better option to produce a dynamic error message.
Comment 2 devsk 2014-06-13 18:58:19 UTC
Looks like its only the error paths that need that dependency. I am willing to live with that. The startup failed because of something else (/var being ZFS).

Sorry for wasting your time.