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 782099 - gtkdoc-mkhtml fails with multiple --path arguments
gtkdoc-mkhtml fails with multiple --path arguments
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2017-05-03 07:55 UTC by Ting-Wei Lan
Modified: 2017-05-28 17:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mkhtml: allow passing multiple --path arguments to xsltproc (1.20 KB, patch)
2017-05-03 08:01 UTC, Ting-Wei Lan
committed Details | Review
mkhtml: allow passing multiple --path arguments to xsltproc (1.22 KB, patch)
2017-05-28 17:16 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Ting-Wei Lan 2017-05-03 07:55:23 UTC
This happens when building gtk3 with --enable-gtk-doc:

  DOC   Building HTML
warning: failed to load external entity ""/home/lantw44/gnome/source/gtk+-3/docs/reference/gtk:/home/lantw44/gnome/source/gtk+-3/examples""
cannot parse "/home/lantw44/gnome/source/gtk+-3/docs/reference/gtk:/home/lantw44/gnome/source/gtk+-3/examples"


The above messages are shown by xsltproc because gtkdoc-mkhtml doesn't prefix the second argument with --path when passing --path arguments to xsltproc.

In function run_xsltproc, file gtkdoc/mkhtml.py, when --path is specified multiple times, options.path becomes a list with multiple items. To make it work with multiple items, we have to add --path for all items in options.path.
Comment 1 Ting-Wei Lan 2017-05-03 08:01:24 UTC
Created attachment 350950 [details] [review]
mkhtml: allow passing multiple --path arguments to xsltproc
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2017-05-28 17:16:40 UTC
The following fix has been pushed:
dacd4cc mkhtml: allow passing multiple --path arguments to xsltproc
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2017-05-28 17:16:47 UTC
Created attachment 352724 [details] [review]
mkhtml: allow passing multiple --path arguments to xsltproc
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2017-05-28 17:24:31 UTC
Thanks also fixing this for mkman and mkpdf