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

Bug 97154

Summary: gmime-2.1.15-r1 +doc build failure: No rule to make target `tmpl/*.sgml', needed by `sgml-build.stamp'.
Product: Gentoo Linux Reporter: Ed Catmur <ed>
Component: [OLD] LibraryAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Linux   
URL: http://bugzilla.gnome.org/show_bug.cgi?id=156643
Whiteboard:
Package list:
Runtime testing required: ---

Description Ed Catmur 2005-06-26 18:23:25 UTC
touch tmpl-build.stamp
make[3]: *** No rule to make target `tmpl/*.sgml', needed by `sgml-build.stamp'.  Stop.
make[3]: Leaving directory `/var/tmp/portage/gmime-2.1.15-r1/work/gmime-2.1.15/docs/reference'
make[2]: *** [all-recursive] Error 1

Googling for the error throws up the gnome bug http://bugzilla.gnome.org/show_bug.cgi?id=156643 as linked above.
It seems to be a bug in gtk-doc.make that is triggered in a few corner cases.

Suggested fix: in src_unpack, add:

    sed -i -e 's!\<\(tmpl-build.stamp\): !\1 $(srcdir)/tmpl/*.sgml: !' \
        gtk-doc.make docs/reference/Makefile.in || die "sed failed (3)"

This is the patch as in the above linked gnome bug. By patching docs/reference/Makefile.in we avoid having to run automake.

This fix works for me.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-06-28 17:07:39 UTC
Fixed in CVS, thanks!