diff options
| author | Misty De Meo | 2012-07-30 11:59:00 -0300 |
|---|---|---|
| committer | Misty De Meo | 2012-07-30 11:59:19 -0300 |
| commit | 08a18364e69013d728d3ecac5b12ca61a01fd623 (patch) | |
| tree | 80bb0bb2493e7d0b042a7e3361b5ab0c8c3b44a6 /Library/Formula | |
| parent | 8b8688031c8ac9d6142e4a02aa6554b7f0f7cd56 (diff) | |
| download | homebrew-08a18364e69013d728d3ecac5b12ca61a01fd623.tar.bz2 | |
xmlrpc-c: Fix curl #include on 10.8
curl/types.h has been deprecated for many years, and is an empty file
in the 10.6 and 10.7 versions of curl. 10.8 upgraded to a version of
curl which has dropped it entirely, breaking some software which still
#included the deprecreated header. This patch backports an upstream fix
which removes the unnecessary #include.
Fixes #13540.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/xmlrpc-c.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/xmlrpc-c.rb b/Library/Formula/xmlrpc-c.rb index 87848086e..f88800cb2 100644 --- a/Library/Formula/xmlrpc-c.rb +++ b/Library/Formula/xmlrpc-c.rb @@ -5,6 +5,15 @@ class XmlrpcC < Formula url 'http://downloads.sourceforge.net/sourceforge/xmlrpc-c/xmlrpc-c-1.16.42.tgz' sha1 '7a71fabc652c2848a7226605432a2e420a02dff0' + def patches + # Disable including deprecated curl/types.h, which is missing on 10.8 + # On 10.6 and 10.7 it's empty, so could probably patch unconditionally + # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636457#10 + if MacOS.mountain_lion? + "http://xmlrpc-c.svn.sourceforge.net/viewvc/xmlrpc-c/stable/lib/curl_transport/xmlrpc_curl_transport.c?r1=2115&r2=2150&view=patch" + end + end + def install ENV.deparallelize # --enable-libxml2-backend to lose some weight and not statically link in expat |
