jemalloc: revision, make Sierra patches unconditional

The Sierra patches only affects Sierra, but the bug is a particularly
severe one that can be hard to diagnose. I've encountered a number of
users who upgraded from previous versions of Sierra and then didn't
have the ability to figure out what broke, or that jemalloc
specifically was what they needed to reinstall. Since we usually tell
users that they don't need to reinstall all their packages after
upgrading to Sierra, a lot of users have broken jemallocs after the OS
upgrade.

Since these patches are upstream already, I'd like to just include
them unconditionally and bump the revision so that people on older OSs
get them before they upgrade.

Closes #5886.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Misty De Meo 2016-10-13 14:28:06 -07:00 committed by Mike McQuaid
parent b5dcdc015e
commit 0fe61cb2e4

View file

@ -3,6 +3,7 @@ class Jemalloc < Formula
homepage "http://www.canonware.com/jemalloc/" homepage "http://www.canonware.com/jemalloc/"
url "https://github.com/jemalloc/jemalloc/releases/download/4.2.1/jemalloc-4.2.1.tar.bz2" url "https://github.com/jemalloc/jemalloc/releases/download/4.2.1/jemalloc-4.2.1.tar.bz2"
sha256 "5630650d5c1caab95d2f0898de4fe5ab8519dc680b04963b38bb425ef6a42d57" sha256 "5630650d5c1caab95d2f0898de4fe5ab8519dc680b04963b38bb425ef6a42d57"
revision 1
head "https://github.com/jemalloc/jemalloc.git" head "https://github.com/jemalloc/jemalloc.git"
bottle do bottle do
@ -16,16 +17,14 @@ class Jemalloc < Formula
# https://github.com/jemalloc/jemalloc/issues/420 # https://github.com/jemalloc/jemalloc/issues/420
# Should be in the next release, but please check. # Should be in the next release, but please check.
if MacOS.version >= :sierra patch do
patch do url "https://github.com/jemalloc/jemalloc/commit/4abaee5d13.patch"
url "https://github.com/jemalloc/jemalloc/commit/4abaee5d13.patch" sha256 "05c754089098c4275b460b90d1f4b94e32a2c819496187e5378e460c9398a65f"
sha256 "05c754089098c4275b460b90d1f4b94e32a2c819496187e5378e460c9398a65f" end
end
patch do patch do
url "https://github.com/jemalloc/jemalloc/commit/19c9a3e828.patch" url "https://github.com/jemalloc/jemalloc/commit/19c9a3e828.patch"
sha256 "b736dab20d2688d4b21b4ba4755fd19b68145b2d9ae299a1ae154e8553d9261d" sha256 "b736dab20d2688d4b21b4ba4755fd19b68145b2d9ae299a1ae154e8553d9261d"
end
end end
def install def install