When trying to emerge kde 3.3.0_beta2, kdelibs-3.3.0_beta2 refused to compile, complaining that it could not find aspell.h emergeing aspell and aspell-en fixed the problem. Reproducible: Always Steps to Reproduce: 1. Ensure aspell is not emerged 2. Emerge kdelibs-3.3.0_beta2 3. Emerge fails during compile. Actual Results: In file included from kspell_aspelldict.cpp:21: kspell_aspelldict.h:26:20: aspell.h: No such file or directory {Lots of error stuff about missing pointers} !!! ERROR: kde-base/kdelibs-3.3.0_beta2 failed. !!! Function kde_src_compile, Line 130, Exitcode 2 !!! died running emake, kde_src_compile:make Expected Results: Compiled cleanly! Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-love8) ================================================================= System uname: 2.6.7-love8 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=387 -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=387 -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.mirror.sdv.fr http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://beth/gentoo-portage" USE="3dnow X aac aalib aavm acpi alsa apache2 arts artswrappersuid async avi bzlib cdr crypt cups dga dio doc dv dvd dvdr encode evms2 exif faac faad flac foomaticdb freetype fs gdbm gif gphoto2 gtk2 imap java jikes jpeg kde maildir mmx mozilla mpeg mpi mysql nas nls nocardbus nptl oggvorbis opengl pam pda pdflib perl pic png ppds python qt quicktime readline samba scanner spell sse ssl svga tcltk tcpd tetex tiff truetype unicode usb wmf x86 xml xml2 xmms xv zlib"
strange, ./configure should check if you have aspell and compile kspell_aspelldict only in that case. from configure.in dnl Check for aspell library KDE_CHECK_LIB(aspell, new_aspell_config, [LIBASPELL="-laspell"]) KDE_CHECK_HEADER(aspell.h) if test -z "$ac_cv_header_aspell_h"; then echo "" echo "Your libaspell is too old or not installed, I couldn't find aspell.h." echo "You must download aspell >= 0.50.2, see http://aspell.net" echo "Spell-checking with libaspell will not be available, only with ispell dicts." echo "" fi AM_CONDITIONAL(include_aspell_plugin, test -n "$ac_cv_header_aspell_h" -a -n "$LIBASPELL") you should make it fail again and take a look in /var/tmp/portage/kdelibs-3.3.0_beta2/work/kdelibs-3.2.92/config.log to see what happened
*Looks embarresed* Can't get it to fail now! Remind me to investigate more before posting a bug!
Right configure checks, so you should depend on it conditionally. Add this to DEPEND: spell? ( >=app-text/aspell-0.50.2 )
Added in 3.4.0_beta1