openscap: unable to scan debian due to missing libapt dependency
Description of problem:
Using openscap
to scan a system that use apt (such as Debian or Ubuntu) returns incomplete results. This warning is logged:
OVAL object 'dpkginfo_object' is not supported.
The problem is that openscap was built without libapt support, looking at the build log at https://build.alpinelinux.org/buildlogs/build-edge-x86_64/community/openscap/openscap-1.3.7-r3.log
-- Linux probes: ON
-- Linux dpkginfo probe (depends on aptpkg): OFF
Here's the check in the openscap project build system: https://github.com/OpenSCAP/openscap/blob/1.3.7/CMakeLists.txt#L291
Steps to Reproduce:
- Run
oscap --v
Actual results:
linux dpkginfo probe_dpkginfo
is missing from the output
Expected results:
linux dpkginfo probe_dpkginfo
should be in the output.