``` # emerge -pv nbdkit ... [ebuild R ] sys-block/nbdkit-1.36.1::gentoo USE="zlib -curl -ext2 -gnutls (-libguestfs) -libssh -libvirt -lzma -nbd (-selinux) -torrent -valgrind -zlib-ng -zstd" 0 KiB # emerge -c ... >>> Unmerging (1 of 1) net-libs/libssh-0.11.1-r1... ... !!! existing preserved libs: >>> package: net-libs/libssh-0.11.1-r1 * - /usr/lib64/libssh.so.4 * - /usr/lib64/libssh.so.4.10.1 * used by /usr/lib64/nbdkit/plugins/nbdkit-ssh-plugin.so (sys-block/nbdkit-1.36.1) Use emerge @preserved-rebuild to rebuild packages using these libraries ``` Reproducible: Always Steps to Reproduce: Provided you don't have libssh in your world file or sets or pulled in by something else: 1. emerge -1 libssh 2. emerge -1 nbdkit 3. emerge -c libssh Alternatively you can forcefully unmerge libssh and you'll see nbdkit in the list of packages using the preserved libs.
I forgot to add, after reemerging nbdlit after libssh depclean, all is fixed, which confirms nbdkit links agains libssh not when the use flag is enabled but whenever libssh is present on the system.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91d59ede50f0aa6affe08675edf99e7e54c9c684 commit 91d59ede50f0aa6affe08675edf99e7e54c9c684 Author: Christopher Byrne <salah.coronya@gmail.com> AuthorDate: 2025-03-01 01:26:41 +0000 Commit: Arsen Arsenović <arsen@gentoo.org> CommitDate: 2025-03-02 21:14:55 +0000 sys-block/nbdkit: add 1.42.0 Fixes libssh support, it wasn't wired up in src_configure before Add python bindings (needed to add app-emulation/virt-v2v) Closes: https://bugs.gentoo.org/910645 Closes: https://bugs.gentoo.org/948861 Signed-off-by: Christopher Byrne <salah.coronya@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/40825 Signed-off-by: Arsen Arsenović <arsen@gentoo.org> sys-block/nbdkit/Manifest | 1 + sys-block/nbdkit/nbdkit-1.42.0.ebuild | 130 ++++++++++++++++++++++++++++++++++ 2 files changed, 131 insertions(+)