net-dns/c-ares: disable test, bug #575470
authorAnthony G. Basile <blueness@gentoo.org>
Thu, 25 Feb 2016 01:50:59 +0000 (20:50 -0500)
committerAnthony G. Basile <blueness@gentoo.org>
Thu, 25 Feb 2016 01:51:28 +0000 (20:51 -0500)
Package-Manager: portage-2.2.26

net-dns/c-ares/c-ares-1.11.0.ebuild
net-dns/c-ares/files/remove-tests.patch [new file with mode: 0644]

index 374cbc8bbe4937d35ecf0e2058465d0ef1a10fde..64f8bc859586993bfb8411086da69b81391f7f14 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit eutils multilib-minimal
+inherit autotools eutils multilib-minimal
 
 DESCRIPTION="C library that resolves names asynchronously"
 HOMEPAGE="http://c-ares.haxx.se/"
@@ -23,6 +23,11 @@ MULTILIB_WRAPPED_HEADERS=(
        /usr/include/ares_build.h
 )
 
+src_prepare() {
+       epatch "${FILESDIR}"/remove-tests.patch
+       eautoreconf
+}
+
 multilib_src_configure() {
        ECONF_SOURCE=${S} \
        econf \
diff --git a/net-dns/c-ares/files/remove-tests.patch b/net-dns/c-ares/files/remove-tests.patch
new file mode 100644 (file)
index 0000000..6b4ce0a
--- /dev/null
@@ -0,0 +1,14 @@
+diff -Naur c-ares-1.11.0.orig/configure.ac c-ares-1.11.0/configure.ac
+--- c-ares-1.11.0.orig/configure.ac    2016-02-19 09:09:13.000000000 +0000
++++ c-ares-1.11.0/configure.ac 2016-02-25 01:26:53.092956316 +0000
+@@ -877,10 +877,6 @@
+ XC_CHECK_BUILD_FLAGS
+-if test "x$cross_compiling" = "xno"; then
+-  AC_CONFIG_SUBDIRS([test])
+-fi
+-
+ AC_CONFIG_FILES([Makefile libcares.pc])
+ AC_OUTPUT
+ XC_AMEND_DISTCLEAN(['.'])