1 |
cardoe 10/05/26 17:34:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libvirt-0.8.1-r1.ebuild |
5 |
Log: |
6 |
Grab a bunch of patches to fix some NULL ptr deref issues and fix up some corner cases where libvirt wasn't handling errors correctly. Should improve the stability of libvirt. Fix bug #311187 for python eclass updates as well. |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.54 app-emulation/libvirt/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.54&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?rev=1.54&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/ChangeLog?r1=1.53&r2=1.54 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v |
19 |
retrieving revision 1.53 |
20 |
retrieving revision 1.54 |
21 |
diff -u -r1.53 -r1.54 |
22 |
--- ChangeLog 3 May 2010 20:09:25 -0000 1.53 |
23 |
+++ ChangeLog 26 May 2010 17:34:38 -0000 1.54 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for app-emulation/libvirt |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.53 2010/05/03 20:09:25 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/ChangeLog,v 1.54 2010/05/26 17:34:38 cardoe Exp $ |
29 |
+ |
30 |
+*libvirt-0.8.1-r1 (26 May 2010) |
31 |
+ |
32 |
+ 26 May 2010; Doug Goldstein <cardoe@g.o> +libvirt-0.8.1-r1.ebuild: |
33 |
+ Grab a bunch of patches to fix some NULL ptr deref issues and fix up some |
34 |
+ corner cases where libvirt wasn't handling errors correctly. Should |
35 |
+ improve the stability of libvirt. Fix bug #311187 for python eclass |
36 |
+ updates as well. |
37 |
|
38 |
*libvirt-0.8.1 (03 May 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-emulation/libvirt/libvirt-0.8.1-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/libvirt-0.8.1-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/libvirt/libvirt-0.8.1-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: libvirt-0.8.1-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-0.8.1-r1.ebuild,v 1.1 2010/05/26 17:34:38 cardoe Exp $ |
53 |
|
54 |
BACKPORTS=1 |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
PYTHON_DEPEND="python? 2:2.4" |
59 |
#RESTRICT_PYTHON_ABIS="3.*" |
60 |
#SUPPORT_PYTHON_ABIS="1" |
61 |
|
62 |
inherit eutils python |
63 |
|
64 |
DESCRIPTION="C toolkit to manipulate virtual machines" |
65 |
HOMEPAGE="http://www.libvirt.org/" |
66 |
SRC_URI="http://libvirt.org/sources/${P}.tar.gz |
67 |
${BACKPORTS:+mirror://gentoo/${P}-backports-${BACKPORTS}.tar.bz2}" |
68 |
LICENSE="LGPL-2.1" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~x86" |
71 |
IUSE="avahi caps iscsi +libvirtd lvm +lxc +network nfs nls numa openvz \ |
72 |
parted phyp policykit python qemu sasl selinux uml virtualbox xen udev" |
73 |
# IUSE=one : bug #293416 & bug# 299011 |
74 |
|
75 |
# Some tests are simply broken in the released tarball, ignore them |
76 |
# for now. |
77 |
RESTRICT=test |
78 |
|
79 |
RDEPEND="sys-libs/readline |
80 |
sys-libs/ncurses |
81 |
>=net-misc/curl-7.18.0 |
82 |
>=dev-libs/libxml2-2.7.6 |
83 |
>=net-libs/gnutls-1.0.25 |
84 |
sys-fs/sysfsutils |
85 |
sys-apps/util-linux |
86 |
>=net-analyzer/netcat6-1.0-r2 |
87 |
avahi? ( >=net-dns/avahi-0.6[dbus] ) |
88 |
caps? ( sys-libs/libcap-ng ) |
89 |
iscsi? ( sys-block/open-iscsi ) |
90 |
libvirtd? ( net-misc/bridge-utils ) |
91 |
lvm? ( >=sys-fs/lvm2-2.02.48-r2 ) |
92 |
nfs? ( net-fs/nfs-utils ) |
93 |
numa? ( sys-process/numactl ) |
94 |
openvz? ( sys-kernel/openvz-sources ) |
95 |
parted? ( >=sys-apps/parted-1.8 ) |
96 |
phyp? ( net-libs/libssh2 ) |
97 |
policykit? ( >=sys-auth/polkit-0.9 ) |
98 |
qemu? ( || ( app-emulation/qemu-kvm >=app-emulation/qemu-0.10.0 ) ) |
99 |
sasl? ( dev-libs/cyrus-sasl ) |
100 |
selinux? ( sys-libs/libselinux ) |
101 |
virtualbox? ( || ( >=app-emulation/virtualbox-ose-2.2.0 >=app-emulation/virtualbox-bin-2.2.0 ) ) |
102 |
xen? ( app-emulation/xen-tools app-emulation/xen ) |
103 |
udev? ( >=sys-fs/udev-145 >=x11-libs/libpciaccess-0.10.9 )" |
104 |
# one? ( dev-libs/xmlrpc-c ) |
105 |
DEPEND="${RDEPEND} |
106 |
dev-util/pkgconfig |
107 |
nls? ( sys-devel/gettext )" |
108 |
|
109 |
pkg_setup() { |
110 |
python_set_active_version 2 |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
[[ -n ${BACKPORTS} ]] && \ |
115 |
EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" epatch |
116 |
} |
117 |
|
118 |
src_configure() { |
119 |
local myconf="" |
120 |
|
121 |
## enable/disable daemon, otherwise client only utils |
122 |
myconf="${myconf} $(use_with libvirtd)" |
123 |
|
124 |
## enable/disable the daemon using avahi to find VMs |
125 |
myconf="${myconf} $(use_with avahi)" |
126 |
|
127 |
## hypervisors on the local host |
128 |
myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)" |
129 |
if ! use policykit && use xen; then |
130 |
myconf="${myconf} --with-xen-proxy" |
131 |
fi |
132 |
myconf="${myconf} $(use_with openvz)" |
133 |
myconf="${myconf} $(use_with lxc)" |
134 |
myconf="${myconf} $(use_with virtualbox vbox)" |
135 |
myconf="${myconf} $(use_with uml)" |
136 |
myconf="${myconf} $(use_with qemu)" |
137 |
# doesn't belong with hypervisors but links to libvirtd for some reason |
138 |
#myconf="${myconf} $(use_with one)" |
139 |
|
140 |
## hypervisor protocols |
141 |
myconf="${myconf} $(use_with phyp)" |
142 |
myconf="${myconf} --with-esx" |
143 |
|
144 |
## additional host drivers |
145 |
myconf="${myconf} $(use_with network)" |
146 |
myconf="${myconf} --with-storage-fs" |
147 |
myconf="${myconf} $(use_with lvm storage-lvm)" |
148 |
myconf="${myconf} $(use_with iscsi storage-iscsi)" |
149 |
myconf="${myconf} $(use_with parted storage-disk)" |
150 |
myconf="${myconf} $(use_with lvm storage-mpath)" |
151 |
myconf="${myconf} $(use_with numa numactl)" |
152 |
myconf="${myconf} $(use_with selinux)" |
153 |
|
154 |
# udev for device support details |
155 |
myconf="${myconf} $(use_with udev)" |
156 |
|
157 |
# linux capability support so we don't need privileged accounts |
158 |
myconf="${myconf} $(use_with caps capng)" |
159 |
|
160 |
## auth stuff |
161 |
myconf="${myconf} $(use_with policykit polkit)" |
162 |
myconf="${myconf} $(use_with sasl)" |
163 |
|
164 |
## other |
165 |
myconf="${myconf} $(use_enable nls)" |
166 |
myconf="${myconf} $(use_with python)" |
167 |
|
168 |
## stuff we don't yet support |
169 |
myconf="${myconf} --without-netcf" |
170 |
|
171 |
# we use udev over hal |
172 |
myconf="${myconf} --without-hal" |
173 |
|
174 |
# this is a nasty trick to work around the problem in bug |
175 |
# #275073. The reason why we don't solve this properly is that |
176 |
# it'll require us to rebuild autotools (and we don't really want |
177 |
# to do that right now). The proper solution has been sent |
178 |
# upstream and should hopefully land in 0.7.7, in the mean time, |
179 |
# mime the same functionality with this. |
180 |
case ${CHOST} in |
181 |
*cygwin* | *mingw* ) |
182 |
;; |
183 |
*) |
184 |
ac_cv_prog_WINDRES=no |
185 |
;; |
186 |
esac |
187 |
|
188 |
econf \ |
189 |
${myconf} \ |
190 |
--disable-static \ |
191 |
--docdir=/usr/share/doc/${PF} \ |
192 |
--with-remote \ |
193 |
--localstatedir=/var \ |
194 |
--with-remote-pid-file=/var/run/libvirtd.pid |
195 |
} |
196 |
|
197 |
src_test() { |
198 |
# Explicitly allow parallel build of tests |
199 |
emake check || die "tests failed" |
200 |
} |
201 |
|
202 |
src_install() { |
203 |
emake install \ |
204 |
DESTDIR="${D}" \ |
205 |
HTML_DIR=/usr/share/doc/${PF}/html \ |
206 |
DOCS_DIR=/usr/share/doc/${PF}/python \ |
207 |
EXAMPLE_DIR=/usr/share/doc/${PF}/python/examples \ |
208 |
|| die "emake install failed" |
209 |
|
210 |
newinitd "${FILESDIR}/libvirtd.init" libvirtd || die |
211 |
newconfd "${FILESDIR}/libvirtd.confd" libvirtd || die |
212 |
|
213 |
keepdir /var/lib/libvirt/images |
214 |
|
215 |
find "${D}" -name '*.la' -delete || die |
216 |
} |
217 |
|
218 |
pkg_preinst() { |
219 |
# we only ever want to generate this once |
220 |
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then |
221 |
rm -rf "${D}"/etc/libvirt/qemu/networks/default.xml |
222 |
fi |
223 |
} |
224 |
|
225 |
pkg_postinst() { |
226 |
use python && python_mod_optimize $(python_get_sitedir)/libvirt.py |
227 |
|
228 |
elog |
229 |
if use policykit; then |
230 |
elog "You must have run the following at least once:" |
231 |
elog |
232 |
elog "$ polkit-auth --grant org.libvirt.unix.manage --user \"USERNAME\"" |
233 |
elog |
234 |
elog "to grant USERNAME access to libvirt when using USE=policykit" |
235 |
else |
236 |
elog "To allow normal users to connect to libvirtd you must change the" |
237 |
elog " unix sock group and/or perms in /etc/libvirt/libvirtd.conf" |
238 |
fi |
239 |
elog |
240 |
elog "For the basic networking support (bridged and routed networks)" |
241 |
elog "you don't need any extra software. For more complex network modes" |
242 |
elog "including but not limited to NATed network, you'll need the" |
243 |
elog "following packages": |
244 |
elog |
245 |
elog " net-dns/dnsmasq" |
246 |
elog " net-firewall/iptables" |
247 |
elog " net-firewall/ebtables" |
248 |
elog |
249 |
if has_version net-dns/dnsmasq; then |
250 |
ewarn "If you have a DNS server setup on your machine, you will have" |
251 |
ewarn "to configure /etc/dnsmasq.conf to enable the following settings: " |
252 |
ewarn " bind-interfaces" |
253 |
ewarn " interface or except-interface" |
254 |
ewarn |
255 |
ewarn "Otherwise you might have issues with your existing DNS server." |
256 |
fi |
257 |
} |
258 |
|
259 |
pkg_postrm() { |
260 |
use python && python_mod_cleanup $(python_get_sitedir)/libvirt.py |
261 |
} |