Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544910 - app-antivirus/clamav should rdepend on dev-libs/libltdl instead of sys-devel/libtool
Summary: app-antivirus/clamav should rdepend on dev-libs/libltdl instead of sys-devel/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-03-29 09:49 UTC by Bruno
Modified: 2020-01-15 14:39 UTC (History)
4 users (show)

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


Attachments
Proposed patch adjusting the dependency (clamav-0.98.6.patch,701 bytes, patch)
2015-03-29 09:50 UTC, Bruno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno 2015-03-29 09:49:36 UTC
Since libltdl has its own package instead of being part of libtool packages using libltdl at runtime should RDEPEND on libltdl instead of libtool.

This allows cleaner dependencies and leaner set of installed packages for binpkg installs.

Reproducible: Always
Comment 1 Bruno 2015-03-29 09:50:45 UTC
Created attachment 400006 [details, diff]
Proposed patch adjusting the dependency
Comment 2 Thomas Raschbacher gentoo-dev 2016-05-29 19:33:56 UTC
tbh not sure about this but will have a look at it when I have some time. If you can provide more info about this (links to mailinglist posts,...) it'd probably accelerate the process ;)
Comment 3 Bruno 2016-05-29 20:43:46 UTC
(In reply to Thomas Raschbacher from comment #2)
> If you can provide more info about this (links to mailinglist posts,...)
> it'd probably accelerate the process ;)

There's not too much I can point you at, except maybe the introductory commit of libltdl in gentoo-x86 (unfortunately the reference to upstream request does not include any link):

https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/libltdl/ChangeLog?view=log

Do note that I'm only talking about runtime dependency as for compile time full libtool is most probably needed.
Comment 4 Sławomir Nizio 2019-01-11 20:43:49 UTC
It as introduced due to bug #380265.

/usr/lib64/libclamav.so.7.1.1 needs libltdl.so.7 which is provided by dev-libs/libltdl, not sys-devel/libtool. It only works because sys-devel/libtool has a rdepend on the library provided but it doesn't seem correct.
Comment 5 Sławomir Nizio 2019-01-11 20:50:04 UTC
Similar to bug #675218.
Comment 6 Larry the Git Cow gentoo-dev 2020-01-15 14:39:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1543573131710d2bbf11287803cf9269cece35be

commit 1543573131710d2bbf11287803cf9269cece35be
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2020-01-15 14:35:39 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2020-01-15 14:35:58 +0000

    app-antivirus/clamav: new revision fixing libtool -> libltdl depend.
    
    As reported in bug 544910, libclamav is linked against libltdl.so:
    
      $ objdump -p /usr/lib64/libclamav.so | grep NEEDED
      NEEDED               libbz2.so.1
      NEEDED               libltdl.so.7
      ...
    
    and that library is provided by dev-libs/libltdl:
    
      $ equery b /usr/lib64/libltdl.so.7
       * Searching for /usr/lib64/libltdl.so.7 ...
      dev-libs/libltdl-2.4.6 (/usr/lib64/libltdl.so.7.3.1)
      dev-libs/libltdl-2.4.6 (/usr/lib64/libltdl.so.7 -> libltdl.so.7.3.1)
    
    We've been pulling this in "accidentally," through sys-devel/libtool,
    but that's incorrect. This commit drops sys-devel/libtool and replaces
    it with dev-libs/libltdl.
    
    Closes: https://bugs.gentoo.org/544910
    Package-Manager: Portage-2.3.79, Repoman-2.3.16
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 .../clamav/{clamav-0.102.1-r1.ebuild => clamav-0.102.1-r2.ebuild}     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)