Bug 16078 - ClamAV: FD_PASSING test fails when it should not.
Summary: ClamAV: FD_PASSING test fails when it should not.
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2024.02
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-17 03:31 UTC by craig.anderson
Modified: 2024-06-15 15:21 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description craig.anderson 2024-05-17 03:31:37 UTC
In ClamAV, there is a CMake test for whether or not the system supports FD_PASSING.

In the file CheckFDPassing.cmake, on line 77:

if("${test_compile_result}" AND ("${test_run_result}" EQUAL 0))

This fails on:
   - Host running Ubuntu 22.04 on a late model Intel PC (x86-64).
   - Target is the same as the host.

because $test_run_result is "ON", not 0.  $test_run_result is 0 when ClamAV is compiled on the same build machine, but outside of Buildroot.

My workaround is to change the line to:

if("${test_compile_result}" AND (("${test_run_result}" STREQUAL "ON") OR (("${test_run_result}" EQUAL 0))))

which just accept "ON" as passing.
Comment 1 Yann E. MORIN 2024-06-15 15:21:43 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!