Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2024 14:40:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   [Bug 277395] ports-mgmt/portupgrade with lang/ruby32 fails with: undefined method `exists?' for File:Class
Message-ID:  <bug-277395-21402-Eq5Z790AF1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-277395-21402@https.bugs.freebsd.org/bugzilla/>
References:  <bug-277395-21402@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277395

--- 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} >=3D 320
+post-patch:
+       cd ${WRKSRC} && ${FIND} bin etc lib -type f |\
+               ${XARGS} ${REINPLACE_CMD} 's/File\.exists\?/File.exist?/'
+.endif
+

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277395-21402-Eq5Z790AF1>