From 08f5833f9b861fa77a5f8e9668d53389714afa84 Mon Sep 17 00:00:00 2001 From: chdiza Date: Fri, 12 Sep 2014 15:57:18 -0400 Subject: libgpg-error 1.15 Closes #32267. Signed-off-by: Jack Nagel --- Library/Formula/libgpg-error.rb | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Formula/libgpg-error.rb b/Library/Formula/libgpg-error.rb index 9d37c736e..4aa36f129 100644 --- a/Library/Formula/libgpg-error.rb +++ b/Library/Formula/libgpg-error.rb @@ -2,9 +2,9 @@ require 'formula' class LibgpgError < Formula homepage 'http://www.gnupg.org/' - url 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.13.tar.bz2' - mirror 'http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.13.tar.bz2' - sha1 '50fbff11446a7b0decbf65a6e6b0eda17b5139fb' + url 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.15.tar.bz2' + mirror 'http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.15.tar.bz2' + sha1 'f41791121c66043fa18834597e0155ebcbff8ada' bottle do cellar :any @@ -13,6 +13,12 @@ class LibgpgError < Formula sha1 "0ddec43a1845015a046f8ed4f924272eafc1cca7" => :lion end + # Version 1.15 broke building on OS X. This has been reported: + # http://lists.gnupg.org/pipermail/gnupg-devel/2014-September/028748.html + # and the fix in the below patch is already committed into their + # repo for next release. + patch :DATA + option :universal def install @@ -22,3 +28,20 @@ class LibgpgError < Formula system "make install" end end +__END__ +--- a/src/gpgrt-int.h ++++ b/src/gpgrt-int.h +@@ -105,9 +105,9 @@ void _gpgrt_clearerr_unlocked (gpgrt_stream_t stream); + + int _gpgrt_fflush (gpgrt_stream_t stream); + int _gpgrt_fseek (gpgrt_stream_t stream, long int offset, int whence); +-int _gpgrt_fseeko (gpgrt_stream_t stream, off_t offset, int whence); ++int _gpgrt_fseeko (gpgrt_stream_t stream, gpgrt_off_t offset, int whence); + long int _gpgrt_ftell (gpgrt_stream_t stream); +-off_t _gpgrt_ftello (gpgrt_stream_t stream); ++gpgrt_off_t _gpgrt_ftello (gpgrt_stream_t stream); + void _gpgrt_rewind (gpgrt_stream_t stream); + + int _gpgrt_fgetc (gpgrt_stream_t stream); + + -- cgit v1.2.3