[Bug 241916] Re: Kde help index creation fails due to dash incompatability

Yuriy Kozlov yuriy.kozlov at gmail.com
Mon Jul 14 15:51:42 UTC 2008


** Description changed:

  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/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.
+ 
+ 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 (Ubuntu)
   Importance: Undecided => Medium
       Status: Triaged => In Progress

-- 
Kde help index creation fails due to dash incompatability
https://bugs.launchpad.net/bugs/241916
You received this bug notification because you are a member of Kubuntu
Team, which is subscribed to kdebase in ubuntu.




More information about the kubuntu-bugs mailing list