[PATCH] nagios-nrpe: fix compile error when packageconfig ssl enabled


kai
 

From: Kai Kang <kai.kang@...>

It fails to compile nagios-nrpe when packageconfig ssl enabled:

| ./nrpe.c:45:12: fatal error: ../include/dh.h: No such file or directory
| 45 | # include "../include/dh.h"
| | ^~~~~~~~~~~~~~~~~
| compilation terminated.

Header file include/dh.h is created by native openssl called by
configure script. If no native openssl exists, no header file is
created. Add openssl-native to dependency for packageconfig ssl.

Signed-off-by: Kai Kang <kai.kang@...>
---
recipes-extended/nagios/nagios-nrpe_3.2.1.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-extended/nagios/nagios-nrpe_3.2.1.bb b/recipes-extended/nagios/nagios-nrpe_3.2.1.bb
index 04917f7..9e1f02c 100644
--- a/recipes-extended/nagios/nagios-nrpe_3.2.1.bb
+++ b/recipes-extended/nagios/nagios-nrpe_3.2.1.bb
@@ -39,7 +39,7 @@ EXTRA_OECONF_SSL = "--with-ssl=${STAGING_DIR_HOST} \
--with-ssl-lib=${STAGING_DIR_HOST}${libdir} \
"

-PACKAGECONFIG[ssl] = "${EXTRA_OECONF_SSL},--disable-ssl,openssl,"
+PACKAGECONFIG[ssl] = "${EXTRA_OECONF_SSL},--disable-ssl,openssl-native openssl,"
PACKAGECONFIG[cmdargs] = "--enable-command-args,--disable-command-args,,"
PACKAGECONFIG[bashcomp] = "--enable-bash-command-substitution,--disable-bash-command-substitution,,"

--
2.17.1

Join meta-virtualization@lists.yoctoproject.org to automatically receive all group messages.