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 682077 - Build manual with xsltproc instead of docbook2html
Build manual with xsltproc instead of docbook2html
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
git master
Other All
: Normal enhancement
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-17 09:31 UTC by LRN
Modified: 2013-04-09 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[common] Build html manual with xsltproc, images are optional (985 bytes, patch)
2012-08-17 09:32 UTC, LRN
none Details | Review
[common] Support XML_CATALOG_FILES (1.18 KB, patch)
2012-08-17 09:33 UTC, LRN
committed Details | Review
[core] Use xlstproc instead of docbook2html (2.14 KB, patch)
2012-08-17 09:33 UTC, LRN
needs-work Details | Review
[core] Move unused state-diagram out of the way. (3.84 KB, patch)
2012-08-17 09:33 UTC, LRN
none Details | Review
Don't need docbook2html anymore (898 bytes, patch)
2013-04-03 13:05 UTC, LRN
needs-work Details | Review
Don't need docbook2html anymore, need xlstproc (2.42 KB, patch)
2013-04-03 17:50 UTC, LRN
committed Details | Review
Use xsltproc instead of docbook2html (v2) (1.71 KB, patch)
2013-04-03 17:53 UTC, LRN
committed Details | Review

Description LRN 2012-08-17 09:31:30 UTC
docbook2html is difficult to build (for me), but makefile suggested that xsltproc can be used instead.

Making it happen involves the following:

1) fix gst-doc.m4 to not to require docbook2html to build html manual

2) fix gst-doc.m4 to not to list fig2dev as a mandatory requirement (detection code says that without it some images won't be built, but building the manual should still be possible; also see (5))

3) fix as-docbook.m4 to understand XML_CATALOG_FILES environment variable. as-docbook.m4 looks for hard-coded /etc/xml/catalog, and if it isn't there, looks for some hardcoded docbook files. Instead if should honor XML_CATALOG_FILES, just as libxml2 does. XML_CATALOG_FILES is a space-delimited list of files.

4) fix manual.mak - remove the comment that suggests xsltproc usage, replace docbook2html with xsltproc. Remove sed invocation.

5) remove .fig files from the manual. There is only one such file - state-diagram.fig, and it's not used anyway. Without fig2dev it can't be converted to png, and makefile if written in a way that makes fig2dev non-optional. I don't know how to make fig2dev invocation optional in a clean way, so i think that .fig file should be moved instead
Comment 1 LRN 2012-08-17 09:32:42 UTC
Created attachment 221563 [details] [review]
[common] Build html manual with xsltproc, images are optional
Comment 2 LRN 2012-08-17 09:33:13 UTC
Created attachment 221564 [details] [review]
[common] Support XML_CATALOG_FILES
Comment 3 LRN 2012-08-17 09:33:37 UTC
Created attachment 221566 [details] [review]
[core] Use xlstproc instead of docbook2html
Comment 4 LRN 2012-08-17 09:33:56 UTC
Created attachment 221567 [details] [review]
[core] Move unused state-diagram out of the way.
Comment 5 LRN 2012-11-19 13:47:14 UTC
Diagram-moving patch is now obsolete, after http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=9301305cd6533b2001f11f5253858bbea9d6a076
Comment 6 LRN 2013-04-02 23:46:13 UTC
Alternatively, JH_PATH_XML_CATALOG (used, for example, by glib) can be used in as-docbook instead. It doesn't support XML_CATALOG_FILES either (there's a bug #683554 about it), but does support --with-xml-catalog, which is good enough for me.
Comment 7 LRN 2013-04-03 12:05:01 UTC
Comment on attachment 221567 [details] [review]
[core] Move unused state-diagram out of the way.

Diagram-moving patch is now obsolete, after
http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=9301305cd6533b2001f11f5253858bbea9d6a076
Comment 8 LRN 2013-04-03 13:05:33 UTC
Created attachment 240476 [details] [review]
Don't need docbook2html anymore
Comment 9 LRN 2013-04-03 13:07:39 UTC
Other patches should apply as-is
Comment 10 Stefan Sauer (gstreamer, gtkdoc dev) 2013-04-03 15:50:13 UTC
Review of attachment 221566 [details] [review]:

::: docs/faq/faq.xml
@@ +21,3 @@
 <!ENTITY LEGAL SYSTEM "legal.xml">
 ]>
+<?xml-stylesheet href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"?>

this should not be needed. could you try without?
Comment 11 Stefan Sauer (gstreamer, gtkdoc dev) 2013-04-03 15:54:04 UTC
Review of attachment 240476 [details] [review]:

There is an earlier
AC_CHECK_PROG(HAVE_DOCBOOK2PS, docbook2ps, yes, no)
that looks like it should be removed too, istead you should probably look for xsltproc now.
Comment 12 LRN 2013-04-03 17:50:26 UTC
Created attachment 240522 [details] [review]
Don't need docbook2html anymore, need xlstproc

Remove any mentions of docbook2html, look for xlstproc instead.
Comment 13 LRN 2013-04-03 17:53:48 UTC
Created attachment 240523 [details] [review]
Use xsltproc instead of docbook2html (v2)

This version is without an extra xml-stylesheet tag.
Comment 14 LRN 2013-04-03 17:54:08 UTC
Fixed the patches as suggested.