<?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>154759</bug_id>
          
          <creation_ts>2006-11-11 00:03 0000</creation_ts>
          <short_desc>app-emacs/emacs-w3m-1.4.4-r1 bad build_with_use check</short_desc>
          <delta_ts>2006-11-17 02:17:26 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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P4</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pflm52td@w6.dion.ne.jp</reporter>
          <assigned_to>emacs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>pflm52td@w6.dion.ne.jp</who>
            <bug_when>2006-11-11 00:03:38 0000</bug_when>
            <thetext>Hi. There&apos;s an implicit dependency error in app-emacs/emacs-w3m-1.4.4-r1 (the latest ebuild). It is introduced newly in this version. 

First, as the half answer, let&apos;s see the ebuild. In pkg_setup() function, a line reads:

if built_with_use www-client/w3m async; then

The correct code should be something like:

if is_installed www-client/w3m &amp;&amp;
   built_with_use www-client/w3m async; then
# or 
if is_installed www-client/w3mmee ||
   built_with_use www-client/w3m async; then

I couldn&apos;t figure out the desired function, so I just name it as &quot;is_installed&quot;.

Let me explain. The package depends on virtual/w3m. There&apos;re two ebuilds which provide it; they&apos;re www-client/w3m and www-client/w3mmee.

The ebuild refuses the case where w3m is built with async flag on. It&apos;s OK. On the other hand, a user must be able to choose w3mmee without having w3m. This case is forgotten, because built_with_use assumes that www-client/w3m is installed.

Since w3mmee does not have async flag, the above is enough.

Thanks a lot for your commitment.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-11-11 01:17:52 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; The correct code should be something like:

has_version is the right one ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2006-11-17 02:17:26 0000</bug_when>
            <thetext>Thanks for the info, fixed in CVS.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>