[Bug 294765] textproc/rubygem-asciidoctor: make it usable with ruby 4.0
Date: Sat, 25 Apr 2026 00:57:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294765
Bug ID: 294765
Summary: textproc/rubygem-asciidoctor: make it usable with ruby
4.0
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ruby@FreeBSD.org
Reporter: kib@FreeBSD.org
Assignee: ruby@FreeBSD.org
Flags: maintainer-feedback?(ruby@FreeBSD.org)
Created attachment 270085
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=270085&action=edit
add rubygem-logger dep
I had to set ruby default version to 4.0. This results in broken asciidoctor,
even the --version option does not work:
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidoctor/logging.rb:
5:in 'Kernel#require': cannot load such file -- logger (LoadError)
from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidocto
r/logging.rb:5:in 'block in <top (required)>'
from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidocto
r/logging.rb:7:in '<top (required)>'
from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidocto
r.rb:549:in 'Kernel#require_relative'
from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/lib/asciidocto
r.rb:549:in '<top (required)>'
from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/bin/asciidocto
r:6:in 'Kernel#require'
from
/usr/local/lib/ruby/gems/4.0/gems/asciidoctor-2.0.26/bin/asciidocto
r:6:in '<top (required)>'
from /usr/local/lib/ruby/site_ruby/4.0/rubygems.rb:305:in 'Kernel#load'
from /usr/local/lib/ruby/site_ruby/4.0/rubygems.rb:305:in
'Gem.activate_
and_load_bin_path'
from /usr/local/bin/asciidoctor:25:in '<main>'
Apparently all it needs is rubygem-logger. Adding it to runtime dependency
fixes the problem. In particular, wireshark doc build, which needs
asciidoctor,
worked.
--
You are receiving this mail because:
You are the assignee for the bug.