diff options
| author | Ruby | 2015-03-16 21:25:02 +0700 | 
|---|---|---|
| committer | Mike McQuaid | 2015-03-17 09:38:55 +0000 | 
| commit | b20ee32d77484021ec50f9b30cb4cc8ca19faf98 (patch) | |
| tree | 67377a2952954112f7824a366ffe9452b5b11e18 | |
| parent | cb92c9b1beac8dc774a75f0d0aae6bb85baa7ab3 (diff) | |
| download | homebrew-b20ee32d77484021ec50f9b30cb4cc8ca19faf98.tar.bz2 | |
nss: make keg-only.
For details, please see
https://bugzilla.mozilla.org/show_bug.cgi?id=1142646
| -rw-r--r-- | Library/Formula/nss.rb | 12 | 
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Formula/nss.rb b/Library/Formula/nss.rb index df0bcf054..fa4f53b04 100644 --- a/Library/Formula/nss.rb +++ b/Library/Formula/nss.rb @@ -4,7 +4,7 @@ class Nss < Formula    homepage "https://developer.mozilla.org/docs/NSS"    url "https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_17_4_RTM/src/nss-3.17.4.tar.gz"    sha256 "1d98ad1881a4237ec98cbe472fc851480f0b0e954dfe224d047811fb96ff9d79" -  revision 1 +  revision 2    bottle do      cellar :any @@ -13,6 +13,12 @@ class Nss < Formula      sha1 "83a0cf6db62ff865b07347c4a94361869715e6b0" => :mountain_lion    end +  keg_only <<-EOS.undent +    Having this library symlinked makes Firefox pick it up instead of built-in, +    so it then randomly crashes without meaningful explanation. + +    Please see https://bugzilla.mozilla.org/show_bug.cgi?id=1142646 for details. +  EOS    depends_on "nspr"    def install @@ -22,8 +28,8 @@ class Nss < Formula      args = [        "BUILD_OPT=1",        "NSS_USE_SYSTEM_SQLITE=1", -      "NSPR_INCLUDE_DIR=#{HOMEBREW_PREFIX}/include/nspr", -      "NSPR_LIB_DIR=#{HOMEBREW_PREFIX}/lib" +      "NSPR_INCLUDE_DIR=#{Formula["nspr"].opt_include}/nspr", +      "NSPR_LIB_DIR=#{Formula["nspr"].opt_lib}"      ]      args << "USE_64=1" if MacOS.prefer_64_bit?  | 
