Bug 272554 - textproc/docbookrx: cannot load such file -- docbookrx (LoadError)
Summary: textproc/docbookrx: cannot load such file -- docbookrx (LoadError)
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-17 21:33 UTC by Marcin Cieślak
Modified: 2023-11-25 22:03 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments
0001-fix-cannot-load-such-file-docbookrx-LoadError.patch (1.34 KB, patch)
2023-07-17 23:56 UTC, Marcin Cieślak
no flags Details | Diff
0001-fix-cannot-load-such-file-docbookrx-LoadError.patch (1.40 KB, patch)
2023-07-18 00:05 UTC, Marcin Cieślak
no flags Details | Diff
Update port to the main branch as of 06f4336c6cea1626722f12bbb2659e48d5ab4581 (1.71 KB, patch)
2023-11-25 22:03 UTC, Marcin Cieślak
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Cieślak 2023-07-17 21:33:01 UTC
On 14.0-CURRENT, ports tree as of ae8e32b08e33bac7aec0f14f28e45d53dee6f565
I have installed docbookrx from the ports tree having ruby 3.1 installed,
but it fails to load the gem:

> docbookrx build.xml          
<internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- docbookrx (LoadError)
	from <internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /usr/local/lib/ruby/gems/3.1/gems/docbookrx-1.0.0.dev/bin/docbookrx:6:in `<top (required)>'
	from /usr/local/bin/docbookrx:25:in `load'
	from /usr/local/bin/docbookrx:25:in `<main>'

It seems to be that a whole "lib" directory did not get staged and installed:

> find /usr/local/lib/ruby/gems/3.1/gems/docbookrx-1.0.0.dev/
/usr/local/lib/ruby/gems/3.1/gems/docbookrx-1.0.0.dev/
/usr/local/lib/ruby/gems/3.1/gems/docbookrx-1.0.0.dev/bin
/usr/local/lib/ruby/gems/3.1/gems/docbookrx-1.0.0.dev/bin/docbookrx
/usr/local/lib/ruby/gems/3.1/gems/docbookrx-1.0.0.dev/LICENSE
/usr/local/lib/ruby/gems/3.1/gems/docbookrx-1.0.0.dev/README.adoc
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-07-17 22:02:09 UTC
docbookrx has not been under development since 2020 and mostly 2018. And it officially does not support ruby after 2.7. So it's better to look for alternative. In the meantime I will mark this as BROKEN.
Comment 2 Marcin Cieślak 2023-07-17 23:56:42 UTC
Created attachment 243445 [details]
0001-fix-cannot-load-such-file-docbookrx-LoadError.patch

Patch to fix the installation bug
Comment 3 Marcin Cieślak 2023-07-18 00:05:35 UTC
Created attachment 243446 [details]
0001-fix-cannot-load-such-file-docbookrx-LoadError.patch

Patch to fix the installation bug
Comment 4 Marcin Cieślak 2023-07-18 00:08:22 UTC
It turned out to be a normal bug, nothing related to the code being old and unmaintained.

I am actually happy that I could restore an old book source written in DocBook, build it and try to covert it to asciidoc only using tools available easily in FreeBSD ports!
Comment 5 Marcin Cieślak 2023-11-25 22:03:15 UTC
Created attachment 246569 [details]
Update port to the main branch as of 06f4336c6cea1626722f12bbb2659e48d5ab4581

Several updates have been committed to the GitHub repository, including the fix for this issue, so let's just switch the repository to the upstream one and update the port.

I have tested it with the DocBook I've had to convert when I encountered this issue.

https://github.com/asciidoctor/docbookrx/commit/06f4336c6cea1626722f12bbb2659e48d5ab4581