diff options
Diffstat (limited to 'Library/Formula/python.rb')
| -rw-r--r-- | Library/Formula/python.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 9c59043fe..02c5ba2d0 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -35,9 +35,16 @@ class Python < Formula end def patches + p = {} + # Backported security fix for CVE-2014-1912: + # http://bugs.python.org/issue20246 + p[:p0] = "https://gist.githubusercontent.com/leepa/9351856/raw/7f9130077fd760fcf9a25f50b69d9c77b155fbc5/CVE-2014-1912.patch" # Patch to disable the search for Tk.framework, since Homebrew's Tk is # a plain unix build. Remove `-lX11`, too because our Tk is "AquaTk". - DATA if build.with? 'brewed-tk' + if build.with? "brewed-tk" + p[:p1] = DATA + end + p end def lib_cellar |
