After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 392411 - can't conditionally call GNOME_DOC_INIT
can't conditionally call GNOME_DOC_INIT
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
git master
Other All
: Normal normal
: 3.2.0
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
: 402416 (view as bug list)
Depends on: 392424
Blocks:
 
 
Reported: 2007-01-03 18:50 UTC by Christian Persch
Modified: 2007-02-17 13:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (2.03 KB, patch)
2007-01-25 21:04 UTC, Christian Persch
none Details | Review
alternative patch (2.10 KB, patch)
2007-01-25 22:31 UTC, Christian Persch
none Details | Review
simplified patch (2.05 KB, patch)
2007-01-31 14:24 UTC, Christian Persch
committed Details | Review

Description Christian Persch 2007-01-03 18:50:12 UTC
From configure.in:

dnl ================================================================
dnl   GNOME User Manual (requires gnome-doc-utils)
dnl ================================================================
AC_ARG_ENABLE(user_manual,
[  --enable-user-manual   Build GNOME user manual],
        enable_user_manual=yes, enable_user_manual=no)

if test x"$enable_user_manual" = "xyes"; then
GNOME_DOC_INIT
[...]

That doesn't work, since GNOME_DOC_INIT uses AM_CONDITIONAL which must not be called conditionally.
Comment 1 Christian Persch 2007-01-25 21:04:09 UTC
Created attachment 81222 [details] [review]
proposed patch
Comment 2 Vincent Geddes 2007-01-25 21:35:32 UTC
hey, thanks

Just one issue though, we now think it would be better if the docs building is enabled by default (since no-one is actually building and reading the user manual, including the Ubuntu package maintainers).

Would it be possible if you could remove the AC_ARG_ENABLE macro? All we need is for GNOME_DOC_INIT to fail gracefully if gnome-doc-utils is not found.
Comment 3 Christian Persch 2007-01-25 22:31:00 UTC
Created attachment 81231 [details] [review]
alternative patch

This patch removes the --enable-user-manual option.
Comment 4 Tristan Van Berkom 2007-01-30 15:40:03 UTC
*** Bug 402416 has been marked as a duplicate of this bug. ***
Comment 5 Christian Persch 2007-01-31 14:24:01 UTC
Created attachment 81593 [details] [review]
simplified patch
Comment 6 Wouter Bolsterlee (uws) 2007-02-08 10:52:21 UTC
I hit this problem as well. Can someone apply the patch from comment #5?

| $ ./autogen.sh --prefix /opt/gnome-2-18  --disable-static --enable-gtk-doc
| [large chunks left out]
| configure: error: conditional "HAVE_GNOME_DOC_UTILS" was never defined.
| Usually this means the macro was only invoked conditionally.
Comment 7 Vincent Geddes 2007-02-08 18:56:34 UTC
This patch depends on the latest version of gnome-doc-utils, which we thought was not released yet. Thanks for reminding us though, as it looks like a new version was released on the 2007-01-29. So we should certainly apply the patch then.

Tristan, can I apply the patch?
Comment 8 Tristan Van Berkom 2007-02-13 15:36:45 UTC
Sure, go ahead Vincent or Christian ...
Comment 9 Christian Persch 2007-02-13 15:45:47 UTC
        * Makefile.am:
        * configure.ac: Call GNOME_DOC_INIT unconditionally. Bug #392411.
Comment 10 Tristan Van Berkom 2007-02-13 16:19:57 UTC
Just for the record (and since alot was said and I dont
remember clearly)... this patch doesnt require anybody to
have g-d-u right ?

If I dont have g-d-u installed, I should not be forced to know
about some kind of --disable-g-d-u argument, it should just
kindly say "didnt find g-d-u, dont really care, moving on
and building glade...".

Can you just confirm that for me one last time ?
Comment 11 Nickolay V. Shmyrev 2007-02-17 01:55:29 UTC
chpe, it's broken now:

Makefile.am:3: HAVE_GNOME_DOC_UTILS does not appear in AM_CONDITIONAL
Comment 12 Christian Persch 2007-02-17 02:32:02 UTC
Are you sure you have gdu >= 0.9.0 ?
Comment 13 Nickolay V. Shmyrev 2007-02-17 09:45:12 UTC
For sure not. But shouldn't gnome-autogen.sh check for them? Well, let's close this, we have enough work to do.
Comment 14 Christian Persch 2007-02-17 13:52:06 UTC
I see the problem. configure checks for 0.9.0, but autogen fails before that, because of the incompatibility. I added the required version to autogen.

        * autogen.sh: Set the required gdu version in autogen too. Bug
        #392411.