gtk-spell 2.0.4 tries to use gtk-doc and if it's not installed it fails. I made an ebuild which disables it if you don't have doc in your use flags.
Created attachment 9051 [details] gtk-doc fix this is the ebuild
i don't understand, first of all it's autodetect so it shouldnt matter. Second i tried building without docs (i saw it was there), but that didn't work. Either i was very asleep or something changed overnight.
nope i can confirm that your ebuild does not allow me to disable the docs either, so there's not much point putting it in. You say it breaks when you don't have gtk-doc around ?
I can confirm Jordan's results. Without gtk-doc, I get the following errors from gtkspell-2.0.4: Making all in docs make[2]: Entering directory `/var/tmp/portage/gtkspell-2.0.4/work/gtkspell-2.0.4 /docs' *** Scanning header files *** if grep -l '^..*$' ./gtkspell.types > /dev/null ; then \ CC="/bin/sh ../libtool --mode=compile gcc" LD="/bin/sh ../libtool --mode=lin k gcc" CFLAGS="" LDFLAGS="" gtkdoc-scanobj --module=gtkspell --output-dir=. ; \ else \ cd . ; \ for i in gtkspell.args gtkspell.hierarchy gtkspell.interfa ces gtkspell.prerequisites gtkspell.signals ; do \ test -f $i || touch $i ; \ done \ fi cd . && \ gtkdoc-scan --module=gtkspell --source-dir=../gtkspell --ignore-headers="" /bin/sh: gtkdoc-scan: command not found make[2]: *** [scan-build.stamp] Error 127 make[2]: Leaving directory `/var/tmp/portage/gtkspell-2.0.4/work/gtkspell-2.0.4/ docs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gtkspell-2.0.4/work/gtkspell-2.0.4' make: *** [all-recursive-am] Error 2 !!! ERROR: app-text/gtkspell-2.0.4 failed. !!! Function src_compile, Line -229, Exitcode 2 !!! compile failure If I use Jordan's patched ebuild, gtkspell appears to build and install properly: palmer / # qpkg -l gtkspell app-text/gtkspell-2.0.4 * CONTENTS: /usr /usr/lib /usr/lib/libgtkspell.so.0.0.0 /usr/lib/libgtkspell.so.0 -> libgtkspell.so.0.0.0 /usr/lib/libgtkspell.so -> libgtkspell.so.0.0.0 /usr/lib/libgtkspell.la /usr/lib/libgtkspell.a /usr/lib/pkgconfig /usr/lib/pkgconfig/gtkspell-2.0.pc /usr/include /usr/include/gtkspell-2.0 /usr/include/gtkspell-2.0/gtkspell /usr/include/gtkspell-2.0/gtkspell/gtkspell.h /usr/share /usr/share/gtk-doc /usr/share/gtk-doc/html /usr/share/gtk-doc/html/gtkspell /usr/share/gtk-doc/html/gtkspell/cha-tutorial.html /usr/share/gtk-doc/html/gtkspell/chapter-tutorial.html /usr/share/gtk-doc/html/gtkspell/gtk-running.html /usr/share/gtk-doc/html/gtkspell/gtkspell-gtkspell.html /usr/share/gtk-doc/html/gtkspell/index.html /usr/share/gtk-doc/html/gtkspell/reference.html /usr/share/gtk-doc/html/gtkspell/tutorial-autoconf.html /usr/share/gtk-doc/html/gtkspell/tutorial-building.html /usr/share/gtk-doc/html/gtkspell/tutorial.html /usr/share/gtk-doc/html/gtkspell/index.sgml /usr/share/doc /usr/share/doc/gtkspell-2.0.4 /usr/share/doc/gtkspell-2.0.4/AUTHORS.gz /usr/share/doc/gtkspell-2.0.4/NEWS.gz /usr/share/doc/gtkspell-2.0.4/ChangeLog.gz /usr/share/doc/gtkspell-2.0.4/README.gz palmer / # emerge info Portage 2.0.47-r8 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7) ================================================================= System uname: 2.4.20-ck4 i686 Transmeta(tm) Crusoe(tm) Processor TM5800 GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss apm avi crypt cups encode jpeg libg++ mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb cdr esd gdbm gif gnome-libs gpm gtk imlib java libwww motif nls oggvorbis opengl pam png python readline sdl snmp ssl svga tcpd X -3dnow apache2 -arts bonobo dga dvd ethereal fbcon gnome gtk2 gtkhtml guile -kde lcms -mikmod mozilla moznoirc moznomail moznocompose mysql nas odbc pcmcia pda perl pic plotutils pnp -qt -qtmt samba -slang smooth tcltk tetex tiff trusted usb xml" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -march=i686 -O3 -pipe" CXXFLAGS="-mcpu=i686 -march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache digest"
then this packs config is pretty broken
Tristan's problem is the same exact one I had. It appears it installs files in /usr/share/gtk-doc whether or not you have gtk-doc installed, and without --disable-gtk-doc it also tries to run gtkdoc-scan.
so that means we either have to hack the config script to behave or always dep on gtk-doc (which isn't really nice either).
I'm not sure why the ebuild I provided wouldn't be enough, as it's not the only thing that installed html files in /usr/share/gtk-doc even though I don't have doc in USE. There's also other ebuilds that disable/enable gtk-doc the way I did (mr.project and libgsf are some I've found.) I'm not very familiar with editing config scripts but I'm taking a look at it anyway. It seems silly to require gtk-doc as it works fine with --disable-gtk-doc.
Created attachment 9140 [details, diff] patch to configure this is a patch to configure. It checks if gtkdoc-scan is around and if it's not it disables gtkdoc. It uses type -p to check for gtkdoc-scan.
ok, fixed. the real culprit was a declaration in configure(.ac) . Now the switch actually works like it should.