When building the Search Index inside KHelpCenter, it falsely reports success even though it fails.
The cause of the failure is that docbookparser isn't compatible with dash. When its run using dash instead of bash, it produces errors such as
/home/mugginz/.kde/share/apps/khelpcenter/index//kde_application_manuals.tmp/docbookparser: 11: Bad substitution
The Fix.
--------
The following file "~/.kde/share/apps/khelpcenter/index/kde_application_manuals.tmp/docbookparser"
is where the 'Bad substitution' errors come from.
It needs line 1 changed from
#! /bin/sh
to
#! /bin/bash
The above file 'docbookparser' is created from inside the following python script "/usr/bin/khc_docbookdig.pl"
The source for the python script is "kdebase-3.5.9/khelpcenter/searchhandlers/khc_docbookdig.pl.in"
So if we change line 127 of khc_docbookdig.pl.in from
#! /bin/sh
to
#! /bin/bash
the prob is fixed.
Also related to: Bug #19767 in kdebase (Ubuntu) - htdig should be a dependecy of the base kde packages.
Binary package hint: kdebase
kdebase 4:3.5.9-0ubuntu7
When building the Search Index inside KHelpCenter, it falsely reports success even though it fails.
The cause of the failure is that docbookparser isn't compatible with dash. When its run using dash instead of bash, it produces errors such as
/home/mugginz/ .kde/share/ apps/khelpcente r/index/ /kde_applicatio n_manuals. tmp/docbookpars er: 11: Bad substitution
The Fix.
"~/.kde/ share/apps/ khelpcenter/ index/kde_ application_ manuals. tmp/docbookpars er"
--------
The following file
is where the 'Bad substitution' errors come from.
It needs line 1 changed from
#! /bin/sh
to
#! /bin/bash
The above file 'docbookparser' is created from inside the following python script
"/usr/ bin/khc_ docbookdig. pl"
The source for the python script is
"kdebase- 3.5.9/khelpcent er/searchhandle rs/khc_ docbookdig. pl.in"
So if we change line 127 of khc_docbookdig. pl.in from
#! /bin/sh
to
#! /bin/bash
the prob is fixed.
Also related to:
Bug #19767 in kdebase (Ubuntu) - htdig should be a dependecy of the base kde packages.