- python が portupgrade できない
# portversion -v python39
[Reading data from pkg(8) ... - 159 packages found - done]
python39-3.9.18_1 < needs updating (port has 3.9.18_2)
# portupgrade python39
[Reading data from pkg(8) ... - 159 packages found - done]
---> Upgrading 'python39-3.9.18_1' to 'python39-3.9.18_2' (lang/python39)
---> Building '/usr/ports/lang/python39'
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! lang/python39 (python39-3.9.18_1) (undefined method `exists?' for File:Class)
FreeBSD Bugzilla / Bug 277410 After upgrading ruby31 to ruby32, portupgrade broke.
- /usr/local/lib/ruby/site_ruby/3.2/pkgtools/pkgtools.rb を修正
- 修正前
if File.exists?(custom_script)
if File.exist?(custom_script)
- /usr/local/sbin/portsclean を修正
- 修正前
dirs.delete(d) if ! (File.exists?(d) && File.stat(d).directory?)
dirs.delete(d) if ! (File.exist?(d) && File.stat(d).directory?)
- portupgrade python39 成功した。