commit:     f9409795d6f1c3b475bbb5cd0c69c262cd3b26fb
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 25 01:50:59 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Feb 25 01:51:28 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9409795

net-dns/c-ares: disable test, bug #575470

Package-Manager: portage-2.2.26

 net-dns/c-ares/c-ares-1.11.0.ebuild     |  7 ++++++-
 net-dns/c-ares/files/remove-tests.patch | 14 ++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/net-dns/c-ares/c-ares-1.11.0.ebuild 
b/net-dns/c-ares/c-ares-1.11.0.ebuild
index 374cbc8..64f8bc8 100644
--- a/net-dns/c-ares/c-ares-1.11.0.ebuild
+++ b/net-dns/c-ares/c-ares-1.11.0.ebuild
@@ -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
index 0000000..6b4ce0a
--- /dev/null
+++ b/net-dns/c-ares/files/remove-tests.patch
@@ -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(['.'])

Reply via email to