Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234519 - net-im/pidgin-2.4.3 spellcheck no longer works. USE flag is enabled
Summary: net-im/pidgin-2.4.3 spellcheck no longer works. USE flag is enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-12 01:33 UTC by Sumit Khanna
Modified: 2010-10-21 09:58 UTC (History)
4 users (show)

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


Attachments
Pidgin debug out (pidgin_debug.out,71.29 KB, text/plain)
2008-08-17 17:35 UTC, Sumit Khanna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Khanna 2008-08-12 01:33:24 UTC
Misspelled words are no longer highlighted in Pidgin. I'm not sure what version it stopped working in but I'm currently at 2.4.3. The spell useflag is enabled for the application and the box to enable it in Preferences>Highlight Misspelled Words is checked. My LANG is set to en_US and aspell works from the command line.

Reproducible: Always




raphael ~ # emerge --info
WARNING: repository at /usr/local/portage is missing a repo_name entry
Portage 2.2_rc6 (default-linux/amd64/2006.1/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.24-gentoo-r3-x86_64-Intel-R-_Pentium-R-_D_CPU_2.80GHz-with-glibc2.2.5
Timestamp of tree: Tue, 12 Aug 2008 01:07:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r4, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62-r1
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.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=nocona"
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/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
LINGUAS="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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi aim alsa amd64 audiofile berkdb bluetooth browserplugin bzip2 cairo cdinstall cdparanoia cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emboss emul-linux-x86 encode exif fam ffmpeg firefox flac fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv ipv6 isdnlog java jpeg kde ldap lirc log4j mad matroska midi mikmod mono mp3 mpeg msn mudflap mysql ncurses nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl openmp pam pcre pda pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection rtc samba sdl seamonkey session spell spl ssl svg tcpd theora truetype unicode usb vcd vorbis wmf xinerama xml xorg xscreensaver xv xvid yahoo 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="logitech" USERLAND="GNU" VIDEO_CARDS="nvidia trident"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michal Kurgan (RETIRED) gentoo-dev 2008-08-12 05:16:16 UTC
Could you provide information about all your USE flags for pidgin?
Could you try to run pidgin with "pidgin --debug" from termninal to see if there are problems there?

Reopen with this info, if still have problems.
Comment 2 Nicholas Doyle 2008-08-14 14:22:22 UTC
I am having the same problem. I'll give you the information you asked for from my machine. No amount of remerging of gtkspell or pidgin seems to fix it.


USE:
net-im/pidgin-2.4.3  USE="dbus eds gnutls gstreamer gtk meanwhile ncurses nls perl spell tk -bonjour -debug -doc -gadu -groupwise -networkmanager -prediction -qq -sasl -silc -tcl -zephyr"


Relevant debug output:
plugins: probing /usr/lib/pidgin/spellchk.so
gtkspell: Failed to setup GtkSpell: enchant error for language: en
Comment 3 Sumit Khanna 2008-08-17 17:35:24 UTC
Created attachment 163120 [details]
Pidgin debug out
Comment 4 Sumit Khanna 2008-08-17 17:42:44 UTC
I am getting the same error in my debug out. On top of that, this is affecting other GTK apps. gedit spell check doesn't work either (it marks every word as wrong and offers no suggestions). It seems to be a gtk-spell problem. 

Here are my use flags:

net-im/pidgin-2.4.3  USE="dbus eds gstreamer gtk ncurses nls perl spell -bonjour -debug -doc -gadu -gnutls -groupwise -meanwhile -networkmanager -prediction -qq -sasl -silc -tcl -tk -zephyr"

If I run aspell -a by itself, it works fine, so the En dictionary is installed, gtk-spell just can't pick it up for some reason.

I've also attached the pidgin debug out. I'm re-opening this bug. 
Comment 5 Michal Kurgan (RETIRED) gentoo-dev 2008-08-17 18:38:21 UTC
Thanks for all information.

One more question:
(13:35:49) gtkspell: Failed to setup GtkSpell: enchant error for language: en_US

This appears to be enchant error (it is engine used by GtkSpell). Could you just try to rebuild it to see if the helps? It depends on hunspell and there was an update lately.

You can also try revdep-rebuild. If this won't help reopen one more time.
Comment 6 Sumit Khanna 2008-08-19 01:08:34 UTC
did an emerge sync and world, re-emerged enchant and removed /root/.revdep* and ran revdep-rebuild (it found no broken links). I then restarted xdm. Spell check still doesn't work
Comment 7 Eric Gach 2008-08-21 15:58:06 UTC
(In reply to comment #6)
> did an emerge sync and world, re-emerged enchant and removed /root/.revdep* and
> ran revdep-rebuild (it found no broken links). I then restarted xdm. Spell
> check still doesn't work
> 

Try emerging app-dicts/myspell-en and then restart Pidgin. After reading this bug, I ran enchant-lsmod which displayed

myspell (Myspell Provider)

I then checked and there wasn't a myspell-en installed on the system. Once I emerged it and restarted piding, spellchecking worked. I guess it's a missing dependancy somewhere.
Comment 8 Sumit Khanna 2008-08-22 02:01:30 UTC
Well Eric's suggestion worked. I now have spell check back in GTK apps that use enchant. 

My make.conf has LINGUAS="en" in it, so some ebuild somewhere is not pulling that in like it should. Please leave this bug open until the dependency issue is resolved. 
Comment 9 Matthias Liebig 2008-08-30 13:06:32 UTC
I think the problem is that app-text/enchant has the useflags aspell and hunspell whereas aspell is disabled by default. If you set the aspell useflag on enchant you don't need to emerge app-dicts/myspell-en, app-dicts/aspell-en will do fine.
Comment 10 Caleb Cushing 2008-11-17 03:32:13 UTC
upgraded to enchant 1.4.2 with aspell flag fixed my problem

perhaps enchant 1.4.2 could be stabilized because 1.3.0 doesn't allow me to set aspell use flags.
Comment 11 wayne 2009-02-25 20:20:33 UTC
(In reply to comment #9)

look at the enchant ebuild looks broken to me. What do you think?

app-text/enchant/enchant-1.3.0.ebuild looks like a bad ebuild.

> I think the problem is that app-text/enchant has the useflags aspell and
> hunspell whereas aspell is disabled by default. If you set the aspell useflag
> on enchant you don't need to emerge app-dicts/myspell-en, app-dicts/aspell-en
> will do fine.
> 

Comment 12 Kalin KOZHUHAROV 2009-07-08 13:35:59 UTC
I am not sure how the whole *spell - enchant - pidgin system works, but in my setup, I fixed it by creating a custom config in .enchant/enchant.ordering containing only the following line:
*:aspell

I have myspell and aspell and dictionaries installed, but pidgin/enchant seem to be working only with aspell for some reason...

Now I can successfully use:
x11-plugins/purple-plugin_pack-2.5.1   (to be able to switch dicts on the fly)
net-im/pidgin-2.5.8
app-text/enchant-1.4.2
app-text/aspell-0.60.6
app-text/gtkspell-2.0.15  (not sure if it is involved)
app-text/hunspell-1.2.8  (not sure if it is involved)
Comment 13 SpanKY gentoo-dev 2009-12-21 13:41:53 UTC
+1 here ... my pidgin debug said:
... enchant error for language: en_US.UTF8

had to change USE flags in app-text/enchant from "hunspell -aspell" to "-hunspell aspell".  then everything started working.
Comment 14 Alex Lyon 2010-02-18 19:07:27 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > did an emerge sync and world, re-emerged enchant and removed /root/.revdep* and
> > ran revdep-rebuild (it found no broken links). I then restarted xdm. Spell
> > check still doesn't work
> > 
> 
> Try emerging app-dicts/myspell-en and then restart Pidgin. After reading this
> bug, I ran enchant-lsmod which displayed
> 
> myspell (Myspell Provider)
> 
> I then checked and there wasn't a myspell-en installed on the system. Once I
> emerged it and restarted piding, spellchecking worked. I guess it's a missing
> dependancy somewhere.
> 

Thank you Eric, this suggestion worked for me, now all kinds of apps are supporting inline spell checking again.
Comment 15 Peter Volkov (RETIRED) gentoo-dev 2010-10-21 09:58:35 UTC
hunspell differed from aspell that it did not installed dictionaries by default. Currently this is fixed and this issue should be fixed too.