Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410347 - app-cdr/k3b: use media-libs/musicbrainz:3 instead of :1
Summary: app-cdr/k3b: use media-libs/musicbrainz:3 instead of :1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-31 15:41 UTC by Pacho Ramos
Modified: 2012-05-19 17:42 UTC (History)
2 users (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 Pacho Ramos gentoo-dev 2012-03-31 15:41:13 UTC
Looks like :3 slot could be used instead as I can see in debian package:
http://packages.debian.org/sid/k3b

This would be really interesting to try to drop musicbrainz:1 as it's dead and deprecated by upstream

Thanks

Reproducible: Always
Comment 1 Michael Palimaka (kensington) gentoo-dev 2012-04-02 13:22:41 UTC
It doesn't look like musicbrainz has ever ended up being used in the final binary.

While support is enabled in the build system using K3B_ENABLE_MUSICBRAINZ, support is only enabled in the code with HAVE_MUSICBRAINZ, which is never defined. Further, patching the build system to actually enable this in the code results in build failure.

I'd therefore suggest dropping the dep and useflag.
Comment 2 Chris Reffett (RETIRED) gentoo-dev Security 2012-04-06 15:37:37 UTC
Not quite. K3B_ENABLE_MUSICBRAINZ triggers a find_package check for musicbrainz. If it ends up finding musicbrainz, later in the code it sets ENABLE_MUSICBRAINZ to 1. That variable in turn is used in src/CMakeLists.txt, and there, if it's enabled, it adds a few files to the list of those to be compiled, then later on if it's enabled it links k3b_bin against the musicbrainz libraries. I concur that there are several places that call for the undefined HAVE_MUSICBRAINZ. Not really sure why they have both, but the difference is that ENABLE adds stuff to build, whereas HAVE adds blocks to the code. Also, several of the ENABLE lines seem to be forcibly disabled by way of being enclosed by #ifdef 0 and #endif.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2012-04-07 16:57:18 UTC
In any case, compiling after building k3b[musicbrainz] with forced --as-needed, there are no links to libmusicbrainz.
Comment 4 Chris Reffett (RETIRED) gentoo-dev Security 2012-04-09 01:25:42 UTC
Agreed, no links and no apparent difference in the program from what I can see. (Interestingly, the build process bails out with an error if only musicbrainz:3 is installed). One suggestion, I'd recommend we add -DK3B_ENABLE_MUSICBRAINZ=OFF to mycmakeargs in the ebuild, since that flag is on by default and so this will guard against any automagic dependencies. Shouldn't be a problem, since it's apparently not linking against libmusicbrainz, but better off safe.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2012-05-19 17:42:09 UTC
Fixed, thank-you for the report!

+  19 May 2012; Michael Palimaka <kensington@gentoo.org> +k3b-2.0.2-r2.ebuild:
+  Drop use flag and dependency on musicbrainz since it doesn't actually do
+  anything useful, fixing bug #410347. Tidy ebuild.