[Bug 268069] security/clamav: 1.0.0 does no work with cld and cvd files

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 13 Dec 2022 18:19:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268069

--- Comment #27 from fsbruva@yahoo.com ---
(In reply to Yasuhiro Kimura from comment #24)
Yes, but not with a pure stock system - I involved openssl from ports.

I did the following:
1. Created clean 12.3-RELEASE jail
2. Obtained latest ports tree
3. Installed tomsfastmath as you did
4. Installed clamav with /etc/make.conf containing:
OPTIONS_UNSET= X11 DOCS CUPS NLS
DEFAULT_VERSIONS+= perl5=5.36 python=3.11
5. Started freshclam service
6. Started clamd service - *** SUCCESSFULLY STARTS ***

7. Shutdown clamd service
8. Modified /etc/make.conf to be:
OPTIONS_UNSET= X11 DOCS CUPS NLS
DEFAULT_VERSIONS+= perl5=5.36 python=3.11 ssl=openssl
9. Cleaned clamav (cd /usr/ports/security/clamav; make clean)
10. Re-installed clamav (cd /usr/ports/security/clamav; make reinstall), which
also builds openssl, and then CMake uses libcrypto and libssl from
/usr/local/lib when building clamav (instead of /usr/lib).
11. Started clamd service - FAILS TO START:
LibClamAV debug: Loading databases from /var/db/clamav
LibClamAV debug: in cli_cvdload()
LibClamAV debug: MD5(.tar.gz) = f1820e08c2faed3d8e60382bcd9914f0
LibClamAV debug: cli_versig: Decoded signature:
00000000000000000000000000000000

12. Remove openssl from ports (pkg delete openssl)
13. Remove ssl=openssl from DEFAULT_VERSIONS in /etc/make.conf
14. Cleaned clamav (cd /usr/ports/security/clamav; make clean)
15. Re-installed clamav (cd /usr/ports/security/clamav; make reinstall)
16. Started clamd service - *** SUCCESSFULLY STARTS ***

17. Installed openssl from pkg (pkg install openssl)
18. Cleaned clamav (cd /usr/ports/security/clamav; make clean)
19. Re-installed clamav (cd /usr/ports/security/clamav; make reinstall)
20. Started clamd service - FAILS TO START, same error.

21. Remove tomsfastmath (pkg delete tomsfastmath)
22. Cleaned clamav (cd /usr/ports/security/clamav; make clean)
23. Re-installed clamav (cd /usr/ports/security/clamav; make reinstall)
24. Started clamd service - *** SUCCESSFULLY STARTS ***

So it seems it's an interaction between security/openssl, math/tomsfastmath and
security/clamav.

-- 
You are receiving this mail because:
You are the assignee for the bug.