1 |
commit: fd9a637c9353db923cdea07c0455f6431d177aae |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 26 22:57:40 2015 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 26 23:02:07 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd9a637c |
7 |
|
8 |
app-emulation/libvirt: version bump to 1.3.0, provde service file for virtlogd |
9 |
|
10 |
- Bump to version 1.3.0 (including backport for CVE-2015-5313) |
11 |
- Add runscript for freshly introduce virtlogd |
12 |
|
13 |
Gentoo-Bugs: 569526, 568860, 567152 |
14 |
|
15 |
Package-Manager: portage-2.2.26 |
16 |
|
17 |
app-emulation/libvirt/Manifest | 2 ++ |
18 |
...atch => libvirt-1.3.0-do_not_use_sysconf.patch} | 16 ++++++++++++++- |
19 |
app-emulation/libvirt/files/virtlogd.init-r1 | 24 ++++++++++++++++++++++ |
20 |
app-emulation/libvirt/libvirt-1.2.21-r2.ebuild | 2 +- |
21 |
.../{libvirt-9999.ebuild => libvirt-1.3.0.ebuild} | 9 ++++++-- |
22 |
app-emulation/libvirt/libvirt-9999.ebuild | 3 ++- |
23 |
6 files changed, 51 insertions(+), 5 deletions(-) |
24 |
|
25 |
diff --git a/app-emulation/libvirt/Manifest b/app-emulation/libvirt/Manifest |
26 |
index fad874c..a7622e1 100644 |
27 |
--- a/app-emulation/libvirt/Manifest |
28 |
+++ b/app-emulation/libvirt/Manifest |
29 |
@@ -1,2 +1,4 @@ |
30 |
DIST libvirt-1.2.21-20151222.tar.xz 1684 SHA256 6c97f288470ec58bcbe98507563c6a191892c6f8813a7b9688c09b823934cbe5 SHA512 4fd43f0e12434b78ac3e671ad8eb0e402d384cff6278f6d0db322a068c2c8807c7c7f7e5774aa9d19e2a85e49f6d9888908b32fca5fc04980134edaccba0afe2 WHIRLPOOL 2bfbc3cbf1ca44a2bb06ddf2e8eabeb116165560b9c73d649d7b8cc9baba851f5e9246414bfc2c4740f27d0d0d42b6176eaec43b05e8c1e54de2804150c2cde1 |
31 |
DIST libvirt-1.2.21.tar.gz 29848954 SHA256 8d406582f5fe88d739d1d83e0ba7ac7f91f5a8da4be82162ab85631744d8925b SHA512 5c15d0ba5d75c13f735c6a60dfdbad007426f77e113f95894d520f7fc358fa4361d5cce7bb9a548a436f323b845f13b8940abbad568b8b146418430068bb970e WHIRLPOOL d53bbb07c85b3aa2d9b0f38ff2edd3cd0a2a5300627f3e2f0a82bc057303617cab9d6f1d8a9a771bd968b0496d38d3a39a0154f88bdca44dda359a65fdc2c650 |
32 |
+DIST libvirt-1.3.0-20151222.tar.xz 1684 SHA256 3628c3398862eae2966ccf0e55822e4cb8f47e6e8c1b0d17b6fdb9f69dc5490b SHA512 71c8dabc9cb8ead2858bf2d77d3831db59ac34076c99a4ae607c7bb4678b0af28a9f31fdca047ee174237f0e91fbb8db3a843e605256514e1d0ad527fc412275 WHIRLPOOL 47ebd21dd7d17812b8e97ebb70453574550cac18b0cf88cd38c152565d1e01f725a6da90878c41c7836a59318c1294859870e5bb523981954618fdde6704360e |
33 |
+DIST libvirt-1.3.0.tar.gz 30114683 SHA256 ebcf5645fa565e3fe2fe94a86e841db9b768cf0e0a7e6cf395c6327f9a23bd64 SHA512 e252390a05b76e9cd9ed02caadd0ee0d674505f60940bb6ced955e17f69c7dd55fe5b38204ae5c25b6e5703415a0f6a12fc545d138d0e8b016457a85dc8fa2b8 WHIRLPOOL 852c592b27be86d3fb2ec75ca5debf9a1e0ac5de6d1ab06c55c2d70e83de125d10c2fc967b7578fba9137ed7a30b7a7e195f4e5f8d35708deeeddc97424d5e40 |
34 |
|
35 |
diff --git a/app-emulation/libvirt/files/libvirt-1.2.22-do_not_use_sysconf.patch b/app-emulation/libvirt/files/libvirt-1.3.0-do_not_use_sysconf.patch |
36 |
similarity index 86% |
37 |
rename from app-emulation/libvirt/files/libvirt-1.2.22-do_not_use_sysconf.patch |
38 |
rename to app-emulation/libvirt/files/libvirt-1.3.0-do_not_use_sysconf.patch |
39 |
index 3296513..47010c4 100644 |
40 |
--- a/app-emulation/libvirt/files/libvirt-1.2.22-do_not_use_sysconf.patch |
41 |
+++ b/app-emulation/libvirt/files/libvirt-1.3.0-do_not_use_sysconf.patch |
42 |
@@ -14,7 +14,7 @@ index be1b5a9..5ce0e1e 100644 |
43 |
rm -f $(DESTDIR)$(sysconfdir)/sysconfig/libvirtd |
44 |
rmdir $(DESTDIR)$(sysconfdir)/sysconfig || : |
45 |
diff --git a/daemon/libvirtd.service.in b/daemon/libvirtd.service.in |
46 |
-index 9e67e43..68a32f8 100644 |
47 |
+index 608221c..63708f4 100644 |
48 |
--- a/daemon/libvirtd.service.in |
49 |
+++ b/daemon/libvirtd.service.in |
50 |
@@ -12,8 +12,7 @@ Documentation=http://libvirt.org |
51 |
@@ -57,6 +57,20 @@ index 57089b0..ace0c83 100644 |
52 |
ExecReload=/bin/kill -USR1 $MAINPID |
53 |
# Loosing the locks is a really bad thing that will |
54 |
# cause the machine to be fenced (rebooted), so make |
55 |
+diff --git a/src/logging/virtlogd.service.in b/src/logging/virtlogd.service.in |
56 |
+index a264d3a..b467884 100644 |
57 |
+--- a/src/logging/virtlogd.service.in |
58 |
++++ b/src/logging/virtlogd.service.in |
59 |
+@@ -5,8 +5,7 @@ Documentation=man:virtlogd(8) |
60 |
+ Documentation=http://libvirt.org |
61 |
+ |
62 |
+ [Service] |
63 |
+-EnvironmentFile=-/etc/sysconfig/virtlogd |
64 |
+-ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS |
65 |
++ExecStart=@sbindir@/virtlogd |
66 |
+ ExecReload=/bin/kill -USR1 $MAINPID |
67 |
+ # Loosing the logs is a really bad thing that will |
68 |
+ # cause the machine to be fenced (rebooted), so make |
69 |
diff --git a/tools/Makefile.am b/tools/Makefile.am |
70 |
index 9180564..e72d5f4 100644 |
71 |
--- a/tools/Makefile.am |
72 |
|
73 |
diff --git a/app-emulation/libvirt/files/virtlogd.init-r1 b/app-emulation/libvirt/files/virtlogd.init-r1 |
74 |
new file mode 100644 |
75 |
index 0000000..fac51d9 |
76 |
--- /dev/null |
77 |
+++ b/app-emulation/libvirt/files/virtlogd.init-r1 |
78 |
@@ -0,0 +1,24 @@ |
79 |
+#!/sbin/runscript |
80 |
+# Copyright 1999-2015 Gentoo Foundation |
81 |
+# Distributed under the terms of the GNU General Public License v2 |
82 |
+# $Id$ |
83 |
+ |
84 |
+description="libvirt virtual machine logging manager" |
85 |
+command="/usr/sbin/virtlogd" |
86 |
+command_args="-d" |
87 |
+pidfile="/var/run/virtlogd.pid" |
88 |
+ |
89 |
+extra_started_commands="reload" |
90 |
+description_reload="re-exec the daemon, while maintaining open connections" |
91 |
+ |
92 |
+ |
93 |
+depend() { |
94 |
+ after ntp-client ntpd nfs nfsmount corosync |
95 |
+} |
96 |
+ |
97 |
+reload() { |
98 |
+ ebegin "re-exec() virtlogd" |
99 |
+ |
100 |
+ start-stop-daemon --signal SIGUSR1 \ |
101 |
+ --exec "${command}" --pidfile "${pidfile}" |
102 |
+} |
103 |
|
104 |
diff --git a/app-emulation/libvirt/libvirt-1.2.21-r2.ebuild b/app-emulation/libvirt/libvirt-1.2.21-r2.ebuild |
105 |
index 16c0e32..80333ee 100644 |
106 |
--- a/app-emulation/libvirt/libvirt-1.2.21-r2.ebuild |
107 |
+++ b/app-emulation/libvirt/libvirt-1.2.21-r2.ebuild |
108 |
@@ -6,7 +6,7 @@ EAPI=5 |
109 |
|
110 |
inherit eutils user autotools-utils linux-info systemd readme.gentoo |
111 |
|
112 |
-BACKPORTS="20151222" |
113 |
+BACKPORTS="20151222" # CVE-2015-5313 |
114 |
|
115 |
if [[ ${PV} = *9999* ]]; then |
116 |
inherit git-r3 |
117 |
|
118 |
diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-1.3.0.ebuild |
119 |
similarity index 97% |
120 |
copy from app-emulation/libvirt/libvirt-9999.ebuild |
121 |
copy to app-emulation/libvirt/libvirt-1.3.0.ebuild |
122 |
index 48aa2c1..0f03ffa 100644 |
123 |
--- a/app-emulation/libvirt/libvirt-9999.ebuild |
124 |
+++ b/app-emulation/libvirt/libvirt-1.3.0.ebuild |
125 |
@@ -6,7 +6,7 @@ EAPI=5 |
126 |
|
127 |
inherit eutils user autotools-utils linux-info systemd readme.gentoo |
128 |
|
129 |
-BACKPORTS="" |
130 |
+BACKPORTS="20151222" # CVE-2015-5313 |
131 |
|
132 |
if [[ ${PV} = *9999* ]]; then |
133 |
inherit git-r3 |
134 |
@@ -218,7 +218,7 @@ src_prepare() { |
135 |
fi |
136 |
|
137 |
epatch \ |
138 |
- "${FILESDIR}"/${PN}-1.2.22-do_not_use_sysconf.patch \ |
139 |
+ "${FILESDIR}"/${P}-do_not_use_sysconf.patch \ |
140 |
"${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch \ |
141 |
"${FILESDIR}"/${PN}-1.2.17-fix_paths_for_apparmor.patch |
142 |
|
143 |
@@ -312,6 +312,10 @@ src_configure() { |
144 |
# bug #377279 |
145 |
(cd .gnulib && git reset --hard > /dev/null) |
146 |
fi |
147 |
+ |
148 |
+ # Workaround: Sometimes this subdirectory is missing and leads to a |
149 |
+ # build failure. |
150 |
+ mkdir -p "${BUILD_DIR}"/docs/internals |
151 |
} |
152 |
|
153 |
src_test() { |
154 |
@@ -345,6 +349,7 @@ src_install() { |
155 |
newinitd "${S}/libvirtd.init" libvirtd || die |
156 |
newinitd "${FILESDIR}/libvirt-guests.init-r1" libvirt-guests || die |
157 |
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die |
158 |
+ newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die |
159 |
|
160 |
newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die |
161 |
newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die |
162 |
|
163 |
diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-9999.ebuild |
164 |
index 48aa2c1..f07387f 100644 |
165 |
--- a/app-emulation/libvirt/libvirt-9999.ebuild |
166 |
+++ b/app-emulation/libvirt/libvirt-9999.ebuild |
167 |
@@ -218,7 +218,7 @@ src_prepare() { |
168 |
fi |
169 |
|
170 |
epatch \ |
171 |
- "${FILESDIR}"/${PN}-1.2.22-do_not_use_sysconf.patch \ |
172 |
+ "${FILESDIR}"/${PN}-1.3.0-do_not_use_sysconf.patch \ |
173 |
"${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch \ |
174 |
"${FILESDIR}"/${PN}-1.2.17-fix_paths_for_apparmor.patch |
175 |
|
176 |
@@ -345,6 +345,7 @@ src_install() { |
177 |
newinitd "${S}/libvirtd.init" libvirtd || die |
178 |
newinitd "${FILESDIR}/libvirt-guests.init-r1" libvirt-guests || die |
179 |
newinitd "${FILESDIR}/virtlockd.init-r1" virtlockd || die |
180 |
+ newinitd "${FILESDIR}/virtlogd.init-r1" virtlogd || die |
181 |
|
182 |
newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd || die |
183 |
newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests || die |