We encountered the following error when building fipscheck without setting OPENSSL_FIPS_ENABLED:
ERROR: Nothing PROVIDES 'openssl-fips' (but /buildarea/poky/meta-openssl102-fips/recipes-support/fipscheck/fipscheck_1.5.0.bb DEPENDS on or otherwise requires it) openssl-fips was skipped: To enable the openssl-fips recipe set OPENSSL_FIPS_ENABLED = '1'. ERROR: Required build target 'fipscheck' has no buildable providers. Missing or unbuildable dependency chain was: ['fipscheck', 'openssl-fips'] Add a check function as openssl-fips recipe does. Build fipscheck only if OPENSSL_FIPS_ENABLED is set. Signed-off-by: Yi Zhao <[email protected]> --- recipes-support/fipscheck/fipscheck_1.5.0.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes-support/fipscheck/fipscheck_1.5.0.bb b/recipes-support/fipscheck/fipscheck_1.5.0.bb index 9faed9c..970640d 100644 --- a/recipes-support/fipscheck/fipscheck_1.5.0.bb +++ b/recipes-support/fipscheck/fipscheck_1.5.0.bb @@ -49,4 +49,9 @@ pkg_postinst_${PN} () { fi } +python __anonymous() { + if d.getVar("OPENSSL_FIPS_ENABLED", True) != "1": + raise bb.parse.SkipPackage("To enable the fipscheck recipe set OPENSSL_FIPS_ENABLED = '1'.") +} + FILES_${PN} += "${libdir}/fipscheck" -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#48056): https://lists.yoctoproject.org/g/yocto/message/48056 Mute This Topic: https://lists.yoctoproject.org/mt/69948445/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
