<?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>198267</bug_id>
          
          <creation_ts>2007-11-06 13:47 0000</creation_ts>
          <short_desc>net-print/cups-1.3.4 avahi useflag is broken</short_desc>
          <delta_ts>2007-11-08 23:36:15 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>Ebuilds</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>flameeyes@gentoo.org</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          <cc>gianluca.dallatorre@tiscali.it</cc>

      

      
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-11-06 13:47:47 0000</bug_when>
            <thetext>The avahi USE flag in that cups ebuild is broken and misused.

Misused because it states there&apos;s a dependency over either avahi or mDNSResponder, so it&apos;s not *AVAHI* code that gets enabled, but *ZeroConf* code (there&apos;s a zeroconf USE flag for that). Plus the dependency as is will skip over mdns even if requested because avahi can be installed (and usually is) without mdnsresponder-compat. In my case I didn&apos;t have mDNSResponder installed either, but the dependency was still satisfied. The result is a cups with no mdns support after building it with avahi USE flag enabled.

The solution is to replace the current avahi useflag with zeroconf, and then add avahi as addition: when avahi is enabled avahi is dependend upon, and then during pkg_setup there is a built_with_use check for mdnsresponder-compat; when avahi is disabled, mDNSResponder is dependend upon. This results in a working ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-11-06 13:51:37 0000</bug_when>
            <thetext>Ah, and you need at least for avahi to depend on avahi-daemon when you enable it, which is another reason why || ( ) dependencies are NO-NO in this case. Feel free to look at pulseaudio init script to get a way to make init script dependencies conditional.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tgurr@gentoo.org</who>
            <bug_when>2007-11-08 23:36:15 0000</bug_when>
            <thetext>Fixed in CVS (cups-1.3.4-r1), thanks for reporting and help.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>