<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>130297</bug_id>
          
          <creation_ts>2006-04-17 13:31 0000</creation_ts>
          <short_desc>media-sound/banshee requires avahi to be emerged with USE=dbus</short_desc>
          <delta_ts>2006-04-22 09:53:12 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>david.morgan@gmail.com</reporter>
          <assigned_to>metalgod@gentoo.org</assigned_to>
          <cc>sound@gentoo.org</cc>
    
    <cc>swegener@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>david.morgan@gmail.com</who>
            <bug_when>2006-04-17 13:31:04 0000</bug_when>
            <thetext>It seems that banshee needs to check for &apos;built_with_use net-dns/avahi dbus&apos; 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 &apos;--enable-avahi&apos; &apos;--disable-xing&apos; &apos;--disable-helix&apos; &apos;--disable-docs&apos; &apos;--with-gstreamer-0-10&apos; &apos;--enable-ipod&apos; &apos;--enable-njb&apos; &apos;--disable-gtk-doc&apos;
  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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>metalgod@gentoo.org</who>
            <bug_when>2006-04-17 14:50:05 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>david.morgan@gmail.com</who>
            <bug_when>2006-04-17 14:55:17 0000</bug_when>
            <thetext>You&apos;d have thought so, but it was built with USE=mono.

I&apos;ve tried it multiple times, it works with USE=&quot;mono dbus&quot;, and fails with USE=&quot;mono -dbus&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>david.morgan@gmail.com</who>
            <bug_when>2006-04-17 15:24:53 0000</bug_when>
            <thetext>In fact, the banshee ebuild already checks that avahi is built with USE=mono, but I think it does so incorrectly.

USE=&quot;-mono -daap&quot; emerge avahi banshee fails because avahi is built without mono support, but banshee shouldn&apos;t care in this case.

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

(! built_with_use cat/pkg flag1 flag2 seems to behave in the correct way, but I&apos;m not 100% sure)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>david.morgan@gmail.com</who>
            <bug_when>2006-04-17 15:32:06 0000</bug_when>
            <thetext>Actually, I think this is an avahi bug, not a banshee bug.

When I do USE=&quot;mono -dbus&quot; 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 &apos;use daap &amp;&amp;&apos; still stands though

(sorry for all the emails bugzilla&apos;s sending you)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>metalgod@gentoo.org</who>
            <bug_when>2006-04-17 15:46:37 0000</bug_when>
            <thetext>add avahi maintainer to look at this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swegener@gentoo.org</who>
            <bug_when>2006-04-17 23:24:00 0000</bug_when>
            <thetext>Yep, avahi needs dbus for mono support, I&apos;ll fix this later today when I&apos;m back at home.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>david.morgan@gmail.com</who>
            <bug_when>2006-04-22 03:32:07 0000</bug_when>
            <thetext>Looks like avahi has been fixed, but banshee will still fail if you do

USE=&quot;-mono -daap&quot; emerge avahi banshee 

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

The solution I&apos;m talking about is to change

	if ! built_with_use net-dns/avahi mono ; then

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

(we don&apos;t want to be failing because of something to do with avahi when we aren&apos;t supposed to be using it)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>metalgod@gentoo.org</who>
            <bug_when>2006-04-22 09:20:48 0000</bug_when>
            <thetext>i understand what you meant but mono use flag doesn&apos;t exist on banshee. It only makes sense if you add USE=&quot;daap&quot; for banshee. USE=&quot;-daap -mono&quot; emerge banshee works for me.

Thanks for the heads up.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>david.morgan@gmail.com</who>
            <bug_when>2006-04-22 09:32:23 0000</bug_when>
            <thetext>USE=-mono emerge avahi &amp;&amp; USE=-daap banshee, then :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>metalgod@gentoo.org</who>
            <bug_when>2006-04-22 09:53:12 0000</bug_when>
            <thetext>i added your changes to the ebuild after get the problem. Thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>