Skip to content

Commit

Permalink
dirmngr: fix segmentation fault.
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#32969.
Closes Homebrew/legacy-homebrew#38795.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
ttanner authored and MikeMcQuaid committed Apr 19, 2015
1 parent fdaf718 commit a19e8b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Formula/dirmngr.rb
Expand Up @@ -18,6 +18,13 @@ class Dirmngr < Formula
depends_on "libksba"
depends_on "pth"

patch :p0 do
# patch by upstream developer to fix an API incompatibility with libgcrypt >=1.6.0
# causing immediate segfault in dirmngr. see http://bugs.g10code.com/gnupg/issue1590
url "http://bugs.g10code.com/gnupg/file419/dirmngr-pth-fix.patch"
sha256 "0efbcf1e44177b3546fe318761c3386a11310a01c58a170ef60df366e5160beb"
end

def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
Expand All @@ -28,5 +35,6 @@ def install

test do
system "dirmngr-client", "--help"
system "dirmngr", "--help"
end
end

0 comments on commit a19e8b8

Please sign in to comment.