Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278927 - www-client/firefox-5.0: spellchecker doesn't work with myspell-* package.
Summary: www-client/firefox-5.0: spellchecker doesn't work with myspell-* package.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-07-24 14:05 UTC by Jacek Sowiński
Modified: 2011-06-27 00:42 UTC (History)
3 users (show)

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


Attachments
1002_fix-system-hunspell-dict-detection.patch (1002_fix-system-hunspell-dict-detection.patch,3.33 KB, text/plain)
2010-04-07 03:58 UTC, Jory A. Pratt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Sowiński 2009-07-24 14:05:02 UTC
Spellchecker from mozilla-firefox-3.5.1, after upgrade from 3.0.11, doesn't use the myspell-*. The 'spellchecker.dictionary' variable is fixed with 'en-US' value — if it's changed with 'pl-PL' for instance, it changes back as soon as browser opens some page with 'textarea' object.

If dictionary is installed as an addon (.xpi file from addons.mozilla.org), spellchecker works.

Reproducible: Always

Steps to Reproduce:
1. # emerge myspell-pl (change 'pl' with your desired language).
2. Set 'spellchecker.dictionary' to 'pl-PL'.
3. Try to write something in any textarea and look for proper spellchecking.

Actual Results:  
Spellchecker doesn't work.


Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Sempron-tm-_2800+-with-glibc2.0
Timestamp of tree: Thu, 23 Jul 2009 12:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ "
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage/layman/sunrise /usr/local/portage/layman/emdzientoo /usr/local/portage/layman/mozilla /usr/local/portage"
SYNC="rsync://88.156.78.16/gentoo-portage"
USE="3dnow 3dnowext X acl alsa bash-completion berkdb bluetooth bzip2 cairo cdparanoia cli cracklib crypt cups dbus djvu dri dvd dvdr dvi exif fam ffmpeg flac fortran gdbm gnome gnutls gpm gtk gtkhtml hal iconv imap ipv6 isdnlog jabber java java6 jingle jpeg lame latex lcms libnotify maildir midi mmx mmxext mozilla mp3 mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png pppd python qt4 readline reflection session spell spl sqlite3 sse ssl svg sysfs tcpd theora truetype unicode usb vim-syntax vorbis win32codecs x86 xft xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 authz_host autoindex cache deflate dir disk_cache env expires file_cache filter headers info log_config logio mime mime_magic negotiation rewrite vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl 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
Comment 1 Jory A. Pratt gentoo-dev 2009-08-02 00:48:08 UTC
Is this still an issue with 3.5.1-r1?
Comment 2 Jacek Sowiński 2009-08-02 23:03:02 UTC
(In reply to comment #1)
> Is this still an issue with 3.5.1-r1?

Yes, and with 3.5.1-r2 too.

Comment 3 Giacomo Perale 2009-08-27 21:36:04 UTC
I have the same problem with 3.5.2-r1 (missing Italian dictionary, works with all the other applications using hunspell directly or through enchant/gtkspell).
Comment 4 Jacek Sowiński 2009-11-12 22:02:42 UTC
Bug is still present with 3.5.4 and 3.5.5. Icecat 3.5.5 and 3.5.4 is also affected by this issue.

Any progress or even some thoughts?
Comment 5 Ulrich Müller gentoo-dev 2009-12-23 16:46:59 UTC
Bug still exists in 3.5.6.
Comment 6 Jacek Sowiński 2010-01-20 14:32:23 UTC
Bug still exists in 3.5.7
Comment 7 Ulrich Müller gentoo-dev 2010-02-15 16:23:43 UTC
Adding the following line to src_install fixes the issue for me (tested with 3.5.7):

    dosym ../../share/myspell "${MOZILLA_FIVE_HOME}"/dictionaries
Comment 8 Jacek Sowiński 2010-02-16 01:00:28 UTC
(In reply to comment #7)
> Adding the following line to src_install fixes the issue for me (tested with
> 3.5.7):
> 
>     dosym ../../share/myspell "${MOZILLA_FIVE_HOME}"/dictionaries

Same here, tested with 3.5.6.

The only difference is that, now the 'spellchecker.dictionary' option must be set to: pl_PL instead of pl-PL

Thanks!
Comment 9 Jacek Sowiński 2010-02-23 22:46:44 UTC
(In reply to comment #7)
> Adding the following line to src_install fixes the issue for me (tested with
> 3.5.7):
> 
>     dosym ../../share/myspell "${MOZILLA_FIVE_HOME}"/dictionaries
> 

This resolution works also with 3.5.8.
Comment 10 Jory A. Pratt gentoo-dev 2010-03-07 00:43:19 UTC
I begin to think that, you guys don't read bugzilla. #278927 - resolution is there in ONE (1) line and no answer from moz-team - even 'won't fix cause we do have more important things at the moment or we're just lazy'. Bye


This is not how you get a bug fixed. There are better ways to go about this. I have been looking at hunspell which should know where its dictionaries are and handle it. If I can not find a resolution via hunspell I will concider using a symlink. 

P.S. mruwek your social outbursts and unjust comments we can do with out. I have a job that I have to put ahead of gentoo development.
Comment 11 Jory A. Pratt gentoo-dev 2010-04-05 04:21:57 UTC
Fixed in 1.9.2.2-r2 xulrunner, I will be making fix avaliable in tb-3.1 as well. thanks for your patients please let me know if any other problems arise.
Comment 12 Jory A. Pratt gentoo-dev 2010-04-06 01:34:29 UTC
I have to reopen bug for now, I will be reworking a few parts of the patch over next few days and will recommit when I am done. Thanks for your patients and hope to have this resolved in next few days for sure.
Comment 13 Jacek Sowiński 2010-04-06 14:37:42 UTC
net-libs/net-libs/xulrunner-1.9.2.3 doesn't compile:

mozSpellCheckerFactory.cpp:44:36: error: mozHunspellDirProvider.h: No such file or directory
mozSpellCheckerFactory.cpp: In function 'nsresult mozHunspellDirProviderConstructor(nsISupports*, const nsIID&, void**)':
mozSpellCheckerFactory.cpp:73: error: 'mozHunspellDirProvider' was not declared in this scope
mozSpellCheckerFactory.cpp:73: error: 'inst' was not declared in this scope
mozSpellCheckerFactory.cpp:73: error: expected type-specifier before 'mozHunspellDirProvider'
mozSpellCheckerFactory.cpp:73: error: expected `;' before 'mozHunspellDirProvider'
mozSpellCheckerFactory.cpp: At global scope:
mozSpellCheckerFactory.cpp:137: error: 'HUNSPELLDIRPROVIDER_CID' was not declared in this scope
mozSpellCheckerFactory.cpp:138: error: 'mozHunspellDirProvider' has not been declared
mozSpellCheckerFactory.cpp:140: error: 'mozHunspellDirProvider' has not been declared
mozSpellCheckerFactory.cpp:141: error: 'mozHunspellDirProvider' has not been declared

full build.log attached
Comment 14 Jacek Sowiński 2010-04-06 15:26:03 UTC
(In reply to comment #13)
> full build.log attached

http://pliki.mruwek.pl/gentoo-bugs/278927-build.log
Comment 15 Jory A. Pratt gentoo-dev 2010-04-07 03:58:41 UTC
Created attachment 226813 [details]
1002_fix-system-hunspell-dict-detection.patch

Please test this if all is fine I will land it tomorrow, will apply to 1.9.2.3
Comment 16 Jory A. Pratt gentoo-dev 2010-04-08 04:31:03 UTC
All fixed in xulrunner-1.9.2.3-r1 and tb-3.0.4 :) Hope that helps folks, tb-3.0.4 will be going stable over the next few days so all reports good and or bad are needed.
Comment 17 Jacek Sowiński 2010-04-08 16:37:52 UTC
It compiles, it works. Thanks.
Comment 18 Ulrich Müller gentoo-dev 2011-06-26 17:06:24 UTC
Reopening, as it's again not working in firefox-5.0.
Why does this issue reappear for every new firefox version? :(
Comment 19 Jory A. Pratt gentoo-dev 2011-06-27 00:42:43 UTC
Thanks for reopening I have done a -r1 which has the support for ppc as well so thanks for reporting.