From 6a216b2ea61ff261eff9d36366cf7ea901b16115 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Mon, 11 Jan 2021 22:00:40 +0100 Subject: [PATCH] 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 ! ^ a2x: ERROR: "xmllint" --nonet --noout --valid "/home/sandbox/tito.8.xml" returned non-zero exit status 4 --- tito.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tito.spec b/tito.spec index 2a729b4..8503842 100644 --- a/tito.spec +++ b/tito.spec @@ -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