[oe] [PATCH] c-ares: Fix configure script

Khem Raj raj.khem at gmail.com
Wed Oct 13 23:39:23 UTC 2010


On Wed, Oct 13, 2010 at 1:12 PM, Sean Cross <sean at chumby.com> wrote:
>
> The syntax of one of the AC_CHECK_FUNCS is incorrect.  Removing the
> lines in question allows the package to configure and build.


instead of removing the check completely it would be better if we fixed it.
you can also cache the result and not run autoreconf on it but thats a fall
back.

> ---
>  .../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
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>




More information about the Openembedded-devel mailing list