Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16997 - gtkspell 2.0.4 wants gtk-doc
Summary: gtkspell 2.0.4 wants gtk-doc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-06 19:51 UTC by Jordan
Modified: 2003-03-08 17:07 UTC (History)
0 users

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


Attachments
gtk-doc fix (gtkspell-2.0.4-r1.ebuild,757 bytes, text/plain)
2003-03-06 19:52 UTC, Jordan
Details
patch to configure (dirty.patch,296 bytes, patch)
2003-03-08 15:09 UTC, Jordan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan 2003-03-06 19:51:43 UTC
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.
Comment 1 Jordan 2003-03-06 19:52:11 UTC
Created attachment 9051 [details]
gtk-doc fix

this is the ebuild
Comment 2 foser (RETIRED) gentoo-dev 2003-03-07 07:00:05 UTC
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.
Comment 3 foser (RETIRED) gentoo-dev 2003-03-07 08:45:58 UTC
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 ?
Comment 4 Tristan Henderson 2003-03-07 11:38:42 UTC
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"
Comment 5 foser (RETIRED) gentoo-dev 2003-03-07 11:59:41 UTC
then this packs config is pretty broken
Comment 6 Jordan 2003-03-07 12:47:38 UTC
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.
Comment 7 foser (RETIRED) gentoo-dev 2003-03-08 14:07:12 UTC
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).
Comment 8 Jordan 2003-03-08 15:04:04 UTC
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.
Comment 9 Jordan 2003-03-08 15:09:30 UTC
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.
Comment 10 foser (RETIRED) gentoo-dev 2003-03-08 17:07:47 UTC
ok, fixed. the real culprit was a declaration in configure(.ac) . Now the switch actually works like it should.