Kde help index creation fails due to dash incompatability
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdebase (Ubuntu) |
Fix Released
|
Medium
|
Harald Sitter | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned | ||
Intrepid |
Fix Released
|
Medium
|
Harald Sitter |
Bug Description
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/
The Fix.
--------
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
The source for the python script is
So if we change line 127 of khc_docbookdig.
#! /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.
TEST CASE:
Without the patch:
1. Install khelpcenter and htdig
2. Run khelpcenter and go to the search options tab in the sidebar
3. Click the Build search index button
4. Check off Application manuals in the dialog
5. Click Build index
6. Click on Details. There will be an error 11: Bad substitution while building the index
With the patch:
Same steps, no error and the index is created successfully.
Changed in kdebase: | |
milestone: | none → ubuntu-8.04.2 |
description: | updated |
Changed in kdebase: | |
importance: | Undecided → Medium |
status: | Triaged → In Progress |
Changed in kdebase: | |
status: | In Progress → Fix Released |
I'd rather the sctipt was fixed to work with /bin/sh than change it to /bin/bash