From aeafb2f249b6b76b52a0627b79ec12d0d2cf5f74 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Tue, 8 Oct 2013 16:27:51 -0500 Subject: libvirtd: apply upstream patches libvirtd would fail to successfully run on Mac OS X. With these two upstream changes that is resolved. It can be tested by running 'virsh version'. Closes #23141. Signed-off-by: Adam Vandenberg --- Library/Formula/libvirt.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Library/Formula') 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}", -- cgit v1.2.3