Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 452460

Summary: =media-sound/aqualung-0.9_beta11-r1 is not compatible with dev-libs/libcdio-paranoia
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: Current packagesAssignee: Daniel Pielmeier <billie>
Status: RESOLVED UPSTREAM    
Severity: normal CC: asturm, kripton, sound
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://aqualung.factorial.hu/mantis/bug_view_page.php?bug_id=0000185
See Also: https://bugs.gentoo.org/show_bug.cgi?id=497248
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 452430    
Attachments: build.log

Description Samuli Suominen (RETIRED) gentoo-dev 2013-01-16 09:44:35 UTC
Created attachment 335794 [details]
build.log

dep should be:

cdda? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )

and you need this to get to the actual errors:

if has_version dev-libs/libcdio-paranoia; then
	sed -i \
		-e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
		-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
		src/*.{c,h} src/decoder/dec_cdda.h || die
fi
Comment 1 Daniel Pielmeier gentoo-dev 2013-01-17 21:21:26 UTC
I have made the changes to the ebuild but a patch to make it build is still missing. Will report this upstream if i have time.
Comment 2 Daniel Pielmeier gentoo-dev 2013-01-19 08:39:38 UTC
(In reply to comment #0)
> Created attachment 335794 [details]
> build.log
> 
> dep should be:
> 
> cdda? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
> 
> and you need this to get to the actual errors:
> 
> if has_version dev-libs/libcdio-paranoia; then
> 	sed -i \
> 		-e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
> 		-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
> 		src/*.{c,h} src/decoder/dec_cdda.h || die
> fi

Shouldn't this be

if has_version dev-libs/libcdio-paranoia; then
	sed -i \
		-e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
		-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
		src/*.{c,h} src/decoder/dec_cdda.{c,h} || die
fi

There is another include in src/decoder/dec_cdda.c.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-01-19 20:44:16 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Created attachment 335794 [details]
> > build.log
> > 
> > dep should be:
> > 
> > cdda? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
> > 
> > and you need this to get to the actual errors:
> > 
> > if has_version dev-libs/libcdio-paranoia; then
> > 	sed -i \
> > 		-e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
> > 		-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
> > 		src/*.{c,h} src/decoder/dec_cdda.h || die
> > fi
> 
> Shouldn't this be
> 
> if has_version dev-libs/libcdio-paranoia; then
> 	sed -i \
> 		-e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
> 		-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
> 		src/*.{c,h} src/decoder/dec_cdda.{c,h} || die
> fi
> 
> There is another include in src/decoder/dec_cdda.c.

If it's there, definately. I didn't really want any of this committed to Portage before the full fix is available.

Daniel, I think you can point upstream to example patches, like:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-plugins/gst-plugins-cdio/files/gst-plugins-cdio-0.10.19-cdio-cd-text-api.patch?view=markup

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-plugins/audacious-plugins/files/audacious-plugins-3.3.3-libcdio.patch?view=markup

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-video/mplayer2/files/mplayer2-2.0_p20121128-cdio-api-fixes.patch?view=markup

Thanks.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2013-01-19 20:45:20 UTC
And I would temporarily disable entire libcdio support from aqualung in ~arch pending on the fix. But that's just my personal opinion.
Comment 5 Daniel Pielmeier gentoo-dev 2013-01-20 10:05:10 UTC
(In reply to comment #4)
> And I would temporarily disable entire libcdio support from aqualung in
> ~arch pending on the fix. But that's just my personal opinion.

I added the links to the patches on the upstream tracker.

Stable version of aqualung now restricts to <dev-libs/libcdio-0.90[-minimal] and the arch version has cdda (libcdio) support disabled).
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2013-04-21 07:42:59 UTC
This is the only incompatible package left in Portage. 
I'd like to lastrite it, or remove the cdda USE flag so we can proceed with the stabilization of the new libcdio-paranoia package and the eselect module.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-04-21 07:44:19 UTC
(In reply to comment #6)
> This is the only incompatible package left in Portage. 
> I'd like to lastrite it, or remove the cdda USE flag so we can proceed with
> the stabilization of the new libcdio-paranoia package and the eselect module.

Oh, nevermind, I see -r2 has the USE flag removed! I'll just file -r2 stabilization bug once I'll open the stablereq. Sorry for the noise.
Comment 8 jannis 2013-04-21 07:48:45 UTC
A patch seems to be here:
http://sourceforge.net/mailarchive/forum.php?thread_name=1361777053-5781-1-git-send-email-jamie%40audible.transient.net&forum_name=aqualung-friends

Didn't test it, though since I don't get compile errors in the first place and didn't really understood your comments about "needing s.th. to trigger the error".

I vote for dropping the CDDA USE flag instead of dropping the whole package
Comment 9 Daniel Pielmeier gentoo-dev 2013-04-21 18:04:36 UTC
If someone backports the patch to the version in tree I will apply it else we stabilize with the use flag removed and add it back with the next version bump.
Comment 10 Andreas Sturmlechner gentoo-dev 2014-01-06 00:57:40 UTC
No release since 2010-01-31 and no patch backport effort for 2/3 of a year, I guess it wouldn't be unreasonable to simply drop the USE flag and continue stabilisation?
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2014-01-06 11:54:16 UTC
(In reply to Andreas Sturmlechner from comment #10)
> No release since 2010-01-31 and no patch backport effort for 2/3 of a year,
> I guess it wouldn't be unreasonable to simply drop the USE flag and continue
> stabilisation?

I'm opening libcdio-paranoia stabilization bug now, so yes, aqualung will have to be stabilized to drop the libcdio support.