Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318701 - net-misc/mediatomb does not build with sqlite3 enabled if mysql useflag disabled
Summary: net-misc/mediatomb does not build with sqlite3 enabled if mysql useflag disabled
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-06 00:43 UTC by clayton
Modified: 2010-06-11 16:34 UTC (History)
2 users (show)

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


Attachments
ebuild that properly enables sqlite3 (mediatomb-0.12.1.ebuild,4.36 KB, text/plain)
2010-05-06 00:45 UTC, clayton
Details
diff of working ebuild (mediatomb.diff,1.00 KB, text/plain)
2010-05-06 03:20 UTC, clayton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description clayton 2010-05-06 00:43:43 UTC
Disabling the 'mysql' USEFLAG and building net-misc/mediatomb does not enable sqlite3. This results in the following:

2010-05-05 17:30:46    INFO: Checking configuration...
2010-05-05 17:30:46   ERROR: You enabled sqlite3 storage in configuration, however this version of MediaTomb was compiled without sqlsupport!

I've attached an ebuild I hacked up quickly that enables sqlite3. I'm fairly new to the ebuild business, so the maintainer will probably want to do something different than I did, since I believe my fix will break configurations that want mysql?

Reproducible: Always
Comment 1 clayton 2010-05-06 00:45:25 UTC
Created attachment 230555 [details]
ebuild that properly enables sqlite3
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-06 03:09:37 UTC
Hi, Please attach diff -u output.
Comment 3 clayton 2010-05-06 03:20:47 UTC
Created attachment 230557 [details]
diff of working ebuild

As I mentioned in my original post, this was a quick hack just so I could install quickly. If someone tries to build with mysql enabled, this ebuild may enable sqlite3 as well and break stuff(?)
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-06 03:32:14 UTC
Ok, that diff is reversed but I get the point.

What you are requesting is a sqlite3 USE flag such that you can use sql but not mysql, is that right? I don't use any sql in my setup. 
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-06 03:35:26 UTC
(In reply to comment #4)
> Ok, that diff is reversed but I get the point.
> 
> What you are requesting is a sqlite3 USE flag such that you can use sql but not
> mysql, is that right? I don't use any sql in my setup. 
> 

Actually, I don't get it. If you build mediatomb with -mysql, sqlite-3 is pulled in[1] *and* enabled in configure[2]. hmm

[1]:
!mysql? ( >=dev-db/sqlite-3 )

[2]:
$(use_enable mysql) $(use_enable !mysql sqlite3)
Comment 6 BT 2010-05-06 03:50:01 UTC
clayton,

Can you please run configure[1] and report what the configuration summary says about mysql and sqlite3?

1:
ebuild /usr/portage/net-misc/mediatomb/mediatomb-0.12.1.ebuild configure
Comment 7 BT 2010-05-06 05:02:13 UTC
I also want to add that I was able to reproduce your error my building MediaTomb with mysql support. I then enabled sqlite and disabled mysql in config.xml.

Since MediaTomb will fail to build if no SQL engine is present, it would seem that you haven't correctly disabled the mysql use flag. Can you double check package.use and make.conf to ensure the mysql use flag is disabled?
Comment 8 Nicholas Bates 2010-05-12 08:13:48 UTC
(In reply to comment #7)
> I also want to add that I was able to reproduce your error my building
> MediaTomb with mysql support. I then enabled sqlite and disabled mysql in
> config.xml.
> 
> Since MediaTomb will fail to build if no SQL engine is present, it would seem
> that you haven't correctly disabled the mysql use flag. Can you double check
> package.use and make.conf to ensure the mysql use flag is disabled?
> 

I'd like to weigh in on this - I've been rebuilding mediatomb after every "world" emerge due to mysql being compiled in place of sqlite. I've done this by running "USE="-mysql" emerge -av mediatomb". My make.conf includes mysql but from my understanding package.use takes precendence.

In summary, I believe that placing "-mysql" in package.use does not disable mysql from being built into mediatomb. Here is the config summary for the ebuild command you asked:

sqlite3               : disabled
mysql                 : yes
libjs                 : yes
libmagic              : yes
inotify               : yes
libexif               : yes
id3lib                : disabled
taglib                : yes
libmp4v2              : yes
ffmpeg                : yes
ffmpegthumbnailer     : disabled
lastfmlib             : yes
external transcoding  : yes
curl                  : yes
YouTube               : yes
libextractor          : disabled
db-autocreate         : yes

If you need any further information let me know.

-- Nick
Comment 9 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-23 04:23:33 UTC
For ME:

USE=-mysql ebuild mediatomb-0.12.1.ebuild clean configure
<snip>
CONFIGURATION SUMMARY ----

sqlite3               : yes
mysql                 : disabled
libjs                 : yes
libmagic              : yes
inotify               : disabled
libexif               : yes
id3lib                : disabled
taglib                : yes
libmp4v2              : yes
ffmpeg                : yes
ffmpegthumbnailer     : disabled
lastfmlib             : disabled
external transcoding  : yes
curl                  : yes
YouTube               : yes
libextractor          : disabled
db-autocreate         : yes

USE=mysql ebuild mediatomb-0.12.1.ebuild clean configure
CONFIGURATION SUMMARY ----

sqlite3               : disabled
mysql                 : yes
libjs                 : yes
libmagic              : yes
inotify               : disabled
libexif               : yes
id3lib                : disabled
taglib                : yes
libmp4v2              : yes
ffmpeg                : yes
ffmpegthumbnailer     : disabled
lastfmlib             : disabled
external transcoding  : yes
curl                  : yes
YouTube               : yes
libextractor          : disabled
db-autocreate         : yes

So, I guess I don't get the problem here. If someone can explain it to me, I can surely make a change, but I'm pretty sure it should work as it.