See https://sources.debian.org/patches/clamav/0.99.2+dfsg-6/libclamav-use-libmspack.patch/ and https://sources.debian.org/patches/clamav/0.99.3~beta1+dfsg-4/add-support-for-system-tomsfastmath.patch/ We need to create a package for tomsfastmath first.
good news clamav 0.100.0 has --with-system-libmspack (that is one less problem ..) I am just testing the ebuild - and will put it in as a USE to use the system one
starting with 0.100.2 the bundled libmspack will not be used anymore. that just leaves tomsfastmath
Reported upstream at $URL, still private until they unlock it.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0b24a07e3b298277be4362cf56b33d591610c1f commit f0b24a07e3b298277be4362cf56b33d591610c1f Author: Sam James (sam_c) <sam@cmpct.info> AuthorDate: 2020-05-24 05:03:33 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-05-25 23:08:31 +0000 dev-libs/tomsfastmath: New package "TomsFastMath is a fast public domain, open source, large integer arithmetic library written in portable ISO C." app-antivirus/clamav currently bundles this, and the new dev-libs/libtomcrypto can optionally make use of it. Introduce it as a new package to keep track of security issues. Bug: https://bugs.gentoo.org/649394 Closes: https://bugs.gentoo.org/723856 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sam James (sam_c) <sam@cmpct.info> Signed-off-by: Michael Orlitzky <mjo@gentoo.org> dev-libs/tomsfastmath/Manifest | 1 + .../files/tomsfastmath-0.13.1-makefile-fix.patch | 45 +++++++++++++++ dev-libs/tomsfastmath/metadata.xml | 12 ++++ dev-libs/tomsfastmath/tomsfastmath-0.13.1.ebuild | 66 ++++++++++++++++++++++ 4 files changed, 124 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bf547dbe7ade89d37115521322b3b6566e1f5c5 commit 3bf547dbe7ade89d37115521322b3b6566e1f5c5 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2020-06-21 12:32:06 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2020-06-21 13:37:44 +0000 app-antivirus/clamav: new revision to unbundle tomsfastmath. Now that dev-libs/tomsfastmath is in the tree, add a new revision of clamav that (a) deletes the bundled copy from the source tree, and (b) patches in the system copy. Thanks to sam_c for taking this on! Closes: https://bugs.gentoo.org/649394 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> app-antivirus/clamav/clamav-0.102.3-r1.ebuild | 222 +++++++++++++++++++++ .../files/clamav-0.102.3-system-tomsfastmath.patch | 113 +++++++++++ 2 files changed, 335 insertions(+)