Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 2026 00:57:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 294765] textproc/rubygem-asciidoctor: make it usable with ruby 4.0
Message-ID:  <bug-294765-21402-vwePDFGMHp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-294765-21402@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-ruby (Nobody)
<ruby@FreeBSD.org> for maintainer-feedback:
Bug 294765: textproc/rubygem-asciidoctor: make it usable with ruby 4.0
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294765



--- Description ---
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.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294765-21402-vwePDFGMHp>