Skip to contentSkip to conversation

ldns: Disable GOST support

PATCH New Khem Raj 1 participant 1 message Sep 2

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 ldns: Disable GOST support

ldns implements GOST exclusively through the OpenSSL ENGINE API, which was removed in OpenSSL 4.0

Causes

./keys.c:664:5: error: use of undeclared identifier 'ldns_key_new_frm_fp_gost_l'

    664 |                                 ldns_key_new_frm_fp_gost_l(fp, line_nr));
        |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~

USE_GOST gets defined because configure probes for a
working GOST engine using AC_RUN_IFELSE, which cannot run when cross compiling and therefore falls back to "maybe", which is treated as success.

Pass --disable-gost since the feature cannot work at all without ENGINE support.

---
 meta-oe/recipes-devtools/ldns/ldns_1.9.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/ldns/ldns_1.9.2.bb +1 -1
index 6e50cc2b1e..d7a4e31422 100644
@@ -15,7 +15,7 @@ inherit autotools-brokensep
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[drill] = "--with-drill,--without-drill"
 
-EXTRA_OECONF = "--with-ssl=${STAGING_EXECPREFIXDIR}"
+EXTRA_OECONF = "--with-ssl=${STAGING_EXECPREFIXDIR} --disable-gost"
 
 do_install:append() {
     sed -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \