mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
![]() Updates to fix issues in the CMake install instructions. Updates the README.md to indicate that CMake is now preferred Adds a GitHub Actions badge, Discord badge, and logo to the README.md. CMake: - Renamed ENABLE_DOCS to ENABLE_MAN_PAGES. - Fixed build issue when milter isn't enabled on Linux. Changed the default to build milter on non-macOS, non-Windows operating systems. - Fix LD_LIBRARY_PATH for tests including on macOS where LD_LIBRARY_PATH and DYLD_LIBRARY_PATH must be manually propagated to subprocesses. - Use UNKNOWN IMPORTED library instead of INTERFACE IMPORTED library for pdcurses, but still use INTERFACE IMPORTED for ncurses. UNKNOWN IMPORTED appears to be required so that we can use $<TARGET_FILE_DIR:Curses::curses> to collected the pdcurses library at install time on Windows. - When building with vcpkg on Windows, CMake will automatically install your app local dependencies (aka the DLL runtime dependencies). Meanwhile, file(GET_RUNTIME_DEPENDENCIES ...) doesn't appear to work correctly with vcpkg packages. The solution is to use a custom target that has CMake perform a local install to the unit_tests directory when using vcpkg. This is in fact far easier than using GET_RUNTIME_DEPENDENCIES in the unit_tests for assembling the test environment but we can't use this method for the non-vcpkg install because it won't collect checkDynamic.dll for us because we don't install our tests. We also can't link with the static check.lib because the static check.lib has pthreads symbols linked in and will conflict with our pthread.dll. TL;DR: We'll continue to use file(GET_RUNTIME_DEPENDENCIES ...) for assembling the test enviornment on non-vcpkg builds, and use the local install method for vcpkg builds. testcase.py: Wrapped a Pathlib.unlink() call in exception handling as the missing_ok optional parameter requires a Python version too new for common use. Remove localtime_r from win32 compat lib. localtime_r may be present in libcheck when building with vcpkg and while making it a static function would also solve the issue, using localtime_s instead like we do everywhere else should work just fine. check_clamd: Limited the max # of connections for the stress test on Mac to 850, to address issues found testing on macos-latest on GitHub Actions. |
||
---|---|---|
.. | ||
.split | ||
input | ||
buf.nocomment.ref | ||
buf.notags.ref | ||
check1_clamscan.sh | ||
check2_clamd.sh | ||
check3_clamd.sh | ||
check4_clamd.sh | ||
check5_clamd_vg.sh | ||
check6_clamd_vg.sh | ||
check7_clamd_hg.sh | ||
check8_clamd_hg.sh | ||
check9_clamscan_vg.sh | ||
check_bytecode.c | ||
check_clamav.c | ||
check_clamav_skip.c | ||
check_clamd.c | ||
check_common.sh | ||
check_disasm.c | ||
check_fpu_endian.c | ||
check_freshclam.sh | ||
check_htmlnorm.c | ||
check_jsnorm.c | ||
check_matchers.c | ||
check_regex.c | ||
check_sigtool.sh | ||
check_str.c | ||
check_uniq.c | ||
check_unit_vg.sh | ||
checks.h | ||
clamd_test.py | ||
clamscan_test.py | ||
CMakeLists.txt | ||
duma_tests.sh | ||
efence_tests.sh | ||
encode.js.ref | ||
encode.nocomment.ref | ||
freshclam_test.py | ||
js.js.ref | ||
js.nocomment.ref | ||
libclamav_test.py | ||
Makefile.am | ||
preload_run.sh | ||
Run-GetLibs.ctest | ||
sigtool_test.py | ||
test-freshclam.conf | ||
test.nocomment.ref | ||
test.notags.ref | ||
testcase.py | ||
urls.nocomment.ref | ||
urls.notags.ref | ||
valgrind.supp | ||
valgrind_tests.sh | ||
virusaction-test.sh |