From d4d244da6e09dffef6cc20e9b681d7cc0a3aba15 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 30 Jul 2012 11:59:00 -0300 Subject: [PATCH] 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 Homebrew/homebrew#13540. --- Formula/xmlrpc-c.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/xmlrpc-c.rb b/Formula/xmlrpc-c.rb index 87848086e1c..f88800cb2d0 100644 --- a/Formula/xmlrpc-c.rb +++ b/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