Bug 262541 - www/unit-ruby: Fix build with Ruby 3.x
Summary: www/unit-ruby: Fix build with Ruby 3.x
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks: 262350
  Show dependency treegraph
 
Reported: 2022-03-14 03:48 UTC by Yasuhiro Kimura
Modified: 2022-03-20 01:29 UTC (History)
0 users

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


Attachments
Patch file (1.32 KB, patch)
2022-03-14 03:48 UTC, Yasuhiro Kimura
no flags Details | Diff
[PATCH] www/unit-ruby fix build issue with ruby 3.x (565 bytes, patch)
2022-03-16 18:53 UTC, Sergey A. Osokin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2022-03-14 03:48:16 UTC
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
Comment 1 Sergey A. Osokin freebsd_committer freebsd_triage 2022-03-16 18:38:23 UTC
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.
Comment 2 Sergey A. Osokin freebsd_committer freebsd_triage 2022-03-16 18:53:55 UTC
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.
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2022-03-19 07:02:13 UTC
(In reply to Sergey A. Osokin from comment #2)

Thanks for patch. I confirmed it works fine with all supported version of Ruby.
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-03-20 01:27:01 UTC
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(+)
Comment 5 Sergey A. Osokin freebsd_committer freebsd_triage 2022-03-20 01:29:59 UTC
Thanks for the report!