Created attachment 232443 [details] Patch file Mark BROKEN with Ruby 3.x. cd /wrkdirs/usr/ports/www/unit-ruby/work/unit-1.26.1 && /usr/bin/env XDG_DATA_HOME=/wrkdirs/usr/ports/www/unit-ruby/wo rk XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/unit-ruby/work XDG_CACHE_HOME=/wrkdirs/usr/ports/www/unit-ruby/work/.cache HOME=/wrkdirs/usr/ports/www/unit-ruby/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/unit-ruby/work/.bin:/sbin:/bin:/u sr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/nonexistent/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh ./configure ruby - -module=ruby3.0 configuring Ruby module checking for Ruby library ... not found checking for Ruby library in /usr/local/lib ... not found ./configure: error: no Ruby found. *** Error code 1 Stop. make: stopped in /usr/ports/www/unit-ruby
Hi Yasuhiro-san, thanks for the report. I see no reason to apply the patch you've provided. It's definitely possible to fix the issue, so any other ideas are welcome.
Created attachment 232489 [details] [PATCH] www/unit-ruby fix build issue with ruby 3.x Here is the patch, could you test it and report back.
(In reply to Sergey A. Osokin from comment #2) Thanks for patch. I confirmed it works fine with all supported version of Ruby.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ea02c904697c622af1e87170e1b8d139f48395d4 commit ea02c904697c622af1e87170e1b8d139f48395d4 Author: Sergey A. Osokin <osa@FreeBSD.org> AuthorDate: 2022-03-20 01:24:50 +0000 Commit: Sergey A. Osokin <osa@FreeBSD.org> CommitDate: 2022-03-20 01:26:09 +0000 www/unit-ruby: fix build with ruby 3.x PR: 262541 www/unit-ruby/Makefile | 3 +++ 1 file changed, 3 insertions(+)
Thanks for the report!