Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 229781

Summary: x11-libs/gtk+-2.12.9-r2: gtk-doc-am required with USE=-doc
Product: Gentoo Linux Reporter: Daniel Franke <franke.daniel>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Franke 2008-06-27 16:44:46 UTC
x11-libs/gtk+-2.12.9-r2 unconditionally depends on gtk-doc-am (i.e. "Automake files from gtk-doc"). I'd think this package is only needed if USE=doc?

Proposed patch:

--- gtk+-2.12.9-r2.ebuild       2008-06-07 18:10:22.000000000 +0200
+++ gtk+-2.12.9-r3.ebuild       2008-06-27 18:40:26.000000000 +0200
@@ -43,8 +43,8 @@
        x11-proto/inputproto
        x11-proto/damageproto
        xinerama? ( x11-proto/xineramaproto )
-       >=dev-util/gtk-doc-am-1.8
        doc? (
+                       >=dev-util/gtk-doc-am-1.8
                        >=dev-util/gtk-doc-1.8
                        ~app-text/docbook-xml-dtd-4.1.2
                 )"


Reproducible: Always

Steps to Reproduce:
Comment 1 Daniel Franke 2008-06-27 16:50:50 UTC
Ok, alway test first, then holler.

With above patch, merging fails with:

gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
gtk-doc.make:48: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
gtk-doc.make:153: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
gtk-doc.make:48: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
gtk-doc.make:153: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
gtk-doc.make:48: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
gtk-doc.make:153: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL

Why is this messing around necessary? Isn't there any "easy" way to not build the docs?
Comment 2 Rafał Mużyło 2008-06-27 19:41:57 UTC
No, gtk-doc-am was invevted, cause otherwise,
you'd have to manually remove gtk doc macro from each configure.in/configure.ac
using it when USE=-doc.

So this seems invalid.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-27 22:10:46 UTC
^^