[dpdk-dev] [PATCH v4 5/6] doc/guides: rebuild with meson whenever a file changes
Bruce Richardson
bruce.richardson at intel.com
Tue Jan 14 17:17:53 CET 2020
On Tue, Jan 14, 2020 at 04:59:24PM +0100, David Marchand wrote:
> On Fri, Jan 10, 2020 at 10:52 PM Bruce Richardson
> <bruce.richardson at intel.com> wrote:
> >
> > Add proper support for calling sphinx whenever a file in the doc
> > directory changes. This is accomplished by using a wrapper script
> > for sphinx, which runs sphinx but also emits a gcc-format dependency
> > file listing all the doc files. This is used by ninja so that any
> > change to the doc files triggers a rebuild of the docs.
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> > Acked-by: Aaron Conole <aconole at redhat.com>
> > Acked-by: Luca Boccassi <bluca at debian.org>
> > ---
> > MAINTAINERS | 1 +
> > buildtools/call-sphinx-build.py | 31 +++++++++++++++++++++++++++++++
> > buildtools/meson.build | 6 ++++--
> > doc/guides/meson.build | 22 ++++++++--------------
> > 4 files changed, 44 insertions(+), 16 deletions(-)
> > create mode 100755 buildtools/call-sphinx-build.py
>
> Caught an issue on fc30:
>
> [2094/2338] Generating html_guides with a custom command.
> FAILED: doc/guides/html
> /usr/bin/python3 ../../dpdk/buildtools/call-sphinx-build.py
> /usr/libexec/python2-sphinx/sphinx-build
> /home/dmarchan/dpdk/doc/guides
> /home/dmarchan/builds/build-x86-default/doc/guides
> sphinx-build 1.8.4
> Traceback (most recent call last):
> File "../../dpdk/buildtools/call-sphinx-build.py", line 15, in <module>
> ver = run([sphinx, '--version'], stdout=PIPE).stdout.decode().split()[-1]
> IndexError: list index out of range
>
> Double checked, the version went to stderr:
>
> $ sphinx-build --version >/dev/null
> sphinx-build 1.8.4
> $ sphinx-build --version 2>/dev/null
>
That is strange. Didn't hit any issues on fedora 31 which I am using here.
I'll see if I can make it work with both stderr and stdout reporting.
/Bruce
More information about the dev
mailing list