diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libvirt.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/libvirt.rb b/Library/Formula/libvirt.rb index bc89ef74b..ba950c6f5 100644 --- a/Library/Formula/libvirt.rb +++ b/Library/Formula/libvirt.rb @@ -24,6 +24,21 @@ class Libvirt < Formula cause "Undefined symbols when linking" end + def patches + { + :p1 => [ + # getsockopt() on Mac OS X requires using SOL_LOCAL instead of + # SOL_SOCKET for LOCAL_PEERCRED. This corrects that for Mac OS X + "http://libvirt.org/git/?p=libvirt.git;a=commitdiff_plain;h=5a468b38b6b9ac66c1db5d8ed5d5a122a9cf01cd", + # sysctlbyname() requires a different name on Mac OS X for CPU + # frequency than FreeBSD does. This patch corrects the name. + "http://libvirt.org/git/?p=libvirt.git;a=commitdiff_plain;h=2d74822a9eb4856c7f5216bb92bcb76630660f72", + # Fix Snow Leopard and lower broken by the 1st patch + "http://libvirt.org/git/?p=libvirt.git;a=commitdiff_plain;h=2f776d49796fe34dcf5a876f4c4e34f79b66f705", + ] + } + end + def install args = ["--prefix=#{prefix}", "--localstatedir=#{var}", |
