Mark BROKEN with Ruby 3.1 and later. Build log with Ruby 3.1: https://people.freebsd.org/~yasu/poudriere/data/logs/bulk/131amd64-default-ruby/2023-01-27_11h00m49s/logs/subtle-0.11.3224.log Build log with Ruby 3.2: https://people.freebsd.org/~yasu/poudriere/data/logs/bulk/131amd64-default-ruby/2023-01-27_11h01m28s/logs/subtle-0.11.3224.log
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=08a80171eb5c57b3c767028ca9989650702e2f6e commit 08a80171eb5c57b3c767028ca9989650702e2f6e Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2023-01-28 04:31:32 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2023-01-28 04:31:32 +0000 x11-wm/subtle: unbreak the port's build against new Ruby versions File.exists? method has been deprecated and removed in Ruby 3.2.0, adjust the code accordingly. PR: 269177 x11-wm/subtle/Makefile | 2 ++ x11-wm/subtle/files/patch-Rakefile | 9 +++++++++ 2 files changed, 11 insertions(+)
(In reply to Yasuhiro Kimura from comment #0) > Mark BROKEN with Ruby 3.1 and later. No need to mark BROKEN. Build against Ruby 3.2 should be fixed now. Build log against 3.1 suggests it might be the problem with Ruby itself: https://bugs.ruby-lang.org/issues/19189 (affected version 3.1.3 is what `lang/ruby31' port currently tracks).
(In reply to Alexey Dokuchaev from comment #2) Thank for variable information! Currently I'm working to update default version of Ruby from 3.0 to 3.1 on bug #268586 and there are some other ports that fail to be built with same error. I submitted bug #269197 that adds upstream patch to fix the bug of mkmf library and it fixes build error of such ports including this one.
After ports fc1c752e8b1c is committed, build with Ruby 3.1 succeeds now.