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 509539 - Building documentation aborts when no .types file is present
Building documentation aborts when no .types file is present
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.9
Other Linux
: Normal normal
: 1.10
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-15 03:12 UTC by Matthew Barnes
Modified: 2008-01-21 15:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Barnes 2008-01-15 03:12:16 UTC
The transition from this logic (revision 484)

   http://svn.gnome.org/viewvc/gtk-doc/trunk/gtk-doc.make?r1=484&r2=489

to this logic (revision 491)

   http://svn.gnome.org/viewvc/gtk-doc/trunk/gtk-doc.make?r1=489&r2=491

appears to have broken support in dist-hook for modules that do not use a $(DOC_MODULE).types file.  This causes "make dist" to break.

In my case, I can't run "make dist" on Evolution-Data-Server using Gtk-Doc 1.9 because the Camel API documentation does not have a camel.types file.
Comment 1 Matthew Barnes 2008-01-15 03:41:31 UTC
The problem can be worked around by creating an empty "types" file.

  e.g. touch evolution-data-server/docs/references/camel/camel.types

It just so happens GLib already has an empty glib.types that looks like it's been there forever, which may explain why this problem wasn't reported earlier.
Comment 2 Matthew Barnes 2008-01-15 03:56:32 UTC
Lowering the severity to 'normal' since a simple workaround exists.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2008-01-16 07:14:59 UTC
does this help:
-cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
-cp $(srcdir)/$(DOC_MODULE)-sections.txt
+-cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
+-cp $(srcdir)/$(DOC_MODULE)-sections.txt

(adding - to both cp commands)?
Comment 4 Matthew Barnes 2008-01-16 10:39:23 UTC
I'm not sure, what does that do exactly?
Comment 5 Matthew Barnes 2008-01-16 10:57:02 UTC
Nevermind, I looked it up in the make manual.  Yes, that works fine.
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2008-01-17 13:16:47 UTC
2008-01-17  Stefan Kost  <ensonic@users.sf.net>

	* gtk-doc.make:
	* gtk-doc.notmpl.make:
	  Don't fail in dist when no .types file is present. Fixes #509539.

Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2008-01-21 15:42:25 UTC
*** Bug 510651 has been marked as a duplicate of this bug. ***