Re: Help on Meson build Error

Daniel P. Berrangé
Fri, 25 Sep 2020 09:16:25 -0000

On Fri, Sep 25, 2020 at 05:03:24PM +0800, Wei Wang
wrote:
> On Fri, Sep 25, 2020 at 4:54 PM Daniel P. Berrangé
<berrange@redhat.com>
> wrote:
>
> >
> > > Yes, I tried, but it fails with
> > > ../src/util/virfile.c:42:11: fatal error: libutil.h: No such file
or
> > > directory
> >
> > You'd have to delete the build dir and re-run meson so that it
> > auto-detects again.
> >
> >
> OK, that issue seems gone, but ninja reports lots of new errors:
>
>
> ninja: Entering directory `build'
> [947/1250] Generating virsh.html.in with a meson_exe.py custom command
> FAILED: docs/manpages/virsh.html.in
> /usr/bin/meson --internal exe --capture docs/manpages/virsh.html.in --
> /usr/local/bin/rst2html5 --stylesheet= --strict docs/manpages/virsh.rst
> docs/manpages/virsh.rst:41: (ERROR/3) Error in "code-block"
directive:
> 1 argument(s) required, 0 supplied.
>
> .. code-block::
>
>    virsh [OPTION]... <command> <domain> [ARG]...

This is a sign of having a bad version of "rst2html5" installed.

We expect to be using  rst2html5 that comes with python docutils
package.

There is a completely different rst2html5 that people might get
from "pip" if you did "pip install rst2html5". This version
is
broken and unusable and so needs to be removed.


Regards,
Daniel
--
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|