[oe] [PATCH] c-ares: Fix configure script
Sean Cross
sean at chumby.com
Wed Oct 13 20:12:01 UTC 2010
The syntax of one of the AC_CHECK_FUNCS is incorrect. Removing the
lines in question allows the package to configure and build.
---
.../0001-remove-broken-configure.ac-commands.patch | 32 ++++++++++++++++++++
recipes/c-ares/c-ares_1.5.3.bb | 4 ++-
2 files changed, 35 insertions(+), 1 deletions(-)
create mode 100644 recipes/c-ares/0001-remove-broken-configure.ac-commands.patch
diff --git a/recipes/c-ares/0001-remove-broken-configure.ac-commands.patch b/recipes/c-ares/0001-remove-broken-configure.ac-commands.patch
new file mode 100644
index 0000000..799332a
--- /dev/null
+++ b/recipes/c-ares/0001-remove-broken-configure.ac-commands.patch
@@ -0,0 +1,32 @@
+diff -ur c-ares-1.5.3-stock/configure.ac c-ares-1.5.3/configure.ac
+--- c-ares-1.5.3-stock/configure.ac 2010-10-13 19:12:51.792124107 +0000
++++ c-ares-1.5.3/configure.ac 2010-10-13 19:25:12.932123380 +0000
+@@ -796,28 +796,6 @@
+ )
+
+
+-AC_CHECK_FUNCS([bitncmp \
+- gettimeofday \
+- if_indextoname
+-],[
+-],[
+- func="$ac_func"
+- AC_MSG_CHECKING([deeper for $func])
+- AC_LINK_IFELSE([
+- AC_LANG_PROGRAM([[
+- ]],[[
+- $func ();
+- ]])
+- ],[
+- AC_MSG_RESULT([yes])
+- eval "ac_cv_func_$func=yes"
+- AC_DEFINE_UNQUOTED([AS_TR_CPP([HAVE_$func])], [1],
+- [Define to 1 if you have the $func function.])
+- ],[
+- AC_MSG_RESULT([but still no])
+- ])
+-])
+-
+
+ dnl check for inet_pton
+ AC_CHECK_FUNCS(inet_pton)
diff --git a/recipes/c-ares/c-ares_1.5.3.bb b/recipes/c-ares/c-ares_1.5.3.bb
index 0def152..fa75f3f 100644
--- a/recipes/c-ares/c-ares_1.5.3.bb
+++ b/recipes/c-ares/c-ares_1.5.3.bb
@@ -1,7 +1,9 @@
DESCRIPTION = "c-ares is a C library that resolves names asynchronously."
HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/"
SECTION = "libs"
-SRC_URI = "http://daniel.haxx.se/projects/c-ares/c-ares-${PV}.tar.gz"
+SRC_URI = "http://daniel.haxx.se/projects/c-ares/c-ares-${PV}.tar.gz \
+ file://0001-remove-broken-configure.ac-commands.patch \
+"
LICENSE = "MIT"
S = "${WORKDIR}/c-ares-${PV}"
PR = "r1"
--
1.7.0.4
More information about the Openembedded-devel
mailing list