Skip to contentSkip to conversation

ci/debian.sh: Install docbook2x

PATCH In review Petr Vorel 1 participant 2 messages Jun 19, 2023

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 ci/debian.sh: Install docbook2x

asciidoc-dblatex dependency is no longer enough for Debian 11 bullseye (the new Debian oldstable), generating html with asciidoc otherwise fails:

$ cd metadata && make
error : Unknown IO error
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
compilation error: file /etc/asciidoc/docbook-xsl/xhtml.xsl line 12 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl
---
 ci/debian.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ci/debian.sh +1 -1
index da92337fb..7b0361100 100755
@@ -49,6 +49,6 @@ $apt \
 	pkg-config
 
 $apt ruby-asciidoctor-pdf || true
-$apt asciidoc-dblatex || true
+$apt asciidoc-dblatex docbook2x || true
 
 df -hT
Signature · 5 lines
2.40.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
author
#1 lore raw

Hi all,

Quoted 2 lines

asciidoc-dblatex dependency is no longer enough for Debian 11 bullseye (the new Debian oldstable), generating html with asciidoc otherwise fails:

Well, this does not help. Obviously asciidoc 9.0.0~rc2-1 on bullseye requires network connection to download
http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl (likely this was not needed on 8.6.10-3 from buster).

The problem is with somehow special network setup on github actions containers (e.g. ping -c1 8.8.8.8 does not work).

I tried to generate pdf with asciidoc on all our CI [1] and the only broken is Debian bullseye (oldstable). (Well, on some very old distros e.g. CentOS 7 it's is a2x < 9, thus generation is disabled). I'm don't want to invest energy to find what is wrong with asciidoc on oldstable, thus I'll send a patch which skip asciidoc testing on it.

Kind regards,
Petr

[1] https://github.com/pevik/ltp/actions/runs/5313212040

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp