Subject: pkg/19848: KDE3 (fix): kspell does not find dictionaries
To: None <>
From: Ingolf Steinbach <>
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
>Originator:     Ingolf Steinbach
>Release:        NetBSD 1.6_STABLE
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
	The search path of kspell (from kdelibs- does not
	include ${PREFIX}/lib where the dictionaries for ispell are
	Install some ispell dictionaries and try to use them with
	kspell. kcontrol only offers the default dictionary.
	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.


--- 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");