Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281432 - net-misc/mediatomb init script requires mysql even when mysql was built with USE="minimal"
Summary: net-misc/mediatomb init script requires mysql even when mysql was built with ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-14 06:17 UTC by gentoo@danielquinn.org
Modified: 2010-03-29 22:35 UTC (History)
1 user (show)

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


Attachments
My emerge.info (emerge.info,17.17 KB, text/plain)
2009-08-14 06:19 UTC, gentoo@danielquinn.org
Details
mysql patch (mysql.patch,552 bytes, text/plain)
2009-11-17 13:37 UTC, BT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo@danielquinn.org 2009-08-14 06:17:50 UTC
I'm running MySQL on a different server than the one hosting mediatomb, so I built MySQL with the minmal flag (which doesn't build mysql-server) and then built mediatomb with the "mysql" flag so I could take advantage of that instead of relying on sqlite.

However, when I try to start the init script, it complains that MySQL isn't running.  Editing the init script to remove "mysql" from the "need" line does the trick however.

Reproducible: Always

Steps to Reproduce:
1. Install MySQL with the "minimal" use flag
2. Install Mediatomb with the "mysql" use flag
3. Attempt to start mediatomb

Actual Results:  
# /etc/init.d/mediatomb start
mysql                                              
 * ERROR:  Some services needed are missing.  Run  
 *         './mediatomb broken' for a list of those
 *         services.  mediatomb was not started.   


Expected Results:  
# /etc/init.d/mediatomb start
 * Caching service dependencies ...  [ ok ]
 * Starting MediaTomb ...            [ ok ]
Comment 1 gentoo@danielquinn.org 2009-08-14 06:19:58 UTC
Created attachment 201200 [details]
My emerge.info
Comment 2 BT 2009-11-17 13:37:39 UTC
Created attachment 210513 [details]
mysql patch

This patch adds an additional check to see if MySQL has been built with USE minimal before `need mysql` is sedded to the init script. I'm not sure if this is the best way of fixing this issue but it works for me.
Comment 3 BT 2010-03-29 22:26:52 UTC
I believe this is fixed in bug #264235. I've added a built_with_use check to the sed on line 92. This needs to be checked by a dev since I'm not sure if this is the correct way to fix this issue.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-29 22:35:53 UTC
(In reply to comment #3)
> I believe this is fixed in bug #264235. I've added a built_with_use check to
> the sed on line 92. This needs to be checked by a dev since I'm not sure if
> this is the correct way to fix this issue.
> 

in tree, thanks.