libvirt automatic configuration picks up openwsman libraries, which later causes problems when the binary build is moved to another machine (where openwsman libraries are not installed): $ ldd /usr/lib64/libvirt.so.0.8009.0|grep libwsman libwsman.so.1 => not found libwsman_client.so.5 => not found libwsman_curl_client_transport.so.1 => not found $ As there is currently no package for openwsman in the Gentoo Portage tree, the proposed solution is to disable automatic configuration like this: --- app-emulation/libvirt/libvirt-8.9.0-r2.ebuild.orig 2023-03-21 20:40:33.000000000 +0100 +++ app-emulation/libvirt/libvirt-8.9.0-r2.ebuild 2023-04-09 22:50:38.880417250 +0200 @@ -279,6 +279,7 @@ -Dnetcf=disabled -Dsanlock=disabled + -Dopenwsman=disabled -Ddriver_esx=enabled -Dinit_script=systemd
Created attachment 859779 [details] libvirt build log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b90d3396ca30dceb7c74b230e3109c9bbd029467 commit b90d3396ca30dceb7c74b230e3109c9bbd029467 Author: Michal Privoznik <michal.privoznik@gmail.com> AuthorDate: 2023-04-11 18:42:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-11 19:04:16 +0000 app-emulation/libvirt: Explicitly disable openwsman in configure Libvirt's configure script (well, meson.build file) is written so that it automatically enables features found on the build host, unless explicitly disabled on the cmd line. And one of such features is 'openwsman' [1], which isn't packaged in the portage, but if installed from an overlay, then `quickpkg` won't work. Explicitly disable openwsman, until there's an official package (possibly not soon [2]). 1: https://openwsman.github.io/ 2: https://bugs.gentoo.org/430312 Bug: https://bugs.gentoo.org/430312 Closes: https://bugs.gentoo.org/904082 Signed-off-by: Michal Privoznik <michal.privoznik@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/30558 Signed-off-by: Sam James <sam@gentoo.org> app-emulation/libvirt/libvirt-8.7.0-r1.ebuild | 1 + app-emulation/libvirt/libvirt-8.8.0-r1.ebuild | 1 + app-emulation/libvirt/libvirt-8.9.0-r2.ebuild | 1 + app-emulation/libvirt/libvirt-8.9.0.ebuild | 1 + app-emulation/libvirt/libvirt-9999.ebuild | 1 + 5 files changed, 5 insertions(+)