Skip to contentSkip to conversation

c-ares: new package

PATCH New Gustavo Zacarias 2 participants 2 messages Dec 26, 2013 – Dec 27, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 c-ares: new package

Add c-ares library from bug #6482.
Most of the credit goes to Gennady Proskurin <[email protected]>

---
 package/Config.in                                       |  1 +
 package/c-ares/Config.in                                |  6 ++++++
 ...-ares-01-use_check_build_instead_of_check_user.patch | 17 +++++++++++++++++
 package/c-ares/c-ares.mk                                | 16 ++++++++++++++++
 4 files changed, 40 insertions(+)
 create mode 100644 package/c-ares/Config.in
 create mode 100644 package/c-ares/c-ares-01-use_check_build_instead_of_check_user.patch
 create mode 100644 package/c-ares/c-ares.mk
package/Config.in +1 -0
index b1e52ae..ea3f63d 100644
@@ -631,6 +631,7 @@ source "package/mediastreamer/Config.in"
 endmenu
 
 menu "Networking"
+source "package/c-ares/Config.in"
 source "package/cppzmq/Config.in"
 source "package/czmq/Config.in"
 source "package/filemq/Config.in"
package/c-ares/Config.in new file +6 -0
new file mode 100644
index 0000000..be17b16
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_C_ARES
+	bool "c-ares"
+	help
+	  C library for asynchronous DNS requests.
+
+	  http://c-ares.haxx.se/
package/c-ares/c-ares-01-use_check_build_instead_of_check_user.patch new file +17 -0
new file mode 100644
index 0000000..8210ed6
@@ -0,0 +1,17 @@
+Use XC_CHECK_BUILD_FLAGS instead of XC_CHECK_USER_FLAGS.
+Otherwise it complains of CPPFLAGS in CFLAGS.
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+
+diff -Nura c-ares-1.10.0.orig/m4/xc-cc-check.m4 c-ares-1.10.0/m4/xc-cc-check.m4
+--- c-ares-1.10.0.orig/m4/xc-cc-check.m4	2013-12-26 19:40:46.354195974 -0300
++++ c-ares-1.10.0/m4/xc-cc-check.m4	2013-12-26 19:41:01.850718535 -0300
+@@ -59,7 +59,7 @@
+ 
+ AC_DEFUN([_XC_PROG_CC], [
+   AC_REQUIRE([_XC_PROG_CC_PREAMBLE])dnl
+-  AC_REQUIRE([XC_CHECK_USER_FLAGS])dnl
++  AC_REQUIRE([XC_CHECK_BUILD_FLAGS])dnl
+   AC_REQUIRE([AC_PROG_INSTALL])dnl
+   AC_REQUIRE([AC_PROG_CC])dnl
+   AC_REQUIRE([AM_PROG_CC_C_O])dnl
package/c-ares/c-ares.mk new file +16 -0
new file mode 100644
index 0000000..495d7aa
@@ -0,0 +1,16 @@
+################################################################################
+#
+# c-ares
+#
+################################################################################
+
+C_ARES_VERSION = 1.10.0
+C_ARES_SITE = http://c-ares.haxx.se/download
+C_ARES_INSTALL_STAGING = YES
+# Rebuild configure to avoid _XC_CHECK_VAR_CFLAGS
+C_ARES_AUTORECONF = YES
+C_ARES_LICENSE = MIT
+# No standalone, use some source file
+C_ARES_LICENSE_FILES = ares_mkquery.c
+
+$(eval $(autotools-package))
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 c-ares: new package

Dear Gustavo Zacarias,

Quoted 4 lines · Gustavo Zacarias

Add c-ares library from bug #6482.
Most of the credit goes to Gennady Proskurin <[email protected]>

Quoted 9 lines
---
 package/Config.in                                       |  1 +
 package/c-ares/Config.in                                |  6 ++++++
 ...-ares-01-use_check_build_instead_of_check_user.patch | 17 +++++++++++++++++
 package/c-ares/c-ares.mk                                | 16 ++++++++++++++++
 4 files changed, 40 insertions(+)
 create mode 100644 package/c-ares/Config.in
 create mode 100644 package/c-ares/c-ares-01-use_check_build_instead_of_check_user.patch
 create mode 100644 package/c-ares/c-ares.mk

Applied, thanks.

package/c-ares/c-ares.mk line 11

Quoted 2 lines
package/c-ares/c-ares.mk new file +2 -0
+# Rebuild configure to avoid _XC_CHECK_VAR_CFLAGS
+C_ARES_AUTORECONF = YES

I've just fixed the comment here, because the patch avoids the usage of XC_CHECK_USER_FLAGS, not _XC_CHECK_VAR_CFLAGS. I believe that's what you wanted to say.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com