Boost C++ Libraries: Ticket #5709: boost.build docutils module not working https://svn.boost.org/trac10/ticket/5709 <p> I'm trying to use the docutils tool as part of boost.build, which results in errors. The reason appears to be that on my system (Fedora), there is no "rst2html.py" script, but a "rst2html" tool (a python script) in /usr/bin. </p> <p> The docutils module initialization doesn't know about it, and then invokes "python -gdt ..." instead of "rst2html -gdt ..." or "python rst2html.py -gdt ...", which is clearly wrong. </p> <p> I think there are two issues here to fix: </p> <p> 1) Instead of generating an invalid command, detect that the "rst2html.py" script doesn't exist, and bail out. </p> <p> 2) Allow alternate scripts, such as "rst2html". Or more conveniently, discover that script automatically, and use it as RST2XXX in docutils.jam. </p> <p> (I have been attempting to debug this, by injecting "ECHO ... " commands into the docutils.jam file. However, these weren't working. Depending on where I inserted them, I received errors "ECHO: command not found" or others. </p> <p> Any help would be appreciated. </p> <p> Thanks, </p> <blockquote> <p> Stefan </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5709 Trac 1.4.3 Vladimir Prus Mon, 18 Jul 2011 05:54:00 GMT <link>https://svn.boost.org/trac10/ticket/5709#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5709#comment:1</guid> <description> <p> Stefan, </p> <p> as I've said on IRC, your first step should be to add </p> <pre class="wiki">ECHO "Here I am" ; </pre><p> as the first statement of docbook.init, and make sure it is executed. If it's not executed, it means you are modifying wrong docbook.init, or you don't have 'using docbook', or you have 'using docbook' in wrong user-config.jam, or something similar. </p> <p> After then, you should add </p> <pre class="wiki">RST2XXX = [ common.find-tool rst2html ] ; </pre><p> as the last stateme of the "if" inside docbook.init. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Stefan Seefeld</dc:creator> <pubDate>Mon, 18 Jul 2011 11:13:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5709#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5709#comment:2</guid> <description> <p> Volodya, </p> <p> I have modified tools/build/v2/tools/docutils.jam, and I can in fact see changes when I run 'bjam libs/python/doc', just not all, and just not with the effect I had hoped I would see. </p> <p> In particular: </p> <ul><li>Into the 'init' rule, inside 'if ! $(.initialized)', I added: </li></ul><blockquote> <p> RST2XXX = [ common.find-tool rst2html ] ; </p> </blockquote> <blockquote> <p> ECHO "init: " $(RST2XXX) ; </p> </blockquote> <blockquote> <p> but that didn't print anything. </p> </blockquote> <ul><li>Into the 'html' rule (after the RST2XXX definition) I added: </li></ul><blockquote> <p> ECHO "rst2xxx: " $(RST2XXX) ; </p> </blockquote> <blockquote> <p> which only prints 'rst2xxx:', i.e. no value. </p> </blockquote> <ul><li>Into the 'actions html' block, I added: </li></ul><blockquote> <p> ECHO "$(RST2XXX)" </p> </blockquote> <blockquote> <p> which generates an error '/bin/sh: line 1: ECHO: command not found', unless I invoke bjam with '-n', in which case the error disappears. (It still prints the '/usr/bin/python2.7' value that it seems to get from the (wrong) assignment in the html rule above. </p> </blockquote> <p> Thanks for your help, </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Stefan Seefeld</dc:creator> <pubDate>Mon, 18 Jul 2011 12:25:56 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/5709 https://svn.boost.org/trac10/ticket/5709 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch</span> </li> </ul> <p> This fixes the issue. </p> Ticket Stefan Seefeld Mon, 18 Jul 2011 12:26:59 GMT <link>https://svn.boost.org/trac10/ticket/5709#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5709#comment:3</guid> <description> <p> Volodya, </p> <p> the attached patch appears to be all that's needed to fix this, right ? Should I check it in ? </p> <p> Thanks, </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Mon, 18 Jul 2011 12:35:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5709#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5709#comment:4</guid> <description> <p> Stefan, </p> <p> this patch is fine, thanks. </p> <p> You might want to include "Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5709" title="#5709: Bugs: boost.build docutils module not working (closed: fixed)">#5709</a>" in the commit message to have this issue closed by magic. </p> <p> Thanks, Volodya </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Stefan Seefeld</dc:creator> <pubDate>Mon, 18 Jul 2011 12:37:08 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5709#comment:5 https://svn.boost.org/trac10/ticket/5709#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73215" title="Fixes #5709">[73215]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5709" title="#5709: Bugs: boost.build docutils module not working (closed: fixed)">#5709</a> </p> Ticket