GNOME Bugzilla – Bug 506506
--disable-gtk-doc does not work
Last modified: 2008-03-20 19:39:49 UTC
goffice 0.6.1 fails to compile without gtk-doc even when --disable-gtk-doc is set.
i can confirm this ... gtk-doc has to be installed inf version 1.9 for goffice to install... even when you pass --disable-gtk-doc
Created attachment 102145 [details] [review] Patch It's not the compile that fails, but "make install" which does. The problem is a shell script fragment in gtk-doc.make (and through it, docs/reference/Makefile.in) whose logic is slightly broken. It assumes that cmd1 && cmd2 is identical to if cmd1; then cmd2; fi but the error handling for them is different: if cmd1 fails, $? will be set to non-zero after "cmd1 && cmd2" whereas it will be zero after "if cmd1; then cmd2; fi". The issue is fixed when things are regenerated with a newer version of gtk-doc-tools. For the 0.6.1 release, this patch fixes this issue. (Aside from systems like Solaris which are affected by the related bug #502410)
*** Bug 505068 has been marked as a duplicate of this bug. ***
I haven't managed to find out where the gtk-doc.make with broken error handling came from exactly, but http://svn.gnome.org/viewvc/goffice?view=revision&revision=2027 will hopefully prevent the broken version from being used when producing new release tarballs.
That's too crude. It will prevent me from building, for example.
It can probably be loosened (or perhaps even dropped) if we knew more about the problematic gtk-doc-tools version that was used in creating the 0.6.1 tarball. Jody, can you enlighten us on this?
JHM: Can't we just look at the generated Makefile and see if it is right?
I'd be happier if the build system itself would take care of things, but sure, it can be checked manually.
JHM: Please test svn trunk. 2008-01-24 Morten Welinder <terra@gnome.org> * autogen.sh: Replace last change with a final test for the actual bug in question.
trunk's autogen.sh works fine for me with gtk-doc 1.9 and breaks off properly when I fake having the broken gtk-doc installed, so I'm happy with this approach.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.