トップ 差分 一覧 ソース 検索 ヘルプ PDF RSS ログイン

python portupgrade 障害

  • 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 成功した。