diff options
| author | Doug Goldstein | 2013-10-08 16:27:51 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-11 20:09:10 -0700 |
| commit | aeafb2f249b6b76b52a0627b79ec12d0d2cf5f74 (patch) | |
| tree | a83732197082f1d36147f3f6f4a8696caf7d7317 /Library/Formula | |
| parent | b5f7394d37abe89c9dfd50b3612fa8ebbabfacae (diff) | |
| download | homebrew-aeafb2f249b6b76b52a0627b79ec12d0d2cf5f74.tar.bz2 | |
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 <flangy@gmail.com>
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}", |
