After upgrading to dev-libs/json-c-0.14 I was surprised by the following preserved libs event: > !!! existing preserved libs: > >>> package: dev-libs/json-c-0.14 > * - /usr/lib64/libjson-c.so.4 > * - /usr/lib64/libjson-c.so.4.0.0 > * used by /usr/bin/clamsubmit (app-antivirus/clamav-0.102.2-r2) > * used by /usr/lib64/libclamav.so.9.0.4 (app-antivirus/clamav-0.102.2-r2) > * used by /usr/lib64/libfreshclam.so.2.0.0 (app-antivirus/clamav-0.102.2-r2) > 1) I have app-antivirus/clamav[-clamsubmit] installed -- there shouldn't be any clamsubmit according to ebuild comment (https://gitweb.gentoo.org/repo/gentoo.git/tree/app-antivirus/clamav/clamav-0.102.2-r2.ebuild?id=138be508c2b37f4575ccd26114171e809e51594e#n72). 2) I have installed with USE=metadata-analysis-api. Like you can see it's linking against json-c. If you cannot prevent this, https://gitweb.gentoo.org/repo/gentoo.git/tree/app-antivirus/clamav/clamav-0.102.2-r2.ebuild?id=138be508c2b37f4575ccd26114171e809e51594e#n44 is wrong.
(In reply to Thomas Deutschmann from comment #0) > > 2) I have installed with USE=metadata-analysis-api. Like you can see it's > linking against json-c. If you cannot prevent this, > https://gitweb.gentoo.org/repo/gentoo.git/tree/app-antivirus/clamav/clamav-0. > 102.2-r2.ebuild?id=138be508c2b37f4575ccd26114171e809e51594e#n44 is wrong. You mean it should be in RDEPEND, right?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2387780fc6c76791618ee404889268606bb1530a commit 2387780fc6c76791618ee404889268606bb1530a Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2020-05-02 12:12:03 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-05-02 12:12:20 +0000 app-antivirus/clamav: new revision to fix USE="-clamsubmit". Disabling clamsubmit didn't work; now it does. A conditional dependency on libjson-c with USE=metadata-analysis-api has also been moved into RDEPEND from DEPEND, because libclamav gets linked to it in that case. Closes: https://bugs.gentoo.org/720390 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> ...-0.102.2-r2.ebuild => clamav-0.102.2-r3.ebuild} | 25 ++++++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-)
Yeah, and slot operator. You addressed both, thanks.