[Bug 277395] ports-mgmt/portupgrade with lang/ruby32 fails with: undefined method `exists?' for File:Class

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 25 Mar 2024 14:40:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277395

--- Comment #16 from russo@bogodyn.org ---

The commit 32a6b38c2 is doing a blanket replacement of File.exists? with
File.exist? in all files of the port, including portsclean.

+.if ${RUBY_VERSION_CODE:U} >= 320
+post-patch:
+       cd ${WRKSRC} && ${FIND} bin etc lib -type f |\
+               ${XARGS} ${REINPLACE_CMD} 's/File\.exists\?/File.exist?/'
+.endif
+

-- 
You are receiving this mail because:
You are the assignee for the bug.