diff options
| author | Jack Nagel | 2014-10-12 12:25:29 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-12 12:25:29 -0500 |
| commit | b7e1d802bd9d34db3ac71f5a6323d9e1191a74aa (patch) | |
| tree | b8730661715f59967833a98a265819d28dcee2be | |
| parent | affa866a18d6d6e00650f9a7baade1b32ec689ce (diff) | |
| download | homebrew-b7e1d802bd9d34db3ac71f5a6323d9e1191a74aa.tar.bz2 | |
libssh: fix 10.10 build
| -rw-r--r-- | Library/Formula/libssh.rb | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/Library/Formula/libssh.rb b/Library/Formula/libssh.rb index 457fa7f57..4e411f8a2 100644 --- a/Library/Formula/libssh.rb +++ b/Library/Formula/libssh.rb @@ -8,8 +8,6 @@ class Libssh < Formula head "git://git.libssh.org/projects/libssh.git" - # Build fails on Yosemite. Upstream: https://red.libssh.org/issues/174 - bottle do sha1 "84717d23f7d4e59d847bbc2b3b91a2edb9e05709" => :mavericks sha1 "92158c3da484ae5073004c9e471bb458c61e08e3" => :mountain_lion @@ -19,6 +17,11 @@ class Libssh < Formula depends_on "cmake" => :build depends_on "openssl" + # Fix compilation on 10.10 + # https://red.libssh.org/issues/164 + # https://red.libssh.org/issues/174 + patch :DATA + def install mkdir "build" do system "cmake", "..", *std_cmake_args @@ -26,3 +29,20 @@ class Libssh < Formula end end end + +__END__ +diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake +index 8f76af8..0ce7a31 100644 +--- a/ConfigureChecks.cmake ++++ b/ConfigureChecks.cmake +@@ -101,8 +101,8 @@ check_function_exists(snprintf HAVE_SNPRINTF) + check_function_exists(poll HAVE_POLL) + check_function_exists(select HAVE_SELECT) + check_function_exists(getaddrinfo HAVE_GETADDRINFO) +-check_function_exists(ntohll HAVE_NTOHLL) +-check_function_exists(htonll HAVE_HTONLL) ++check_symbol_exists(ntohll arpa/inet.h HAVE_NTOHLL) ++check_symbol_exists(htonll arpa/inet.h HAVE_HTONLL) + + if (WIN32) + check_function_exists(_strtoui64 HAVE__STRTOUI64) |
