Build of search index in khelpcenter fails for kubuntu 5.04

Bug #17192 reported by Christof Pflumm
10
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
New
Medium
Jonathan Riddell

Bug Description

I can't build a search index for the application manuals in khelpcenter. I am
working with kubuntu 5.04 (amd64 version). khelpcenter should be the latest version:

dpkg -l
ii khelpcenter 3.4.0-0ubuntu18

Output when trying to build the search index:

INDEXDIR: /home/pflumm/.kde/share/apps/khelpcenter/index/
FINDCMD: find /usr/share/doc/HTML/en/ -name index.docbook
Creating index for 'kde_application_manuals'
find: /usr/share/doc/HTML/en/: No such file or directory
Warning: unknown locale!

New server: home, 80
Unknown host: home
0:0:0:file://home/pflumm/.kde/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html:
 size = 0
htdig: Run complete
htdig: 1 server seen:
htdig: home:80 1 document
DB2 problem...: missing or empty key value specified
Finished successfully.

One problem certainly is that /usr/share/doc/HTML/en/ does not exist. The
documentation resides in /usr/share/doc/kde/HTML/en/ Because of this,
/usr/bin/khc_docbookdig.pl can't find the docu. But even if the pathes in
/usr/bin/khc_docbookdig.pl are corrected, it does not work. First, it looks as
if the build is successful, but using htdig -vvv in /usr/bin/khc_docbookdig.pl
(instead of -v only) shows that the docus are not generated because the
corresponding files are rejected by htdig with messages like

href: help://kedit/index.docbook (/usr/share/doc/kde/HTML/en/kedit/index.docbook)
   Rejected: Not an http or relative link!
url rejected: (level 1)help://kedit/index.docbook

(see also more detailed output towards the end) After some trying around, I
think that the problem is that the mime type of the docbook files is not
obtained correctly, but I am not sure about this.

Christof

Output when paths corrected and htdig -vvv is used:

INDEXDIR: /home/pflumm/.kde/share/apps/khelpcenter/index/
FINDCMD: find /usr/share/doc/kde/HTML/en/ -name index.docbook
Creating index for 'kde_application_manuals'
Warning: unknown locale!
 1:1:file://home/pflumm/.kde/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html
New server: home, 80
Unknown host: home
 pushed
pick: home, # servers = 1
0:0:0:file://home/pflumm/.kde/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html:
Trying local files
  found existing file
/home/pflumm/.kde/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html
Read 8192 from document
Read 7210 from document
Read a total of 15402 bytes
href: help://akregator/index.docbook
(/usr/share/doc/kde/HTML/en/akregator/index.docbook)
   Rejected: Not an http or relative link!
url rejected: (level 1)help://akregator/index.docbook
...snip...
href: help://kedit/index.docbook (/usr/share/doc/kde/HTML/en/kedit/index.docbook)
   Rejected: Not an http or relative link!
url rejected: (level 1)help://kedit/index.docbook
 size = 15402
pick: home, # servers = 1
htdig: Run complete
htdig: 1 server seen:
htdig: home:80 1 document
Finished successfully.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.