Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316129 - kde-base/kdelibs-4.4.2: make aspell/hunspell optional
Summary: kde-base/kdelibs-4.4.2: make aspell/hunspell optional
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
Depends on:
Blocks: 313999
  Show dependency tree
Reported: 2010-04-19 16:34 UTC by Aleister
Modified: 2010-06-05 21:50 UTC (History)
2 users (show)

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

diff against in tree kdelibs-4.4.2 (kdelibs-4.4.2.diff,156 bytes, patch)
2010-04-19 16:35 UTC, Aleister
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aleister 2010-04-19 16:34:15 UTC
i noticed that kdelibs depends on enchant and enchant can use either aspell or hunspell as backends. To cut it short i modified the kdelibs-4.4.2 ebuild to either require hunspell or aspell set for enchant, when the spell flag is set for kdelibs.Did a recompile(with hunspell set and -aspell for enchant) and cleaned aspell of the system and checked that it works and it did. Small but important fix to avoid having 2 spell checking libs installed ;)  

Reproducible: Always

emerge --info
Portage (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 19 Apr 2010 01:15:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -march=native -fstack-protector"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fstack-protector"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs 3 --load-average 6"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch usersandbox"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/x11"
USE="X acl alsa amd64 bash-completion bzip2 cli cracklib crypt custom-cflags cxx dbus dri dvd fortran gallium gdbm gpm hal iconv kde lzma minimal mmx mmxext modules mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre pppd qt3support qt4 readline reflection semantic-desktop session spl sse sse2 ssl ssse3 sysfs system-sqlite tcpd theora threads truetype unicode vorbis x264 xcb xinerama xorg xscreensaver zeroconf 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 
Comment 1 Aleister 2010-04-19 16:35:03 UTC
Created attachment 228415 [details, diff]
diff against in tree kdelibs-4.4.2
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-05-12 19:00:58 UTC
Enchant abstracts spell checking backend I guess it should just depend on enchant...
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2010-05-16 13:02:13 UTC
So, does anyone remember what the reason was for the hardcoded dependency on an english language dictionary (app-dicts/aspell-en)?
Comment 4 Maciej Mrozowski gentoo-dev 2010-06-05 21:23:52 UTC
Hunspell support is disabled in source code explicitly.

Available Sonnet backends are:
- aspell
- enchant
- hpell

I don't see a point it installing multiple backends - only enchant backend will be installed, that should satisfy both aspell and hspell lovers (as it's dictionary wrapper library as pva noted).
Comment 5 Maciej Mrozowski gentoo-dev 2010-06-05 21:50:48 UTC
Fixed (in 4.4.2, 4.4.3 and above), thanks for reporting, indeed this issue needed to be sorted out.