diff options
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-14 14:10:49 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-14 14:21:12 +0100
commitd0291ed639cc3e46a4efb0bd4e0b34d5c2f877a4 (patch)
parent87fa61efbe78e7f6f0dc104b4cb9010ad6e3617a (diff)
libosmo-netif: workaround oe-core forcing fail of sctp.h autoconf checklaforge/nightly
oe-core is currently (pyro and current master) forcing non-availability of netinet/sctp.h header file through autoconf's export CONFIG_SITE pointing to files in meta/site/, which contain: ac_cv_header_netinet_sctp_h=${ac_cv_header_netinet_sctp_h=no} As a result, netinet/sctp.h is not found despite DEPENDS="lksctp-tools" and the file being available correctly under recipe-sysroot/ and finally configure fails with AC_MSG_ERROR(). It was confirmed by OE devs that those lines should not be there, and a patch has been submitted: https://patchwork.openembedded.org/patch/168892/ Since it's not available in pyro nor latest release, let's workaround it in our recipe to make sure it works with older versions of OE. Change-Id: Ide91e96648881a0c6d415d727a14c2ef913fb180
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-osmocom/libosmo-netif/libosmo-netif.inc b/recipes-osmocom/libosmo-netif/libosmo-netif.inc
index 0a51dfc..7098c42 100644
--- a/recipes-osmocom/libosmo-netif/libosmo-netif.inc
+++ b/recipes-osmocom/libosmo-netif/libosmo-netif.inc
@@ -12,4 +12,8 @@ PACKAGECONFIG ??= "\
PACKAGECONFIG[libsctp] = "--enable-libsctp,--disable-libsctp,lksctp-tools,"
+# Workaround to oe-core meta/site/* CONFIG_SITE files passed to autoconf forcing unavailability of netinet/sctp.h.
+# Patch fixing issue upstream: https://patchwork.openembedded.org/patch/168892/
+CACHED_CONFIGUREVARS += "${@bb.utils.contains('PACKAGECONFIG', 'libsctp', 'ac_cv_header_netinet_sctp_h=yes', '',d)}"
inherit autotools pkgconfig