Date: Fri, 01 Mar 2024 13:26:15 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 277395] ports-mgmt/portupgrade with lang/ruby32 fails with: undefined method `exists?' for File:Class Message-ID: <bug-277395-7788-ZSdLQ7owWW@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-277395-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-277395-7788@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 bagas <bagas1983@mail.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bagas1983@mail.ru --- Comment #4 from bagas <bagas1983@mail.ru> --- diff --git a/ports-mgmt/portupgrade/files/patch-bin_portsclean b/ports-mgmt/portupgrade/files/patch-bin_portsclean new file mode 100644 index 000000000000..cbd9fd0a0790 --- /dev/null +++ b/ports-mgmt/portupgrade/files/patch-bin_portsclean @@ -0,0 +1,11 @@ +--- bin/portsclean.orig 2024-02-29 19:03:26 UTC ++++ bin/portsclean +@@ -282,7 +282,7 @@ def ldconfig_m(*dirs) + msg =3D " --> Running ldconfig -m" +=20 + dirs.each do |d| +- dirs.delete(d) if ! (File.exists?(d) && File.stat(d).directory?) ++ dirs.delete(d) if ! (File.exist?(d) && File.stat(d).directory?) + end +=20 + case dirs.size You have specified the path to the file /bin/portsclean You are not mistaken, in my system portsclean is located here /usr/local/sbin/portsclean --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277395-7788-ZSdLQ7owWW>