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.
can someone please add this bug to the tracker bug 251464 ?
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>
Created attachment 229811 [details, diff] clamav-0.96.ebuild-libtommath.patch updated for current clamav version
Fixed in 0.97.1.