Bug 269177

Summary: x11-wm/subtle: Mark BROKEN with Ruby 3.1 and later
Product: Ports & Packages Reporter: Yasuhiro Kimura <yasu>
Component: Individual Port(s)Assignee: Alexey Dokuchaev <danfe>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (danfe)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 269197    
Bug Blocks: 268586    

Comment 1 commit-hook freebsd_committer freebsd_triage 2023-01-28 04:36:47 UTC
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(+)
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2023-01-28 04:41:20 UTC
(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).
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2023-01-28 05:58:33 UTC
(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.
Comment 4 Yasuhiro Kimura freebsd_committer freebsd_triage 2023-02-11 06:37:42 UTC
After ports fc1c752e8b1c is committed, build with Ruby 3.1 succeeds now.