Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120830 - khelpcenter miss htdig dependancy/use flag ?
Summary: khelpcenter miss htdig dependancy/use flag ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 147788 (view as bug list)
Depends on: 176620
Blocks: 28049
  Show dependency tree
 
Reported: 2006-01-29 09:55 UTC by Matteo Azzali (RETIRED)
Modified: 2010-07-27 13:35 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
khelpcenter-3.5.0 ebuild with index_man flag (khelpcenter-3.5.0.ebuild,531 bytes, text/plain)
2006-01-29 09:56 UTC, Matteo Azzali (RETIRED)
Details
khelpcenter-3.5.1 ebuild with index_man flag (khelpcenter-3.5.1.ebuild,562 bytes, text/plain)
2006-02-07 10:40 UTC, Matteo Azzali (RETIRED)
Details
khelpcenter-3.5.1.ebuild with better dependancy for index_man flag (khelpcenter-3.5.1.ebuild,575 bytes, text/plain)
2006-02-08 15:56 UTC, Matteo Azzali (RETIRED)
Details
khelpcenter-htdig.diff (khelpcenter-htdig.diff,1.07 KB, patch)
2006-05-02 02:43 UTC, Matteo Azzali (RETIRED)
Details | Diff
khelpcenter-3.5.2-r1.ebuild (khelpcenter-3.5.2-r1.ebuild,754 bytes, text/plain)
2006-05-02 02:45 UTC, Matteo Azzali (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Azzali (RETIRED) gentoo-dev 2006-01-29 09:55:33 UTC
khelpcenter isn't only a kde manual, should be a frontend for man,
but htdig is required to rebuild index.....
This ebuild adds index_man flag with this dependancy on, or it will
be much less useful.
Comment 1 Matteo Azzali (RETIRED) gentoo-dev 2006-01-29 09:56:30 UTC
Created attachment 78445 [details]
khelpcenter-3.5.0 ebuild with index_man flag
Comment 2 Peter Hyman 2006-02-07 05:58:29 UTC
In addition, it should also compile kdebase-kioslaves otherwise khelpcenter cannot parse man:/ or info:/ filetypes. I recommend making this a dependency as well.
Comment 3 Matteo Azzali (RETIRED) gentoo-dev 2006-02-07 10:40:32 UTC
Created attachment 79140 [details]
khelpcenter-3.5.1 ebuild with index_man flag

Updated for 3.5.1 and added kde-base/kdebase-kioslaves dependancy fo index_man
flag as well.  For who's swearing why this is so nice.... with khelpcenter
I can use ctrl+F on man pages and can select (for copy with control+C) more than one man page at once...
Comment 4 Peter Hyman 2006-02-08 08:08:18 UTC
I had been getting errors when creating search indexes for Application Manuals:

> INDEXDIR: /home/peter/.kde3.5/share/apps/khelpcenter/index/
> FINDCMD: find /usr/kde/3.5/share/doc/HTML/en/ -name index.docbook
> Creating index for 'kde_application_manuals'
> Warning: unknown locale!
>
> New server: home, 80
> Unknown host: home
> 0:0:0:file://home/peter/.kde3.5/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html:
------------------------------------------------------------------------------------------
size = 9403
> htdig: Run complete
> htdig: 1 server seen:
> htdig:     home:80 1 document
> htmerge: Document database has no URLs. Check your config file and try
running htdig again.
>
> htmerge failed

Matteo did some research and uncovered a bug report which did not seem related:
http://sourceforge.net/mailarchive/forum.php?forum_id=2691&style=flat&viewday=3&viewmonth=200204

However, on upgrading to htdig 3.2.0_beta-6, kdehelpcenter was able to correctly compute and build indexes.

I might suggest adding >=www-misc/htdig-3.2.0 as a Depend (even though it's marked testing right now) since indexes can't be built with htdig-3.1.6. But, then again, kde 3.5.x is still marked testing.

Thanks Matteo for the excellent find.
Comment 5 Matteo Azzali (RETIRED) gentoo-dev 2006-02-08 15:56:06 UTC
Created attachment 79285 [details]
khelpcenter-3.5.1.ebuild with better dependancy for index_man flag

Thank you but the merit is of google. However, the hard part would be that
kde goes stable faster tham htdig. This however should not be an issue since
htdig dependancy would be only for index_man flag. Updated ebuild dependancy.
Comment 6 Renat Lumpau (RETIRED) gentoo-dev 2006-05-01 07:00:15 UTC
There is another issue with htdig as detailed in #28049. A few hardcoded paths in /usr/kde/3.5/bin/khc*.pl need to be changed:

- khc_htsearch.pl: my $htsearchpath="/usr/bin/htsearch";

- khc_htdig.pl and khc_docbookdig.pl: my $htdigdata = "/var/lib/htdig/db"; my $htdigbin = "/usr/bin";

Also note that khelpcenter should depend on >=www-misc/htdig-3.2.0_beta6-r1
Comment 7 Matteo Azzali (RETIRED) gentoo-dev 2006-05-02 02:43:38 UTC
Created attachment 85971 [details, diff]
khelpcenter-htdig.diff

Patch for the purposed changes. Should be applied at kde-base as well (when 
releasing another patch set....). 
Apply just after cd ${S} (inside kdebase-3.5.2 directory).
Comment 8 Matteo Azzali (RETIRED) gentoo-dev 2006-05-02 02:45:10 UTC
Created attachment 85972 [details]
khelpcenter-3.5.2-r1.ebuild

new ebuild with both index_man flag and the patch (the patch will be applied
even if the flag is unset, as it doesn't seems to touch anything else than htdig
functions....)
Comment 9 Matteo Azzali (RETIRED) gentoo-dev 2006-05-02 02:49:18 UTC
P.S.: I got this error :
"htdig: Errors to take note of:
Unknown host or unable to contact server: help://kregexpeditor/index.docbook Ref: file:///home/matte/.kde3.5/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html"
Comment 10 Matteo Azzali (RETIRED) gentoo-dev 2006-05-02 02:54:15 UTC
The file /usr/kde/3.5/share/doc/HTML/en/KRegExpEditor/index.docbook seems to be 
there, the issue might be the Capital letter of KRegExpEditor (instead of 
kregexpeditor)?
Comment 11 Matteo Azzali (RETIRED) gentoo-dev 2006-05-02 03:00:30 UTC
Doing a "mv KRegExpEditor kregexpeditor" inside "/usr/kde/3.5/share/doc/HTML/en" worked. 
However it seems to have added just kde apps manuals and just "en language"
(my system has both en and it).....
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-09-16 03:33:31 UTC
*** Bug 147788 has been marked as a duplicate of this bug. ***
Comment 13 DocReedSolomon 2007-05-03 11:16:31 UTC
well, couldnt you make htdig a USEflag for kdebase? that would give as the choice of either emerging this or not.

thx!
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-05-28 14:57:31 UTC
Fixed in 3.5.7.

(In reply to comment #13)
> well, couldnt you make htdig a USEflag for kdebase? that would give as the
> choice of either emerging this or not.

No; working KDE help is not really optional, sorry.