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"
by the way, this might explain bug #3048.
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.
patch ?
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
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 ?
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.
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.
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.
i added this patch to my 2.2.7 ebuild, and will be testing it soon.
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!