Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381389 - media-gfx/gimp-2.7.3 needs USE doc, currently hard dependency dev-util/gtk-doc-1
Summary: media-gfx/gimp-2.7.3 needs USE doc, currently hard dependency dev-util/gtk-doc-1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 03:54 UTC by Jeff Kowalczyk
Modified: 2011-09-03 01:18 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Kowalczyk 2011-09-01 03:54:53 UTC
I run ~amd64 USE=-doc, but gimp pulls in gtk-doc unconditionally. This should be corrected to have a doc use var.

$ USE="-udev" emerge gimp -pv
[ebuild  NS    ] app-text/docbook-xml-dtd-4.3-r1 [4.1.2-r6, 4.2-r2, 4.4-r2, 4.5-r1] 82 kB
[ebuild  N     ] dev-util/gtk-doc-1.17  USE="-debug -doc -emacs -highlight -test -vim" 0 kB
[ebuild     U #] media-gfx/gimp-2.7.3 [2.6.11-r2] USE="alsa exif jpeg jpeg2k%* lcms mmx mng pdf png python smp sse svg tiff webkit wmf -aalib (-altivec) -curl -dbus -debug -doc -gnome -udev% -xpm%" 17,780 kB

$ grep -B 4 -A 4 gtk-doc /usr/portage/media-gfx/gimp/gimp-2.7.3.ebuild 
DEPEND="${RDEPEND}
        >=dev-util/pkgconfig-0.22
        >=dev-util/intltool-0.40.1
        >=sys-devel/gettext-0.17
        >=dev-util/gtk-doc-1"


Reproducible: Always
Comment 1 Sebastian Pipping gentoo-dev 2011-09-01 11:33:43 UTC
I actually changed this from 2.6.11 to 2.7.3: to my understanding the configure script checks for gtkdoc unconditionally.  It will need a patch upstream.
Comment 2 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-09-01 15:23:36 UTC
Gimp is not maintained by the GNOME team.
Comment 3 Mart Raudsepp gentoo-dev 2011-09-01 15:56:41 UTC
(In reply to comment #1)
> I actually changed this from 2.6.11 to 2.7.3: to my understanding the configure
> script checks for gtkdoc unconditionally.  It will need a patch upstream.

That's probably a wrong understanding. If you eautoreconf, you probably just need gtk-doc-am, which just installs a perl script for cross-link fixing and the .m4 file you need for the eautoreconf to succeed. And then full gtk-doc only with USE=doc that gets a $(use_enable doc gtk-doc) through gnome2.eclass, as is the case with the old gimp-2.6 ebuilds - they just didn't need to eautoreconf and hence unconditionally need gtk-doc-am. Please check it that way in the light of this information.
Comment 4 Sebastian Pipping gentoo-dev 2011-09-02 14:34:21 UTC
leio, thanks for joining this thread.

It seems to me that even with the lines

  epatch "${FILESDIR}"/${P}-glib-2.29.patch
  eautoreconf

*removed*, (the original/shipped) configure checks for gtk-doc, see this:

  # USE=-doc ebuild gimp-2.7.3.ebuild manifest clean configure |& fgrep -i gtkdoc
  checking for gtkdoc-check... /usr/bin/gtkdoc-check
  checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
  checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
Comment 5 Mart Raudsepp gentoo-dev 2011-09-02 14:36:10 UTC
Ok, but maybe that's fine as long as --enable-gtk-doc isn't passed? Just temporarily remove gtk-doc from your system and see what happens with USE=-doc ?
Comment 6 Sebastian Pipping gentoo-dev 2011-09-02 16:00:08 UTC
(In reply to comment #5)
> Just temporarily remove gtk-doc from your system and see what happens with USE=-doc
> ?

Actually that seems to work.  Fixed, closing.

+  02 Sep 2011; Sebastian Pipping <sping@gentoo.org> gimp-2.7.3.ebuild,
+  gimp-9999.ebuild:
+  Fix dependencies (bug #381389)
+