Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268309 - app-antivirus/clamav-0.95.* claims to bundle libtommath
Summary: app-antivirus/clamav-0.95.* claims to bundle libtommath
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Net-Mail Packages
URL: https://wiki.clamav.net/Main/UpgradeN...
Whiteboard:
Keywords:
Depends on:
Blocks: bundled-libs
  Show dependency tree
 
Reported: 2009-05-02 15:56 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2011-06-10 00:25 UTC (History)
3 users (show)

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


Attachments
a simple patch to allow use of system-libtommath (clamav-0.95.2.ebuild-system-libtommath.patch,577 bytes, patch)
2009-08-29 12:38 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff
clamav-0.96.ebuild-libtommath.patch (clamav-0.96.ebuild-libtommath.patch,966 bytes, patch)
2010-04-30 16:13 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-05-02 15:56:15 UTC
clamav-0.95 claims to bundle and link with an internal libtommath unless if a --with-system-tommath is passed. It also claims that the dependency on l=dev-libs/gmp is gone (while clamav-0.95*.ebuild DEPENDs on gmp). 

The dependence on gmp in the ebuild looked like it's automagic too -- the DEPEND is conditional on the crypt useflag without passing --without-gmp (or similar) to ./configure when crypt wasn't set. see bug 268302

libtommath is bundled somewhat obscurely (concerning filename) in libclamav/bignum.c . libclamav.so even exports a few symbols, like mp_clear, which libtommath.so (from libtommath-0.36.1) exports.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-05-02 16:00:25 UTC
can someone please add this bug to the tracker bug 251464 ?
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-08-29 12:38:38 UTC
Created attachment 202604 [details, diff]
a simple patch to allow use of system-libtommath

sorry for not creating this patch earlier. If installing clamav with this patch, I can see that clamav binaries to use the system libtommath lib:

 $ ldd $(which clamd)   
<text cut>
      libtommath.so.0 => /usr/lib64/libtommath.so.0 (0x00007faa79825000)
<text cut>
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-04-30 16:13:13 UTC
Created attachment 229811 [details, diff]
clamav-0.96.ebuild-libtommath.patch

updated for current clamav version
Comment 4 Tim Harder gentoo-dev 2011-06-10 00:25:08 UTC
Fixed in 0.97.1.