0.7.9: meson.build: inconsistency running xsltproc
hi
apologies if I'm missing something obvious here
Build of 0.7.9 stops for me with:
----8<----
meson.build:72:4: ERROR: Problem encountered: DocBook stylesheet for generating man pages not found, you need to install docbook-xsl-ns or similar package.
---->8----
The reason seems to be an inconsistency in 0.7.9's meson.build where it runs xsltproc with "--nonet", but defines:
----8<----
stylesheet = 'http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl'
---->8----
Either run withOUT "--nonet", or catch a local copy of manpages/docbook.xsl
As a matter of fact, this fixes things for me:
----8<----
diff -c ./meson.build.DOCBOOK_XSL ./meson.build
*** ./meson.build.DOCBOOK_XSL 2020-02-27 11:24:45.765366377 +0100
--- ./meson.build 2020-02-27 11:24:45.769366390 +0100
***************
*** 54,60 ****
if get_option('man')
xsltproc = find_program('xsltproc', required: true)
! stylesheet = 'http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl'
xsltproc_command = [
xsltproc,
'--nonet',
--- 54,60 ----
if get_option('man')
xsltproc = find_program('xsltproc', required: true)
! stylesheet = '/usr/share/xml/docbook/xsl-stylesheets/manpages/docbook.xsl'
xsltproc_command = [
xsltproc,
'--nonet',
---->8----
thanks a lot
ciao
gabriele