Subject: pkg/19848: KDE3 (fix): kspell does not find dictionaries
To: None <gnats-bugs@gnats.netbsd.org>
From: Ingolf Steinbach <ingolf-kspell@steinba.ch>
List: netbsd-bugs
Date: 01/14/2003 10:02:59
>Number:         19848
>Category:       pkg
>Synopsis:       KDE3 (fix): kspell does not find dictionaries
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 14 01:05:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ingolf Steinbach
>Release:        NetBSD 1.6_STABLE
>Organization:
>Environment:
System: NetBSD helios 1.6_STABLE NetBSD 1.6_STABLE (HELIOS-$Revision: 1.5 $) #0: Mon Dec 23 01:42:04 CET 2002 ingolf@helios:/usr/obj/sys/arch/i386/compile/HELIOS i386
Architecture: i386
Machine: i386
>Description:
	The search path of kspell (from kdelibs-3.0.5.1) does not
	include ${PREFIX}/lib where the dictionaries for ispell are
	installed.
>How-To-Repeat:
	Install some ispell dictionaries and try to use them with
	kspell. kcontrol only offers the default dictionary.
>Fix:
	Add the following patch (or something similar) in the
	x11/kdelibs3/patches. Note that if ${PREFIX} is other
	than /usr/pkg, the dictionaries still won't be found.
	I do not know if there is a mechanism to expand ${PREFIX}
	during application of the patches.

$NetBSD$

--- kspell/ksconfig.cpp.orig	Sat Feb  2 11:40:43 2002
+++ kspell/ksconfig.cpp
@@ -360,6 +360,8 @@ void KSpellConfig::getAvailDictsIspell (
   // dictionary path
   QFileInfo dir ("/usr/lib/ispell");
   if (!dir.exists() || !dir.isDir())
+    dir.setFile ("/usr/pkg/lib");
+  if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/local/lib/ispell");
   if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/local/share/ispell");
>Release-Note:
>Audit-Trail:
>Unformatted:
 	kde-3.0.5.1