diff options
author | Matthias Maier <tamiko@gentoo.org> | 2020-11-09 18:30:20 -0600 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2020-11-09 18:34:04 -0600 |
commit | 739218492b233d56918dc5c8e70170da9471f355 (patch) | |
tree | 8a90aac3a427b12035b0826983a7d37e4247c175 /app-emulation | |
parent | dev-python/python-iptables-1.0.0-r1: revbump, add patch for new glibc (diff) | |
download | gentoo-739218492b233d56918dc5c8e70170da9471f355.tar.gz gentoo-739218492b233d56918dc5c8e70170da9471f355.tar.bz2 gentoo-739218492b233d56918dc5c8e70170da9471f355.zip |
app-emulation/libvirt: 6.8.0/6.9.0 fix libvirt-lxc dbus connection
Closes: https://bugs.gentoo.org/753761
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch | 24 | ||||
-rw-r--r-- | app-emulation/libvirt/libvirt-6.8.0-r1.ebuild (renamed from app-emulation/libvirt/libvirt-6.8.0.ebuild) | 1 | ||||
-rw-r--r-- | app-emulation/libvirt/libvirt-6.9.0-r1.ebuild (renamed from app-emulation/libvirt/libvirt-6.9.0.ebuild) | 1 |
3 files changed, 26 insertions, 0 deletions
diff --git a/app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch b/app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch new file mode 100644 index 000000000000..ea1a23795330 --- /dev/null +++ b/app-emulation/libvirt/files/libvirt-6.8.0-fix-libvirt-lxc-dbus.patch @@ -0,0 +1,24 @@ +https://bugs.gentoo.org/753761 + +diff --git a/src/util/virgdbus.c b/src/util/virgdbus.c +index 4360a6a..4ad1a5c 100644 +--- a/src/util/virgdbus.c ++++ b/src/util/virgdbus.c +@@ -54,11 +54,15 @@ virGDBusBusInit(GBusType type, GError **error) + if (sharedBus) { + return g_bus_get_sync(type, NULL, error); + } else { ++ GDBusConnectionFlags dbusFlags = ++ G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT | ++ G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION; ++ + address = g_dbus_address_get_for_bus_sync(type, NULL, error); +- if (error) ++ if (*error) + return NULL; + return g_dbus_connection_new_for_address_sync(address, +- G_DBUS_CONNECTION_FLAGS_NONE, ++ dbusFlags, + NULL, + NULL, + error); diff --git a/app-emulation/libvirt/libvirt-6.8.0.ebuild b/app-emulation/libvirt/libvirt-6.8.0-r1.ebuild index 96ccd9a19494..32c72d4990bd 100644 --- a/app-emulation/libvirt/libvirt-6.8.0.ebuild +++ b/app-emulation/libvirt/libvirt-6.8.0-r1.ebuild @@ -128,6 +128,7 @@ PATCHES=( "${FILESDIR}"/${PN}-6.7.0-do-not-use-sysconfig.patch "${FILESDIR}"/${PN}-6.7.0-doc-path.patch "${FILESDIR}"/${PN}-6.7.0-fix-paths-for-apparmor.patch + "${FILESDIR}"/${PN}-6.8.0-fix-libvirt-lxc-dbus.patch ) pkg_setup() { diff --git a/app-emulation/libvirt/libvirt-6.9.0.ebuild b/app-emulation/libvirt/libvirt-6.9.0-r1.ebuild index 96ccd9a19494..32c72d4990bd 100644 --- a/app-emulation/libvirt/libvirt-6.9.0.ebuild +++ b/app-emulation/libvirt/libvirt-6.9.0-r1.ebuild @@ -128,6 +128,7 @@ PATCHES=( "${FILESDIR}"/${PN}-6.7.0-do-not-use-sysconfig.patch "${FILESDIR}"/${PN}-6.7.0-doc-path.patch "${FILESDIR}"/${PN}-6.7.0-fix-paths-for-apparmor.patch + "${FILESDIR}"/${PN}-6.8.0-fix-libvirt-lxc-dbus.patch ) pkg_setup() { |