<?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>28049</bug_id>
          
          <creation_ts>2003-09-06 07:49 0000</creation_ts>
          <short_desc>www-misc/htdig integration with KDE</short_desc>
          <delta_ts>2007-05-31 19:07:27 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>KDE</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>
          <dependson>120830</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Benjamin_Schulz@gmx.de</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          <cc>iyosifov@gmail.com</cc>
    
    <cc>pauldv@gentoo.org</cc>
    
    <cc>web-apps@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>Benjamin_Schulz@gmx.de</who>
            <bug_when>2003-09-06 07:49:20 0000</bug_when>
            <thetext>Hello, I emerged htdig.

htsearch is a script that emerge installed in /home/httpd/cgi-bin/htsearch

running the script manually it tells me, that there does not exist the
application htsearch.

the help indices are made with the installed /usr/bin/rundig

the default path for the database was set by KDE to /opt/www/htdig/db/
(which does not exist)

Setting this in KDE It does simply nothing when I click onto &quot;make indices&quot;. 

In Kdevelop the behaviour ist the same.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>acooks@gentoo.org</who>
            <bug_when>2004-01-30 23:39:13 0000</bug_when>
            <thetext>This bug has not been touched in 90 days or more.

I&apos;ve verified this bug on kde-3.1.5, with htdig-3.1.6-r4.

The paths have changed. htsearch is now at /var/www/localhost/cgi-bin/htsearch
and the db is now at /var/htdig/db/

The KDE behaviour (of doing nothing) is the same.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Benjamin_Schulz@gmx.de</who>
            <bug_when>2004-05-09 15:35:53 0000</bug_when>
            <thetext>I want to comment that the bug is already in KDE 3.2.

but now running htsearch yields:
/home/httpd/cgi-bin/htsearch
Enter value for words: 2
DB2 problem...: /usr/share/htdig/synonyms.db: No such file or directory
DB2 problem...: /usr/share/htdig/word2root.db: No such file or directory
Content-type: text/html

but the files htsearch obviously wants are present in /var/htdig/db/

It seems to be a path configuration Problem
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2004-05-29 06:10:12 0000</bug_when>
            <thetext>O.k., that&apos;s not a kde bug and the inherited eclass is deprecated, too. Web folks?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>niknik79@bossmail.de</who>
            <bug_when>2004-06-29 13:39:51 0000</bug_when>
            <thetext>so, is there any solution that gets htdig search in the kde helpcenter to run?
if so, somebody please post it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2004-07-09 20:07:00 0000</bug_when>
            <thetext>Created an attachment (id=35091)
htdig-3.1.6-r5.ebuild

I&apos;m attaching a new version of the ebuild that uses webapp.eclass instead of
webapp.apache. However, this does _not_ solve the KDE documentation issue,
which I don&apos;t have time to track down. 

The sample htdig.conf file in the kdevelop ebuild needs to be updated with new
paths. 

I have googled a bit trying to find a solution, and these links might prove
useful:
http://www-linux.gsi.de/linux-doc1/kdevelop/README-htdig.Debian
http://www.kdevelop.org/forum/read.php?f=2&amp;i=7534&amp;t=7415
http://htdig.sourceforge.net/files/contrib/other/htdig-3.1.2-bugfixes.patch

There&apos;s quite a bit of potentially interesting stuff on the htdig mailing list
as well. 

rundig -vvv and htmerge -v gives some useful debugging output
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2004-08-30 03:37:40 0000</bug_when>
            <thetext>KDE folks, could we get your help with this?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caleb@gentoo.org</who>
            <bug_when>2004-08-30 05:49:28 0000</bug_when>
            <thetext>Ok, what can we do?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2004-08-30 06:41:34 0000</bug_when>
            <thetext>Basically, I can reproduce the bug, and KDE error messages aren&apos;t all too descriptive. I don&apos;t have access to a KDE installation, so if you could poke around a bit and see what is going on, that would be great. Sorry I can&apos;t help more atm. Be sure to use -r6 of htdig.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>JensHamacher@web.de</who>
            <bug_when>2005-03-28 04:26:48 0000</bug_when>
            <thetext>I&apos;ve been having this bug now with kde-3.4.

well i figured out that kde tries to index files with the &quot;help://&quot; protocol.
That didn&apos;t work with htdig-3.1.6.

I installed htdig-3.2.0b6 from source, and htdig worked in the shell and in the khelpcenter while building the index.

But the search function still doesn&apos;t work. The only thing it finds is man pages. Maybe I didn&apos;t install htdig right? I tried to make an ebuild too, but it installed a few paths wrong.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2005-07-06 14:30:28 0000</bug_when>
            <thetext>htdig itself works, so this must be a KDE issue. I&apos;m at my wits end with this,
so I&apos;m giving up.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>danarmak@gentoo.org</who>
            <bug_when>2005-09-04 21:23:54 0000</bug_when>
            <thetext>I&apos;ve never had a fully working htdig installation before, so I may be missing 
some functionality when I say that everything works (now or later), please 
doublecheck me. 
 
I installed the htdig-3.2.0_beta6 ebuild in portage (on an ~amd64 system).  
I&apos;ve also had to change /usr/kde/3.4/bin/kghc_htsearch.pl to read:  
my $htsearchpath=&quot;/usr/bin/htsearch&quot;  
Instead of /srv/.... which doesn&apos;t exist on Gentoo. 
  
khelpcenter can now build indexes and search. However, the results pages aren&apos;t  
rendered correctly: I&apos;m getting something like the html source displayed  
(starting with &quot;Content-type: text/html&quot;), but then it renders links to result  
topics correctly, except that there are four non-loaded images before every  
such link (i.e. there are the khtml &apos;image not loaded&apos; icons).  
 
To sum up, there&apos;s this rendering issue, and there&apos;s kdevelop&apos;s documentation 
search, which I haven&apos;t gotten to work yet. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>danarmak@gentoo.org</who>
            <bug_when>2005-09-05 08:52:52 0000</bug_when>
            <thetext>(Really no reason this should be a blocker) </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>danarmak@gentoo.org</who>
            <bug_when>2005-09-05 09:03:27 0000</bug_when>
            <thetext>web-apps people:   
   
To summarize one particular issue here: khelpcenter uses htdig for local html  
indexing, and displays the output of htsearch. Because there&apos;s no webserver,  
htsearch&apos;s &apos;result ranking&apos; stars aren&apos;t displayed, because they have an  
src=&quot;/htdig/star.gif&quot;.  
  
khelpcenter already uses a custom htdig config file, so we can change that   
(and the template files) as necessary. The problem is that htdig&apos;s star.gif  
is installed under e.g. /usr/share/webapps/htdig/3.2.0_beta6/htdocs-secure/, so  
our config file would be broken on the next htdig version upgrade.  
  
Is there a way to handle this at runtime, or should we just keep a copy of  
star.gif and suchlike somewhere under $KDEDIR and reference it from our htdig 
configfile?  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2005-09-12 16:35:51 0000</bug_when>
            <thetext>Those files are also under /var/www/YOUR_HOST/htdocs/htdig. Fex, if you have
USE=&quot;-vhosts&quot;, then check /var/www/localhost/htdocs/htdig

It seems like we&apos;re close. Where does khelpcenter keep its htdig config file?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>danarmak@gentoo.org</who>
            <bug_when>2005-09-24 09:11:11 0000</bug_when>
            <thetext>Normally it keeps it in   
~/.kde/share/apps/khelpcenter/index/kde_application_manuals.conf, but we should  
be able to install a systemwide one as   
$KDEDIR/share/apps/khelpcenter/index/kde_application_manuals.conf.  
  
So what should the config file say in order to work with both -vhosts  
and +vhosts systems? </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rl03@gentoo.org</who>
            <bug_when>2006-05-01 06:51:32 0000</bug_when>
            <thetext>Ok, I finally got to this. I just committed 3.1.6-r8 and 3.2.0_beta6-r1 that no longer use webapp.eclass. This should clear up any potential issues with db location.

search in khelpcenter appears to work fine after changing the paths in /usr/kde/3.5/bin/khc*.pl . I will attach a patch to bug #120830 .

searching in kdevelop appears to work out of the box. For the record, all htdig-related files used by kdevelop are in ~/.kde/share/apps/kdevdocumentation/search . The only (very minor) issue is that in kdevelop the stars aren&apos;t rendered as images and show up as text instead.

As soon as 120830 is ready, I believe we&apos;re done here?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-05-31 19:07:27 0000</bug_when>
            <thetext>120830 is fixed in 3.5.7 and, in fact, it works fine now. The stars (which are still rendered as text) are hereby declared a feature, not a bug. ;-)

So this is finally fixed. Thanks to all involved!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>35091</attachid>
            <date>2004-07-09 20:07 0000</date>
            <desc>htdig-3.1.6-r5.ebuild</desc>
            <filename>htdig-3.1.6-r5.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6ICQKCmluaGVyaXQgd2ViYXBwCgpERVNDUklQVElPTj0iSFRUUC9IVE1MIGluZGV4aW5nIGFu
ZCBzZWFyY2hpbmcgc3lzdGVtIgpTUkNfVVJJPSJodHRwOi8vd3d3Lmh0ZGlnLm9yZy9maWxlcy8k
e1B9LnRhci5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