mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
When enabling the openscap package and the libnss library _but not_ libgcrypt, the build can fail on the following error: ../src/libopenscap.so.33.1.3: undefined reference to `crapi_init' The issue is due to the fact that the corresponding Makefile systematically forces -DWITH_CRYPTO=gcrypt: openscap CMake instrumentation then searches only this backend, fails to find it, assumes that no crypto backend is available, and so does not include the crapi_object in the final link step. Commit7c85f3adf4("package/openscap: new package") took into account the fact that openscap isn't currently able to build if no crypto backend is provided (see [0]), and so made sure to force libgcrypt inclusion if libnss is not included. Since then, two fixes ([1] and [2]) have been integrated upstream to allow building openscap with any backend. Do not systematically enforce libgcrypt anymore through WITH_CRYPTO: rather than testing nss presence, and falling back to libgcrypt, allow both to be absent, and so relax the libgcrypt dependency to make it optional as well. Bring the two upstream patches allowing openscap build without any crypto backend. Those patches can be dropped once openscap v1.4.5 is released. [0] https://github.com/OpenSCAP/openscap/issues/2310 [1]d12d820a94[2]5b858d1786Fixes: https://autobuild.buildroot.org/results/4c905c1b0ee384149c3d85e8f2ebf0af3a12c2ad/ Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commitc24ae7f2f1) Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
24 lines
810 B
Plaintext
24 lines
810 B
Plaintext
config BR2_PACKAGE_OPENSCAP
|
|
bool "openscap"
|
|
depends on !BR2_STATIC_LIBS # dlfcn.h
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # libxmlsec1
|
|
depends on BR2_TOOLCHAIN_HAS_ATOMIC # libxmlsec1
|
|
select BR2_PACKAGE_LIBCURL
|
|
select BR2_PACKAGE_LIBXML2
|
|
select BR2_PACKAGE_LIBXSLT
|
|
select BR2_PACKAGE_LIBXMLSEC1
|
|
select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
|
|
select BR2_PACKAGE_PCRE2
|
|
help
|
|
The purpose of this project is to create security policy
|
|
content for various platforms
|
|
|
|
https://www.open-scap.org/
|
|
https://github.com/OpenSCAP/openscap
|
|
|
|
comment "openscap needs a toolchain w/ dynamic library, NPTL, gcc >= 7"
|
|
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
|
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_7
|