Le 07/01/2020 à 14:21, Alan Feuerbacher via blfs-support a écrit :
> I'm building GLib-2.62.4 in (System V Edition) - Version 2020-01-06
> and have run into a compile problem. After executing this:
> 
> meson --prefix=/usr      \
>       -Dman=true         \
>       -Dselinux=disabled \
>       ..                 &&
> ninja
> 
> I get a failure:
> 
> . . .
> Configuring config.h using configuration
> Program xsltproc found: YES (/usr/bin/xsltproc)
> Build targets in project: 385
> Found ninja-1.9.0 at /usr/bin/ninja
> [1128/1157] Generating gapplication-man with a custom command.
> FAILED: docs/reference/gio/gapplication.1
> /usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --
> stringparam funcsynopsis.style ansi --stringparam
> man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --
> stringparam man.copyright.section.enabled 0 -o
> docs/reference/gio/gapplication.1


The problem is not with ninja, but with docbook-xsl:

> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> ../docs/reference/gio/gapplication.xml
> I/O error : Attempt to load network entity
> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> warning: failed to load external entity "
> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> "
> cannot parse
> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
> [1137/1157] Compiling C object 'tests/59830eb@@onceinit@exe/onceinit.c.
> o'.
> ninja: build stopped: subcommand failed.
> 
> This build of LFS is the first I've used the meson-ninja tools, so I
> don't know what to make of this.
> 
> [...]
> 

Looks like the system tries to build manual pages if xsltproc is found (that
is libxslt is installed), but it needs docbook-xsl for that. So it fails if
docbook-xsl is not installed, because of the --nonet parameter (if you have an
internet connection, it can download the xsl stylesheet if --nonet is _not_ 
used).

Actually, docbook-xsl is a recommended dependency of libxslt, for exactly this
reason:
" Although it is not a direct dependency, many applications using libxslt will
expect docbook-xml-4.5 and docbook-xsl-1.79.2 to be present." (note on libxslt
page).

Now, if you have installed docbook-xsl, check the configuration. The
instructions with "xmlcatalog" are easy to get wrong.

Pierre

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to