Package: asciidoc-base
Version: 10.2.0-1
Severity: important

Dear Maintainer,

as a maintainer of the fetchmail upstream package,
I want to build documentation with asciidoc.

As part of fetchmail's build with meson on the legacy_6x branch of
fetchmail, asciidoc is being run, but cannot find icons:

[68/70] Generating Mailbox-Names-UTF7.html with a custom command
sh: 1: cannot open /etc/asciidoc/icons/warning.png: No such file
asciidoc: WARNING: Mailbox-Names-UTF7.txt: line 157: {sys:"/usr/bin/python3" -u 
-c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < 
"/etc/asciidoc/icons/warning.png"}: non-zero exit status
[70/70] Generating fetchmail-man.html with a custom command (wrapped by meson 
to capture output)

dpkg -L asciidoc-common suggests that asciidoc-base should either refer to
/usr/share/asciidoc/icons, or maintain proper links directly or through the
alternatives mechanism.


Minimal reproducer:

apt install --no-install-recommends -y asciidoc
cat >test.adoc <<'_EOF'
:icons:
WARNING: test text,
         more test text
_EOF
/usr/bin/asciidoc --attribute=data-uri -o test.html test.adoc


Yields:

# /usr/bin/asciidoc --attribute=data-uri -o test.html test.adoc
sh: 1: cannot open /etc/asciidoc/icons/warning.png: No such file
asciidoc: WARNING: test.adoc: line 3: {sys:"/usr/bin/python3" -u -c "import 
base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < 
"/etc/asciidoc/icons/warning.png"}: non-zero exit status


Note this is in a podman-based container setup of debian:testing per:

REPOSITORY                         TAG           IMAGE ID      CREATED        
SIZE
docker.io/library/debian           testing       4601c669d9dc  10 days ago    
121 MB

-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.2.14-300.fc38.x86_64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages asciidoc-base depends on:
ii  asciidoc-common  10.2.0-1
ii  docbook-xsl      1.79.2+dfsg-2
ii  libxml2-utils    2.9.14+dfsg-1.2
ii  python3          3.11.2-1+b1
ii  xsltproc         1.1.35-1

Versions of packages asciidoc-base recommends:
pn  xmlto  <none>

Versions of packages asciidoc-base suggests:
pn  asciidoc-doc      <none>
pn  docbook-utils     <none>
pn  source-highlight  <none>

-- no debconf information

Reply via email to