Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 16997
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jordan <xero@xeron.cc>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gtkspell-2.0.4-r1.ebuild gtk-doc fix text/plain Jordan 2003-03-06 19:52 0000 757 bytes Details
dirty.patch patch to configure patch Jordan 2003-03-08 15:09 0000 296 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 16997 depends on: Show dependency tree
Bug 16997 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-03-06 19:51 0000
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 From Jordan 2003-03-06 19:52:11 0000 -------
Created an attachment (id=9051) [details]
gtk-doc fix

this is the ebuild

------- Comment #2 From foser (RETIRED) 2003-03-07 07:00:05 0000 -------
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 From foser (RETIRED) 2003-03-07 08:45:58 0000 -------
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 From Tristan Henderson 2003-03-07 11:38:42 0000 -------
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 From foser (RETIRED) 2003-03-07 11:59:41 0000 -------
then this packs config is pretty broken

------- Comment #6 From Jordan 2003-03-07 12:47:38 0000 -------
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 From foser (RETIRED) 2003-03-08 14:07:12 0000 -------
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 From Jordan 2003-03-08 15:04:04 0000 -------
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 From Jordan 2003-03-08 15:09:30 0000 -------
Created an attachment (id=9140) [details]
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 From foser (RETIRED) 2003-03-08 17:07:47 0000 -------
ok, fixed. the real culprit was a declaration in configure(.ac) . Now the
switch actually works like it should.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug