February 7, 2014

Memory Leak Patch to Homebrew Emacs 24.3 on OS X Mavericks

OS X Mavericks 上の Emacs 24.3 で distnoted が暴走する問題、This is a patch (with commentary) that fixes a memory leak in 24.3 for OSX Mavericks (10.9) users who experience excessive resource consumption by distnoted. [github.com] のパッチを当てるという対策で落ち着いて来た模様(?)。Homebrew では他にも Backport of Emacs master's fullscreen mode to Emacs 24.3 [github.com] パッチや、--japanese オプションを付けてインストールすると File Details: /inline_patch/trunk/emacs-inline.patch (583) - macemacsjp (svn) - MacEmacs JP - SourceForge.JP [sourceforge.jp] パッチがあたる。パッチがあたるファイルが一部重複していたが、Hunk #n succeeded でなんとかパッチが適応でき、順番はあまり気にしなくてもよさそう。
$ brew edit emacs
$ brew reinstall emacs
参考文献
  1. distnoted が原因でEmacsが落ちるのを防ぐemacs.rb [qiita.com]
  2. emacsやdistnotedを安定させるパッチをhomebrewで適用した [n-z.jp]

(February 8, 2014 追記)
折角なので今回は Formula Cookbook [github.com] に従い Pull Request してみた。 (February 9, 2014 追記)
早速取り込んでいただけた模様。
commit message の英文法が間違ってるのが恥ずかしい。オープンソース活動はスヌープされても問題ないから、英文構成サービス使うべし。

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.