<?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>153712</bug_id>
          
          <creation_ts>2006-11-01 10:08 0000</creation_ts>
          <short_desc>Kdevelop 3.3.5 requires ctags 5.6</short_desc>
          <delta_ts>2007-01-27 17:44:01 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>Development</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>pocmatos@gmail.com</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          <cc>esigra@gmail.com</cc>
    
    <cc>majikdude@ab.telus.net</cc>

      

      
          <long_desc isprivate="0">
            <who>pocmatos@gmail.com</who>
            <bug_when>2006-11-01 10:08:19 0000</bug_when>
            <thetext>kdevelop 3.3.5 requires ctags 5.6. 
Trying to build a ctags database for a C++ project I get from kdevelop: ctags -R --c++-types=+px --excmd=pattern --exclude=Makefile --exclude=.
ctags: unrecognized option `--c++-types=+px`

seems that --c++-types is a 5.6 flag.

Problem is that there&apos;s no ebuild yet for 5.6! :-/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>majikdude@ab.telus.net</who>
            <bug_when>2006-12-06 15:39:02 0000</bug_when>
            <thetext>Yeah, this is totally retarded.

It is caused by kdevelop hard-coding the binary &quot;ctags&quot;.  However, that points to(at least on my system) a ctags from the Emacs package...

root@willbtop ctags2 :) $ equery belongs ctags
[ Searching for file(s) ctags in *... ]
app-editors/xemacs-21.4.17 (/usr/bin/ctags)

Whereas, the file I want is &quot;exuberant-ctags&quot;, that belongs to the &quot;ctags&quot; package:

root@willbtop ctags2 :) $ equery files ctags
[ Searching for packages matching ctags... ]
* Contents of dev-util/ctags-5.5.4-r2:
/usr
/usr/bin
/usr/bin/exuberant-ctags

Problem is... There is no &quot;configuration&quot; method I have found of telling kdevelop to use &quot;exuberant-ctags&quot; instead of &quot;ctags&quot;.  This breaks code complete on my version also (kdevelop-3.3.2).

But a patch can be had... The file ctags2_part.cpp in the kdevelop project can be patched like so:

--- ctags2_part.cpp     2005-09-10 02:21:56.000000000 -0600
+++ ctags2_part.cpp.bak 2006-12-06 16:27:19.000000000 -0700
@@ -132,9 +132,9 @@
 */
        KConfig * config = kapp-&gt;config();
        config-&gt;setGroup( &quot;CTAGS&quot; );
-       QString ctagsBinary = config-&gt;readEntry( &quot;ctags binary&quot;, &quot;ctags&quot; ).stripWhiteSpace();
+       //      QString ctagsBinary = config-&gt;readEntry( &quot;ctags binary&quot;, &quot;ctags&quot; ).stripWhiteSpace();
        if ( ctagsBinary.isEmpty() ) 
-               ctagsBinary = &quot;ctags&quot;;
+               ctagsBinary = &quot;exuberant-ctags&quot;;
 
        QString argsDefault = &quot;-R --c++-types=+px --excmd=pattern --exclude=Makefile --exclude=.&quot;;

And added to the kdevelop-ebuild-dohicky.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>majikdude@ab.telus.net</who>
            <bug_when>2006-12-06 15:42:14 0000</bug_when>
            <thetext>Actually, that is a lousy way of doing it (too much burn out)... How about this instead: 

--- ctags2_part.cpp     2005-09-10 02:21:56.000000000 -0600
+++ ctags2_part.cpp.bak 2006-12-06 16:41:47.000000000 -0700
@@ -132,9 +132,10 @@
 */
        KConfig * config = kapp-&gt;config();
        config-&gt;setGroup( &quot;CTAGS&quot; );
-       QString ctagsBinary = config-&gt;readEntry( &quot;ctags binary&quot;, &quot;ctags&quot; ).stripWhiteSpace();
+       //      QString ctagsBinary = config-&gt;readEntry( &quot;ctags binary&quot;, &quot;ctags&quot; ).stripWhiteSpace();
+       QString ctagsBinary;
        if ( ctagsBinary.isEmpty() ) 
-               ctagsBinary = &quot;ctags&quot;;
+               ctagsBinary = &quot;exuberant-ctags&quot;;
 
        QString argsDefault = &quot;-R --c++-types=+px --excmd=pattern --exclude=Makefile --exclude=.&quot;;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-01-27 16:12:28 0000</bug_when>
            <thetext>Will fix in 3.4.0.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2007-01-27 17:44:01 0000</bug_when>
            <thetext>Fixed in 3.4.0, the default for new installs will be exuberant-ctags.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>