Bug 50356

Summary: Autogen fails when gtk-doc (gtkdocize) is not installed and using --disable-gtk-doc
Product: cairo Reporter: U. Artie Eoff <ullysses.a.eoff>
Component: generalAssignee: Carl Worth <cworth>
Status: VERIFIED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: critical    
Priority: medium    
Version: 1.12.2   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description U. Artie Eoff 2012-05-25 09:10:35 UTC
cairo (master) 465319ce828f922edce46b6e7628da543b20d5e4

----

When gtkdocize is not installed and specifying "--disable-gtk-doc" to autogen.sh, autogen.sh fails with the suggestion to install gtk-doc.  However, it does not make sense for autogen.sh to fail this early if the user specifies "--disable-gtk-doc".  autogen.sh should honor the "--disable-gtk-doc" option and not fail.  Not all linux distro flavors have the gtk-doc package.

./autogen.sh --disable-gtk-doc
which: no gtkdocize in ...
*** No GTK-Doc found, please install it ***

The commit that introduced this issue is: http://cgit.freedesktop.org/cairo/commit/autogen.sh?id=7b25b2eb4b83f411935e51ed398cebfb3a9c3c59
Comment 1 Andrea Canciani 2012-05-26 07:14:04 UTC
It should be fixed in cairo master by

commit 38d03ea7488097f2b1194f546bd1331af189b809
Author: Andrea Canciani <ranma42@gmail.com>
Date:   Mon May 14 10:40:49 2012 +0200

    build: Allow autogen-eration on systems without GTK-doc
    
    The autogen.sh script fails if it cannot run gtkdocize. The absence of
    this command should not cause cairo builds to fail, it should only
    prevent the build of its documentation.
    
    Fixes:
    *** No GTK-Doc found, please install it ***
    
    on systems without gtkdoc tools.
    
    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=50356

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.