Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256564 - app-text/enchant-1.4.2 breaks spell checking for stable users.
Summary: app-text/enchant-1.4.2 breaks spell checking for stable users.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: GNOME Office (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 255691
  Show dependency tree
 
Reported: 2009-01-27 22:20 UTC by Stefan Salewski
Modified: 2009-02-09 22:30 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnome-spell-1.0.8-enchant-updated.patch (gnome-spell-1.0.8-enchant-updated.patch,35.03 KB, patch)
2009-01-29 10:48 UTC, Peter Volkov (RETIRED)
Details | Diff
gnome-spell-1.0.8.ebuild.patch (gnome-spell-1.0.8.ebuild.patch,917 bytes, patch)
2009-01-29 10:50 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Salewski 2009-01-27 22:20:01 UTC
Spellcheck was working fine for english and german language some months ago.
Now I can not select german spellckeck for evolution email editor, I can only select English american, british and canadian.

I have LINGUAS="de en" in /etc/make.conf and global USEFLAG spell set.
Have installed Firefox 3.x, have (re)-emerged aspell, aspell-en, aspell-de, myspell-en, myspell-de, evolution, gnome-spell, enchant. No success.
Have emerged latest instable aspell, no sucess.
Spellcheck works fine in Firefox 3.0.5, german and english. English spellcheck works fine in evolution, but I can not select german.

Seems that Gnome is using myspell/hunspell now, ignoring aspell?
stefan@AMD64-X2 ~ $ emerge -pv enchant
[ebuild   R   ] app-text/enchant-1.4.2  USE="hunspell -aspell -zemberek" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB

For editor gedit spellcheck works fine, but displayed languages in select box is strange for german, it looks like

Unbekannt(de_DE_frami)

May this be the problem for evolution?

Best regards

Stefan Salewski


stefan@AMD64-X2 ~ $ emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0/no-multilib, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentoo x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.2.5
Timestamp of tree: Tue, 27 Jan 2009 13:45:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apm arts avahi berkdb bzip2 cdparanoia cdr cli cracklib crypt cups dbus dri dvb dvd dvdr exif fam firefox fortran ftp gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog java javascript jpeg jpeg2k kde kdeenablefinal latex lm_sensors mad mdnsresponder-compat midi mime mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl plotutils png ppds pppd python qt3 qt4 readline reflection ruby scanner session spell spl sse sse2 ssl svg sysfs tcpd tiff unicode usb vorbis xorg xulrunner xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

stefan@AMD64-X2 ~ $ 





Reproducible: Always
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2009-01-28 04:54:02 UTC
Please either enable aspel USE flag for enchant or install myspell dictionaries which is the default enchant engine.

See comments in bug #255691.
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2009-01-28 10:48:17 UTC
Yup, I'm sure this is same issue as was reported by Ryan in bug 250115. You just need to install spelling dictionaries for new hunspell engine.

That's said. Thank you for report. I've added warning about this situation into enchant ebuild.

*** This bug has been marked as a duplicate of bug 250115 ***
Comment 3 Stefan Salewski 2009-01-28 14:43:57 UTC
Thanks for your comments.

For me things remain strange...
Please note that I have installed myspell dictionaries.
And please note that spellcheck for english works, for german not (in evolution)

For my personal use this is not a big problem, I need mainly english check...

I am not sure what caused the problems, maybe a profile update, I was asked by emerge some weeks ago to update my 2007 profile. Or maybe Firefox 3.0 install?

OK, it seems that Firefox and Gnome now uses myspell/hungspell as default. But I unmerged aspell yesterday, and it was reemerged by revdep-rebuild.

OK, I can live with this -- if no other user is concerned we may ignore it. I will report if I find a solution. Forcing enchant to use aspell by USEFLAG may work...

Thanks

Stefan Salewski

stefan@AMD64-X2 ~ $ emerge -pv myspell-en
Calculating dependencies... done!
[ebuild   R   ] app-dicts/myspell-en-20081002  0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
stefan@AMD64-X2 ~ $ emerge -pv myspell-de
Calculating dependencies... done!
[ebuild   R   ] app-dicts/myspell-de-20080915-r1  0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
stefan@AMD64-X2 ~ $ 
Comment 4 Stefan Salewski 2009-01-28 15:33:54 UTC
OK, this is the reason why I still need aspell:

stefan@AMD64-X2 ~ $ equery depends app-text/aspell
[ Searching for packages depending on app-text/aspell... ]
app-dicts/aspell-de-0.60_pre20030222 (>=app-text/aspell-0.60)
app-dicts/aspell-en-6.0.0 (>=app-text/aspell-0.60)
app-dicts/aspell-fr-0.60 (>=app-text/aspell-0.60)
kde-base/kdelibs-3.5.9-r4 (spell? >=app-text/aspell-0.60.5)

But Gnome should use not aspell on my box.

My guess: myspell-de may be the reason for the problem.

Comment 5 Peter Volkov (RETIRED) gentoo-dev 2009-01-28 16:31:04 UTC
Stefan but have you enabled German dictionaries in evolution? Also you have not mentioned what evolution version you use...
Comment 6 Stefan Salewski 2009-01-28 16:55:14 UTC
>Stefan but have you enabled German dictionaries in evolution? Also you have not
>mentioned what evolution version you use...

stefan@AMD64-X2 ~ $ emerge -pv evolution
[ebuild   R   ] mail-client/evolution-2.22.3.1  USE="crypt dbus hal ipv6 spell ssl -debug -kerberos -krb4 -ldap -mono -networkmanager -nntp -pda -profile" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB

enabled German dictionaries?
Hmm -- was do you mean?
This is an old installation, it was working some months ago.
I have LINGUAS="de en" in /etc/make.conf and spell USEFLAG, I try to select german language in evolution menu, but there is only english.
Please note my remark to Gnome editor gedit, there I can select german spellchecker, but its entries look like

Unbekannt(de_DE_frami)

Unbekannt means unknown, it should have been Deutsch==German.

I think for further investigation I may try to install more languages, but I think something like "emerge myspell-fr" will not do, I will have to add entries to  LINGUAS="de en" which may cause rebuild of many packages...

Comment 7 Peter Volkov (RETIRED) gentoo-dev 2009-01-29 10:48:20 UTC
Stefan, thank you for your report. This is really issue in our package and we'll try to resolve it as soon as possible.

Gnome team: The issue here is that currently stable evolution uses gnome-spell, which in turn uses hardcoded list of dictionaries instead of picking what enchant provides. That means evolution and other applications will never see some myspell dictionaries. To fix this issue we need different enchant patch:

http://bugzilla.abisource.com/show_bug.cgi?id=11001

It was included in fedora-9 release:
http://www.spinics.net/lists/fedora-package-announce/msg10302.html

relevant bug in their bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=426347

And I would like to see it in portage tree ASAP. @gnome give me your bless please to commit updated ebuild for gnome-spell. At least I've checked and with this patch everything works as expected. Thank you.

Seems that to them moment I'll have to revert stabilization of enchant-1.4.2 since it breaks stable systems.
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2009-01-29 10:48:50 UTC
Created attachment 180067 [details, diff]
gnome-spell-1.0.8-enchant-updated.patch
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2009-01-29 10:50:49 UTC
Created attachment 180068 [details, diff]
gnome-spell-1.0.8.ebuild.patch
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-29 10:56:44 UTC
looks like it's something to apply over the current gnome-spell-1.0.8-enchant.patch. Could you attach a diff over the current src_unpack of gnome-spell-1.0.8 ?
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2009-01-29 11:24:33 UTC
(In reply to comment #10)
> looks like it's something to apply over the current
> gnome-spell-1.0.8-enchant.patch. 

In place. And ebuild patch attached above. Thanks in advance for review.
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-08 22:23:49 UTC
given the patch size, I'm currently waiting for distfiles-local sync. ping my back  tomorrow.
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-09 22:30:04 UTC
in tree as 1.0.8-r1.