Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720390 - app-antivirus/clamav: links against dev-libs/json-c when it claims not to do so
Summary: app-antivirus/clamav: links against dev-libs/json-c when it claims not to do so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-02 09:07 UTC by Thomas Deutschmann (RETIRED)
Modified: 2020-05-02 12:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-02 09:07:55 UTC
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.
Comment 1 Michael Orlitzky gentoo-dev 2020-05-02 11:22:46 UTC
(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?
Comment 2 Larry the Git Cow gentoo-dev 2020-05-02 12:15:09 UTC
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(-)
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-02 12:26:23 UTC
Yeah, and slot operator. You addressed both, thanks.