Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904082 - app-emulation/libvirt hidden dependency on openwsman libraries
Summary: app-emulation/libvirt hidden dependency on openwsman libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-04-09 21:06 UTC by Laszlo Valko
Modified: 2023-04-11 19:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libvirt build log (emerge.log.xz,51.70 KB, application/octet-stream)
2023-04-09 21:13 UTC, Laszlo Valko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Valko 2023-04-09 21:06:56 UTC
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
Comment 1 Laszlo Valko 2023-04-09 21:13:44 UTC
Created attachment 859779 [details]
libvirt build log
Comment 2 Larry the Git Cow gentoo-dev 2023-04-11 19:04:46 UTC
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(+)