Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61581 - gimp links to gtkhtml even if installed with -gtkhtml use flag
Summary: gimp links to gtkhtml even if installed with -gtkhtml use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Lowest trivial (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-24 17:56 UTC by Colin Macdonald
Modified: 2005-05-23 18:12 UTC (History)
1 user (show)

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


Attachments
configure.in (gimp-2.0.4-respect-nodoc.patch,654 bytes, patch)
2005-03-11 18:15 UTC, Stian Skjelstad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Macdonald 2004-08-24 17:56:17 UTC
I build gimp 2.0.4 with -gtkhtml.  I unmerged libgtkhtml (2.6.2) and ran revdep-rebuild.  It reported the following:
  
  broken /usr/lib/gimp/2.0/plug-ins/helpbrowser (requires libgtkhtml-2.so.0)

It seems gimp links against libgtkhtml even when -gtkhtml is set.

I'm using ~x86 and my emerge info is:
Portage 2.0.50-r10 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.27)
=================================================================
System uname: 2.4.27 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.5.3
distcc 2.17 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.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.ccccom.com http://gentoo.eliteitminds.com ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa apm arts berkdb cdr cjk crypt cups dga directfb dvd emacs encode esd f77 faad fbcon fftw flac gcj gdbm gif gimpprint ginac gnome gphoto2 gpm gstreamer gtk gtk2 guile imlib jack java jpeg ldap leim libg++ libwww lirc live mad matroska mikmod mmx mng motif mozilla mpeg mysql nas ncurses nls objc offensive oggvorbis opengl oss pam pdflib perl plotutils png ppds python qhull qt quicktime radeon readline scanner sdk sdl slang speex spell sse ssl svg tcltk tcpd tetex theora tiff truetype usb v4l video_cards_radeon wxwindows x86 xinerama xml xml2 xmms xosd xv xvid zlib"
Comment 1 Colin Macdonald 2004-08-24 17:58:10 UTC
by the way, this might explain bug #3048.
Comment 2 foser (RETIRED) gentoo-dev 2004-08-25 03:10:36 UTC
yeah.. as the fixme in the ebuild states : some switches are not hardcoded. This is one of them. A patch vs. configure.in would be appreciated.
Comment 3 foser (RETIRED) gentoo-dev 2004-08-29 07:57:53 UTC
patch ?
Comment 4 Stian Skjelstad 2005-03-11 03:38:28 UTC
First... -gtkhtml has no effect, it is -doc that controls this:

      doc? ( =gnome-extra/libgtkhtml-2* )

When it comes to the problem you mention, I'll look into it. Problaby configure.in   problem. Not respecting --without-foo
Comment 5 Stian Skjelstad 2005-03-11 03:42:44 UTC
I have gimp installed after libgtkhtml 2.x and 3.x was emerged, and it haven't linked to it. What USE flags did you emerge gimp with?

What file did revdev-rebuil say required libgtkhtml? /usr/bin/gimp-2.0 ?
Comment 6 Colin Macdonald 2005-03-11 14:51:46 UTC
So long ago, now using gimp-2.2.3:
media-gfx/gimp-2.2.3  -aalib (-altivec) -debug -doc +gimpprint +gtkhtml +jpeg +mmx +mng +png +python +sse +svg +tiff -wmf

ldd /usr/lib/gimp/2.0/plug-ins/helpbrowser  | grep html
        libgtkhtml-2.so.0 => /usr/lib/libgtkhtml-2.so.0 (0xb7e40000)
This seems correct becuase I have +gtkhtml in my use flags

on my desktop, I have -gtkhtml:
media-gfx/gimp-2.2.3  +aalib (-altivec) -debug -doc +gimpprint -gtkhtml +jpeg +mmx +mng +png +python +sse +svg +tiff -wmf
ldd /usr/lib/gimp/2.0/plug-ins/helpbrowser | grep html
        libgtkhtml-2.so.0 => /usr/lib/libgtkhtml-2.so.0 (0x4016d000)
but this should not be because -gtkhtml is set.

I think this was clear in the initial report and foser (Comment #2, #3) pointed out its essentially a known problem, asked me to make a patch to configure.in: unfort. I never got around to learning enough about configure to do that.  Feel free to do it yourself if you wish.
Comment 7 Stian Skjelstad 2005-03-11 18:15:17 UTC
Created attachment 53230 [details, diff]
configure.in

Something like this perhaps. Gimp always installes helpbrowser if gtkdoc found.
This should do the kick. Needs to be checked for correctness.
Comment 8 Stian Skjelstad 2005-04-18 12:14:09 UTC
the masked ebuild for 2.2.6 is even more broken that the stable one. It has use flags for both doc and gtkhtml, none of the --without flags are respected in the configure.in, so either patch configure.in, or make the depencies hard, and not optional, please. Either way is better than the current, with soft-depencies, and broken configure.in.
Comment 9 John N. Laliberte (RETIRED) gentoo-dev 2005-05-10 13:23:49 UTC
i added this patch to my 2.2.7 ebuild, and will be testing it soon.
Comment 10 John N. Laliberte (RETIRED) gentoo-dev 2005-05-23 18:12:29 UTC
I'm closing 9 bugs at once, since these bugs should be fixed in my 2.2.7 ebuild
of the gimp.  ( just committed to the unstable tree ) If you find that your bug
was not fixed in the 2.2.7 ebuild, please open a new bug with what it is or is
not still doing.

Thanks for the attachments and comment, they helped!