🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #4042

Bug#1155104: ruby-prawn-svg: 1.0.0 breaks ruby-asciidoctor-pdf (undefined method font_path)

#4042
From: Luca Toniolo
Date: Tue, 24 Nov 2026 08:20
37 lines
3270 bytes
Package: ruby-prawn-svg
Version: 1.0.0-2
Severity: serious
Control: affects -1 ruby-asciidoctor-pdf

Hello,

Since ruby-prawn-svg 1.0.0 reached unstable, asciidoctor-pdf fails on 
every document. ruby-asciidoctor-pdf 2.3.24-5 calls 
Prawn::SVG::Interface.font_path at load time 
(lib/asciidoctor/pdf/ext/prawn-svg.rb, line 12), and 1.0.0 no longer has it:

/usr/lib/ruby/vendor_ruby/asciidoctor/pdf/ext/prawn-svg.rb:12:in `<top 
(required)>': undefined method `font_path' for class 
Prawn::SVG::Interface (NoMethodError)

Upstream asciidoctor-pdf supports prawn-svg up to 0.40.x (it moved to 
0.40.x on 2026-10-15), so it has no fix for 1.0.0 yet. The autopkgtest 
regression of ruby-asciidoctor-pdf that blocks migration looks like the 
same problem.

Steps to reproduce, in a debian:sid container:

   apt-get install asciidoctor-pdf
   printf '= Test\n\nHello.\n' > test.adoc
   asciidoctor -r asciidoctor-pdf -b pdf test.adoc

I hit it in the LinuxCNC CI, which builds the PDF documentation in 
debian:sid on every pull request. Package versions there: ruby-prawn-svg 
1.0.0-2, ruby-prawn 2.5.0+dfsg-1, ruby-asciidoctor-pdf 2.3.24-5, 
ruby-asciidoctor 2.0.26-2.

Keeping 0.40.x in unstable, or a Breaks: ruby-asciidoctor-pdf (<< fixed 
version) with a patched ruby-asciidoctor-pdf, would solve it for us.

Thanks,
Luca Toniolo
Technical Details
Message-ID: <O2TUR-dQfL-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Luca Toniolo <luca@aitalmac.com>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1155104: ruby-prawn-svg: 1.0.0 breaks ruby-asciidoctor-pdf (undefined method font_path)
Date: Tue, 24 Nov 2026 09:20:01 +0100
Message-ID: <O2TUR-dQfL-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Tue Nov 24 08:15:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Luca Toniolo <luca@aitalmac.com>, 1155104@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-ruby-extras-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1155104
X-Debian-Pr-Package: ruby-prawn-svg
X-Debian-Pr-Source: ruby-prawn-svg
X-Alimail-Antispam: AC=CONTINUE;BC=0.06234425|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0288678-5.83951e-05-0.971074;FP=2017285585095363158|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033032065030;MF=luca@aitalmac.com;NM=1;PH=DS;RN=1;RT=1;SR=0;TI=SMTPD_---.k8ze8MI_1795507712;
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Greylist: delayed 304 seconds by postgrey-1.37 at buxtehude; Tue, 24 Nov 2026 08:13:45 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/839418
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 37
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 24 Nov 2026 16:08:27 +0800
X-Original-Message-ID: <1fbb3e04-9cef-4f3f-9195-84d54f79e270@aitalmac.com>