Skip to content

Commit

Permalink
lbzip2: fix crash on macOS >= 10.13
Browse files Browse the repository at this point in the history
The current lbzip2 formula is broken since 2018 and crashes on macOS due to it using an incompatible (embedded) version of gnulib.

This adds a patch for the broken vasnprintf method and makes it work again.

Details are in kjn/lbzip2#20.

Closes #59092.

Signed-off-by: Dawid Dziurla <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
philwo authored and BrewTestBot committed Aug 9, 2020
1 parent d4faba3 commit d1febbb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Formula/lbzip2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Lbzip2 < Formula
mirror "https://fossies.org/linux/privat/lbzip2-2.5.tar.bz2"
sha256 "eec4ff08376090494fa3710649b73e5412c3687b4b9b758c93f73aa7be27555b"
license "GPL-3.0"
revision 1

bottle do
cellar :any_skip_relocation
Expand All @@ -17,6 +18,12 @@ class Lbzip2 < Formula
sha256 "7e521c70fadae71ad2e7807cc844183c05751e4a2433d9f1210069fb2a34333e" => :mavericks
end

# Fix crash on macOS >= 10.13.
patch :p0 do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/6b276429dbe68323349e1eda09b7e5d5a1082671/lbzip2/gnulib-vasnprintf-port-to-macOS-10-13.diff"
sha256 "5b931e071e511a9c56e529278c249d7b2c82bbc3deda3dd9b739b3bd67d3d969"
end

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
Expand Down

0 comments on commit d1febbb

Please sign in to comment.