[Bug 277395] ports-mgmt/portupgrade with lang/ruby32 fails with: undefined method `exists?' for File:Class
Date: Fri, 01 Mar 2024 13:26:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277395
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 = " --> Running ldconfig -m"
+
+ 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
+
+ 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
--
You are receiving this mail because:
You are on the CC list for the bug.