Skip to contentSkip to conversation

libvirt-virsh: rdepends on libvirt-libvirtd

PATCH New [email protected] 1 participant 2 messages Aug 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libvirt-virsh: rdepends on libvirt-libvirtd

From: Kai Kang <[email protected]>

virsh can not do anything without libvirt daemon running, such as

$ virsh list
error: failed to connect to the hypervisor
error: Operation not supported: Cannot use direct socket mode if no URI is set

So add libvirt-libvirtd to RDEPENDS of libvirt-virsh.

---
 recipes-extended/libvirt/libvirt_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/libvirt/libvirt_git.bb +1 -0
index 706d4a40..d01eaaa4 100644
@@ -85,6 +85,7 @@ FILES:${PN}-virsh = " \
     ${bindir}/virsh \
     ${datadir}/bash-completion/completions/virsh \
 "
+RDEPENDS:${PN}-virsh = "${PN}-libvirtd"
 
 FILES:${PN} += "${libdir}/libvirt/connection-driver \
 	    ${datadir}/augeas \
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 virt-manager: update RDEPENDS for virt-manager-install

From: Kai Kang <[email protected]>

Update RDEPENDS for package virt-manager-install which are required by command virt-install. For example, the error is as follows when missing virsh:

Error launching ['virsh', '--connect', 'qemu:///system', 'console',
'myvm']: [Errno 2] No such file or directory

---
 recipes-extended/virt-manager/virt-manager_4.1.0.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
recipes-extended/virt-manager/virt-manager_4.1.0.bb +7 -1
index aa3df215..d752fd2b 100644
@@ -35,7 +35,13 @@ RDEPENDS:${PN} = " \
   python3-pygobject \
   python3-requests \
 "
-RDEPENDS:${PN}-install = "${PN}-common"
+RDEPENDS:${PN}-install = " \
+  ${PN}-common \
+  libvirt-virsh \
+  libxml2-python \
+  python3-pygobject \
+  python3-requests \
+"
 
 SETUPTOOLS_INSTALL_ARGS += "${PACKAGECONFIG_CONFARGS}"
 
Signature · 1 line
2.34.1