Patchwork [1/1] apr: do not try to use sctp.h

login
register
mail settings
Submitter Joe Slater
Date April 18, 2014, 10:38 p.m.
Message ID <1397860715-2417-1-git-send-email-jslater@windriver.com>
Download mbox | patch
Permalink /patch/70675/
State Accepted
Commit 66856e12114606694961e4365d47571f59eb7bb2
Headers show

Comments

Joe Slater - April 18, 2014, 10:38 p.m.
If we let configure look for sctp.h it might find it
on the host, so suppress the search with two cached
config variables.

Signed-off-by: Joe Slater <jslater@windriver.com>
---
 meta/recipes-support/apr/apr_1.4.8.bb |    4 ++++
 1 file changed, 4 insertions(+)
Khem Raj - April 19, 2014, 12:56 a.m.
On Fri, Apr 18, 2014 at 3:38 PM, Joe Slater <jslater@windriver.com> wrote:
>  CACHED_CONFIGUREVARS += "apr_cv_mutex_recursive=yes"
>
> +# Also suppress trying to use sctp.
> +#
> +CACHED_CONFIGUREVARS += "ac_cv_header_netinet_sctp_h=no ac_cv_header_netinet_sctp_uio_h=no"
> +

Put it in single var  above. Is there any way to make is cross compile
safe too instead of disabling the tests

Patch

diff --git a/meta/recipes-support/apr/apr_1.4.8.bb b/meta/recipes-support/apr/apr_1.4.8.bb
index d834170..c14f64b 100644
--- a/meta/recipes-support/apr/apr_1.4.8.bb
+++ b/meta/recipes-support/apr/apr_1.4.8.bb
@@ -24,6 +24,10 @@  OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
 # Added to fix some issues with cmake. Refer to https://github.com/bmwcarit/meta-ros/issues/68#issuecomment-19896928
 CACHED_CONFIGUREVARS += "apr_cv_mutex_recursive=yes"
 
+# Also suppress trying to use sctp.
+#
+CACHED_CONFIGUREVARS += "ac_cv_header_netinet_sctp_h=no ac_cv_header_netinet_sctp_uio_h=no"
+
 do_configure_prepend() {
 	cd ${S}
 	./buildconf