[1/1] openssh: build without libbsd

Submitted by Joe Slater on March 30, 2014, 8:48 p.m. | Patch ID: 69653


Message ID 1396212525-17229-1-git-send-email-jslater@windriver.com
State New
Headers show

Commit Message

Joe Slater March 30, 2014, 8:48 p.m.
We do not DEPEND on libbsd, so we do not want to
build with it just because libutil.h is found by configure.
As noted in the patch, specifying --disable-libutil to
configure does not work, so we provide "cached" configure

Signed-off-by: Joe Slater <jslater@windriver.com>
 meta/recipes-connectivity/openssh/openssh_6.2p2.bb |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-connectivity/openssh/openssh_6.2p2.bb b/meta/recipes-connectivity/openssh/openssh_6.2p2.bb
index 247309c..99183a0 100644
--- a/meta/recipes-connectivity/openssh/openssh_6.2p2.bb
+++ b/meta/recipes-connectivity/openssh/openssh_6.2p2.bb
@@ -69,6 +69,12 @@  EXTRA_OECONF = "--with-rand-helper=no \
                 --sysconfdir=${sysconfdir}/ssh \
+# Since we do not depend on libbsd, we do not want configure to use it
+# just because it finds libutil.h.  But, specifying --disable-libutil
+# causes compile errors, so...
+CACHED_CONFIGUREVARS += "ac_cv_header_bsd_libutil_h=no ac_cv_header_libutil_h=no"
 # This is a workaround for uclibc because including stdio.h
 # pulls in pthreads.h and causes conflicts in function prototypes.
 # This results in compilation failure, so unless this is fixed,