Fix manpage generation on Fedora Rawhide (F34)

I believe this is a `a2x` bug, not ours, so I am just workarounding it until the
issue gets fixed. The error looks like this

    [root@449665d34a95 sandbox]# a2x -d manpage -f manpage tito.8.asciidoc --verbose
    a2x: args: ['-d', 'manpage', '-f', 'manpage', 'tito.8.asciidoc', '--verbose']
    a2x: resource files: []
    a2x: resource directories: ['/etc/asciidoc/images', '/etc/asciidoc/stylesheets']
    a2x: executing: "/usr/bin/asciidoc.py" --backend docbook -a "a2x-format=manpage"  --doctype manpage --verbose  --out-file "/home/sandbox/tito.8.xml" "/home/sandbox/tito.8.asciidoc"

    asciidoc: reading: /etc/asciidoc/asciidoc.conf
    asciidoc: reading: /home/sandbox/tito.8.asciidoc
    asciidoc: include: /home/sandbox/man.asciidoc
    asciidoc: tito.8.asciidoc: line 3: reading: /home/sandbox/man.asciidoc
    asciidoc: reading: /etc/asciidoc/docbook45.conf
    asciidoc: reading: /etc/asciidoc/filters/graphviz/graphviz-filter.conf
    asciidoc: reading: /etc/asciidoc/filters/source/source-highlight-filter.conf
    asciidoc: reading: /etc/asciidoc/filters/code/code-filter.conf
    asciidoc: reading: /etc/asciidoc/lang-en.conf
    asciidoc: writing: /home/sandbox/tito.8.xml
    asciidoc: include: /home/sandbox/AUTHORS
    asciidoc: tito.8.asciidoc: line 299: reading: /home/sandbox/AUTHORS

    a2x: executing: "xmllint" --nonet --noout --valid "/home/sandbox/tito.8.xml"

    I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
    /home/sandbox/tito.8.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
    D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
										^
    /home/sandbox/tito.8.xml:5: validity error : Validation failed: no DTD found !
    <refentry lang="en">
		    ^

    a2x: ERROR: "xmllint" --nonet --noout --valid "/home/sandbox/tito.8.xml" returned non-zero exit status 4
This commit is contained in:
Jakub Kadlcik 2021-01-11 22:00:40 +01:00 committed by Jakub Kadlčík
parent d41626d181
commit 6a216b2ea6

View file

@ -84,10 +84,10 @@ git.
%build
%{ourpythonbin} setup.py build
# convert manages
a2x -d manpage -f manpage titorc.5.asciidoc
a2x -d manpage -f manpage tito.8.asciidoc
a2x -d manpage -f manpage tito.props.5.asciidoc
a2x -d manpage -f manpage releasers.conf.5.asciidoc
a2x --no-xmllint -d manpage -f manpage titorc.5.asciidoc
a2x --no-xmllint -d manpage -f manpage tito.8.asciidoc
a2x --no-xmllint -d manpage -f manpage tito.props.5.asciidoc
a2x --no-xmllint -d manpage -f manpage releasers.conf.5.asciidoc
%install
rm -rf $RPM_BUILD_ROOT