diff options
author | Matthias Maier <tamiko@gentoo.org> | 2018-06-28 23:12:26 -0500 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2018-06-28 23:12:32 -0500 |
commit | be4417b793846de3ccc0290888d2666280547462 (patch) | |
tree | 94b61311f41f88fb94af9abf503f0232f55c81ac /app-emulation/libvirt/files | |
parent | app-emulation/libvirt: drop old versions (diff) | |
download | gentoo-be4417b793846de3ccc0290888d2666280547462.tar.gz gentoo-be4417b793846de3ccc0290888d2666280547462.tar.bz2 gentoo-be4417b793846de3ccc0290888d2666280547462.zip |
app-emulation/libvirt: drop old patches
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'app-emulation/libvirt/files')
-rw-r--r-- | app-emulation/libvirt/files/libvirt-4.1.0-do_not_use_sysconf.patch | 204 | ||||
-rw-r--r-- | app-emulation/libvirt/files/libvirt-4.1.0-unbreak_my_bridge.patch | 78 |
2 files changed, 0 insertions, 282 deletions
diff --git a/app-emulation/libvirt/files/libvirt-4.1.0-do_not_use_sysconf.patch b/app-emulation/libvirt/files/libvirt-4.1.0-do_not_use_sysconf.patch deleted file mode 100644 index 2c8339a8b519..000000000000 --- a/app-emulation/libvirt/files/libvirt-4.1.0-do_not_use_sysconf.patch +++ /dev/null @@ -1,204 +0,0 @@ -diff --git a/src/Makefile.am b/src/Makefile.am -index 3bf2da5..6b3f37a 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -2165,23 +2165,6 @@ EXTRA_DIST += \ - $(SYSCONF_FILES) \ - $(NULL) - --install-sysconfig: -- $(MKDIR_P) $(DESTDIR)$(sysconfdir)/sysconfig -- for f in $(SYSCONF_FILES:%.sysconf=%) ; \ -- do \ -- tgt=`basename $$f`; \ -- $(INSTALL_SCRIPT) $(srcdir)/$$f.sysconf \ -- $(DESTDIR)$(sysconfdir)/sysconfig/$$tgt; \ -- done -- --uninstall-sysconfig: -- for f in $(SYSCONF_FILES:%.sysconf=%) ; \ -- do \ -- tgt=`basename $$f`; \ -- rm -f $(DESTDIR)$(sysconfdir)/sysconfig/$$tgt; \ -- done -- rmdir $(DESTDIR)$(sysconfdir)/sysconfig || : -- - SYSVINIT_FILES_IN = \ - locking/virtlockd.init.in \ - logging/virtlogd.init.in \ -@@ -2268,14 +2251,14 @@ uninstall-polkit:: - endif ! WITH_POLKIT - - if LIBVIRT_INIT_SCRIPT_RED_HAT --install-init:: $(SYSVINIT_FILES) install-sysconfig -+install-init:: $(SYSVINIT_FILES) - $(MKDIR_P) $(DESTDIR)$(sysconfdir)/rc.d/init.d - for f in $(SYSVINIT_FILES:%.init=%) ; \ - do \ - $(INSTALL_SCRIPT) $$f.init $(DESTDIR)$(sysconfdir)/rc.d/init.d/$$f; \ - done - --uninstall-init:: uninstall-sysconfig -+uninstall-init:: - rm -f $(SYSVINIT_FILES:%.init=$(DESTDIR)$(sysconfdir)/rc.d/init.d/%) - rmdir $(DESTDIR)$(sysconfdir)/rc.d/init.d || : - -diff --git a/src/locking/virtlockd.service.in b/src/locking/virtlockd.service.in -index 3c9d587..2449b20 100644 ---- a/src/locking/virtlockd.service.in -+++ b/src/locking/virtlockd.service.in -@@ -7,8 +7,7 @@ Documentation=man:virtlockd(8) - Documentation=https://libvirt.org - - [Service] --EnvironmentFile=-/etc/sysconfig/virtlockd --ExecStart=@sbindir@/virtlockd $VIRTLOCKD_ARGS -+ExecStart=@sbindir@/virtlockd - ExecReload=/bin/kill -USR1 $MAINPID - # Loosing the locks is a really bad thing that will - # cause the machine to be fenced (rebooted), so make -diff --git a/src/logging/virtlogd.service.in b/src/logging/virtlogd.service.in -index 3d9ae36..4373619 100644 ---- a/src/logging/virtlogd.service.in -+++ b/src/logging/virtlogd.service.in -@@ -7,8 +7,7 @@ Documentation=man:virtlogd(8) - Documentation=https://libvirt.org - - [Service] --EnvironmentFile=-/etc/sysconfig/virtlogd --ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS -+ExecStart=@sbindir@/virtlogd - ExecReload=/bin/kill -USR1 $MAINPID - # Loosing the logs is a really bad thing that will - # cause the machine to be fenced (rebooted), so make -diff --git a/src/remote/libvirtd.service.in b/src/remote/libvirtd.service.in -index 769702e..1830c72 100644 ---- a/src/remote/libvirtd.service.in -+++ b/src/remote/libvirtd.service.in -@@ -21,8 +21,7 @@ Documentation=https://libvirt.org - - [Service] - Type=notify --EnvironmentFile=-/etc/sysconfig/libvirtd --ExecStart=@sbindir@/libvirtd $LIBVIRTD_ARGS -+ExecStart=@sbindir@/libvirtd - ExecReload=/bin/kill -HUP $MAINPID - KillMode=process - Restart=on-failure -diff --git a/tools/Makefile.am b/tools/Makefile.am -index 85e640b..99b9fa1 100644 ---- a/tools/Makefile.am -+++ b/tools/Makefile.am -@@ -336,15 +336,6 @@ install-data-local: install-init install-systemd install-nss \ - uninstall-local: uninstall-init uninstall-systemd uninstall-nss \ - uninstall-bash-completion - --install-sysconfig: -- $(MKDIR_P) $(DESTDIR)$(sysconfdir)/sysconfig -- $(INSTALL_DATA) $(srcdir)/libvirt-guests.sysconf \ -- $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests -- --uninstall-sysconfig: -- rm -f $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests -- rmdir $(DESTDIR)$(sysconfdir)/sysconfig ||: -- - EXTRA_DIST += libvirt-guests.sh.in libvirt-guests.init.in - - install-initscript: libvirt-guests.init -@@ -359,8 +350,8 @@ uninstall-initscript: - - if LIBVIRT_INIT_SCRIPT_RED_HAT - BUILT_SOURCES += libvirt-guests.init --install-init: install-sysconfig install-initscript --uninstall-init: uninstall-sysconfig uninstall-initscript -+install-init: install-initscript -+uninstall-init: uninstall-initscript - else ! LIBVIRT_INIT_SCRIPT_RED_HAT - install-init: - uninstall-init: -diff --git a/tools/libvirt-guests.service.in b/tools/libvirt-guests.service.in -index 491ca62..f0f417b 100644 ---- a/tools/libvirt-guests.service.in -+++ b/tools/libvirt-guests.service.in -@@ -10,7 +10,7 @@ Documentation=man:libvirtd(8) - Documentation=https://libvirt.org - - [Service] --EnvironmentFile=-/etc/sysconfig/libvirt-guests -+EnvironmentFile=-/etc/libvirt/libvirt-guests.conf - # Hack just call traditional service until we factor - # out the code - ExecStart=@libexecdir@/libvirt-guests.sh start -diff --git a/tools/libvirt-guests.sysconf b/tools/libvirt-guests.sysconf -index 08204ca..2da172b 100644 ---- a/tools/libvirt-guests.sysconf -+++ b/tools/libvirt-guests.sysconf -@@ -1,3 +1,10 @@ -+# -+# Warning: This configuration file is only sourced by the systemd -+# libvirt-guests.service unit. The coresponding openrc facility is in -+# /etc/init.d/libvirtd and /etc/conf.d/libvirtd -+# -+ -+ - # URIs to check for running guests - # example: URIS='default xen:/// vbox+tcp://host/system lxc:///' - #URIS=default -diff --git a/src/Makefile.am b/src/Makefile.am -index 6b3f37a..48e7133 100644 ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -2417,14 +2417,14 @@ SYSTEMD_UNIT_FILES = $(notdir $(SYSTEMD_UNIT_FILES_IN:%.in=%)) - BUILT_SOURCES += $(SYSTEMD_UNIT_FILES) - DISTCLEANFILES += $(SYSTEMD_UNIT_FILES) - --install-systemd: $(SYSTEMD_UNIT_FILES) install-sysconfig -+install-systemd: $(SYSTEMD_UNIT_FILES) - $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR) - for f in $(SYSTEMD_UNIT_FILES); \ - do \ - $(INSTALL_DATA) $$f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/ ; \ - done - --uninstall-systemd: uninstall-sysconfig -+uninstall-systemd: - rm -f $(SYSTEMD_UNIT_FILES:%=$(DESTDIR)$(SYSTEMD_UNIT_DIR)/%) - rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) || : - else ! LIBVIRT_INIT_SCRIPT_SYSTEMD -@@ -2496,7 +2496,7 @@ EXTRA_DIST += $(UPSTART_FILES) - if WITH_LIBVIRTD - if LIBVIRT_INIT_SCRIPT_UPSTART - --install-upstart: install-sysconfig -+install-upstart: - $(MKDIR_P) $(DESTDIR)$(sysconfdir)/event.d - for f in $(UPSTART_FILES:%.upstart=%); \ - do \ -@@ -2505,7 +2505,7 @@ install-upstart: install-sysconfig - $(DESTDIR)$(sysconfdir)/event.d/$$tgt ; \ - done - --uninstall-upstart: uninstall-sysconfig -+uninstall-upstart: - for f in $(UPSTART_FILES:%.upstart=%); \ - do \ - tgt=`basename $$f` ; \ -diff --git a/tools/Makefile.am b/tools/Makefile.am -index 99b9fa1..37e037c 100644 ---- a/tools/Makefile.am -+++ b/tools/Makefile.am -@@ -382,12 +382,12 @@ EXTRA_DIST += libvirt-guests.service.in - SYSTEMD_UNIT_DIR = $(prefix)/lib/systemd/system - - if LIBVIRT_INIT_SCRIPT_SYSTEMD --install-systemd: libvirt-guests.service install-sysconfig libvirt-guests.sh -+install-systemd: libvirt-guests.service libvirt-guests.sh - $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR) - $(INSTALL_DATA) libvirt-guests.service \ - $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service - --uninstall-systemd: uninstall-sysconfig -+uninstall-systemd: - rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service - rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) ||: - diff --git a/app-emulation/libvirt/files/libvirt-4.1.0-unbreak_my_bridge.patch b/app-emulation/libvirt/files/libvirt-4.1.0-unbreak_my_bridge.patch deleted file mode 100644 index c4d24ec020b1..000000000000 --- a/app-emulation/libvirt/files/libvirt-4.1.0-unbreak_my_bridge.patch +++ /dev/null @@ -1,78 +0,0 @@ -[PATCH] conf: avoid reporting errors when network driver is disabled - -In previous releases all these methods were a no-op if the network -driver is disabled. These helper methods are called unconditionally for -all types of network interface, so must be no-ops if missing. Other code -will already generate an error if the network driver is disabled and a -NIC with type=network is used. - -Signed-off-by: Daniel P. Berrangé <berrange redhat com> ---- - src/conf/domain_conf.c | 23 +++++++++-------------- - 1 file changed, 9 insertions(+), 14 deletions(-) - -diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c -index c8d051fa9f..79d6bd378e 100644 ---- a/src/conf/domain_conf.c -+++ b/src/conf/domain_conf.c -@@ -28979,10 +28979,13 @@ int - virDomainNetAllocateActualDevice(virDomainDefPtr dom, - virDomainNetDefPtr iface) - { -+ /* Just silently ignore if network driver isn't present. If something -+ * has tried to use a NIC with type=network, other code will already -+ * cause an error. This ensures type=bridge doesn't break when -+ * network driver is compiled out. -+ */ - if (!netAllocate) { -- virReportError(VIR_ERR_NO_SUPPORT, "%s", -- _("Network device allocation not available")); -- return -1; -+ return 0; - } - - return netAllocate(dom, iface); -@@ -28993,8 +28996,6 @@ virDomainNetNotifyActualDevice(virDomainDefPtr dom, - virDomainNetDefPtr iface) - { - if (!netNotify) { -- virReportError(VIR_ERR_NO_SUPPORT, "%s", -- _("Network device notification not available")); - return; - } - -@@ -29007,9 +29008,7 @@ virDomainNetReleaseActualDevice(virDomainDefPtr dom, - virDomainNetDefPtr iface) - { - if (!netRelease) { -- virReportError(VIR_ERR_NO_SUPPORT, "%s", -- _("Network device release not available")); -- return -1; -+ return 0; - } - - return netRelease(dom, iface); -@@ -29020,9 +29019,7 @@ virDomainNetBandwidthChangeAllowed(virDomainNetDefPtr iface, - virNetDevBandwidthPtr newBandwidth) - { - if (!netBandwidthChangeAllowed) { -- virReportError(VIR_ERR_NO_SUPPORT, "%s", -- _("Network device bandwidth change query not available")); -- return -1; -+ return 0; - } - - return netBandwidthChangeAllowed(iface, newBandwidth); -@@ -29033,9 +29030,7 @@ virDomainNetBandwidthUpdate(virDomainNetDefPtr iface, - virNetDevBandwidthPtr newBandwidth) - { - if (!netBandwidthUpdate) { -- virReportError(VIR_ERR_NO_SUPPORT, "%s", -- _("Network device bandwidth update not available")); -- return -1; -+ return 0; - } - - return netBandwidthUpdate(iface, newBandwidth); --- -2.14.3 |