Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130297 - media-sound/banshee requires avahi to be emerged with USE=dbus
Summary: media-sound/banshee requires avahi to be emerged with USE=dbus
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luis Medinas (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-17 13:31 UTC by David Morgan
Modified: 2006-04-22 09:53 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 David Morgan 2006-04-17 13:31:04 UTC
It seems that banshee needs to check for 'built_with_use net-dns/avahi dbus' when emerging with USE=daap, otherwise

checking for AVAHISHARP... configure: error: Package requirements (avahi-sharp) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the AVAHISHARP_CFLAGS and AVAHISHARP_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/banshee-0.10.9-r1/work/banshee-0.10.9/config.log

!!! ERROR: media-sound/banshee-0.10.9-r1 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  banshee-0.10.9-r1.ebuild, line 99:   Called gnome2_src_configure
  gnome2.eclass, line 51:   Called econf '--enable-avahi' '--disable-xing' '--disable-helix' '--disable-docs' '--with-gstreamer-0-10' '--enable-ipod' '--enable-njb' '--disable-gtk-doc'
  ebuild.sh, line 527:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Works fine when avahi is emerged with USE=dbus though
Comment 1 Luis Medinas (RETIRED) gentoo-dev 2006-04-17 14:50:05 UTC
no, you need avahi to be build with mono use flag according to your log.

 checking for AVAHISHARP... configure: error: Package requirements (avahi-sharp)
were not met.
Comment 2 David Morgan 2006-04-17 14:55:17 UTC
You'd have thought so, but it was built with USE=mono.

I've tried it multiple times, it works with USE="mono dbus", and fails with USE="mono -dbus"
Comment 3 David Morgan 2006-04-17 15:24:53 UTC
In fact, the banshee ebuild already checks that avahi is built with USE=mono, but I think it does so incorrectly.

USE="-mono -daap" emerge avahi banshee fails because avahi is built without mono support, but banshee shouldn't care in this case.

In my opinion the check should be 
if use daap && ! built_with_use net-dns/avahi mono dbus, 
but you're obviously welcome to disagree.

(! built_with_use cat/pkg flag1 flag2 seems to behave in the correct way, but I'm not 100% sure)
Comment 4 David Morgan 2006-04-17 15:32:06 UTC
Actually, I think this is an avahi bug, not a banshee bug.

When I do USE="mono -dbus" emerge avahi, part of the output at the end of autoconf running is

Building avahi-sharp:               no

Which is presumably not the corrent behaviour


I think what I said about the check for avahi being built with mono needing a 'use daap &&' still stands though

(sorry for all the emails bugzilla's sending you)
Comment 5 Luis Medinas (RETIRED) gentoo-dev 2006-04-17 15:46:37 UTC
add avahi maintainer to look at this.
Comment 6 Sven Wegener gentoo-dev 2006-04-17 23:24:00 UTC
Yep, avahi needs dbus for mono support, I'll fix this later today when I'm back at home.
Comment 7 David Morgan 2006-04-22 03:32:07 UTC
Looks like avahi has been fixed, but banshee will still fail if you do

USE="-mono -daap" emerge avahi banshee 

Could you fix that (unless you think that it's the correct behaviour) and then this can be marked as fixed.

The solution I'm talking about is to change

	if ! built_with_use net-dns/avahi mono ; then

to
	
        if use daap && ! built_with_use net-dns/avahi mono ; then

(we don't want to be failing because of something to do with avahi when we aren't supposed to be using it)
Comment 8 Luis Medinas (RETIRED) gentoo-dev 2006-04-22 09:20:48 UTC
i understand what you meant but mono use flag doesn't exist on banshee. It only makes sense if you add USE="daap" for banshee. USE="-daap -mono" emerge banshee works for me.

Thanks for the heads up.
Comment 9 David Morgan 2006-04-22 09:32:23 UTC
USE=-mono emerge avahi && USE=-daap banshee, then :)
Comment 10 Luis Medinas (RETIRED) gentoo-dev 2006-04-22 09:53:12 UTC
i added your changes to the ebuild after get the problem. Thanks!