net-dns/c-ares: update to 1.17.1

Update `net-dns/c-ares` to 1.17.1, to resolve security issue
[CVE-2020-8277](https://nvd.nist.gov/vuln/detail/CVE-2020-8277).
See also https://security.gentoo.org/glsa/202012-11.
This commit is contained in:
Dongsu Park 2021-02-02 09:13:01 +01:00
parent 664cdcf822
commit ee5f0f3033
3 changed files with 4 additions and 23 deletions

View File

@ -1 +1 @@
DIST c-ares-1.16.1.tar.gz 1374637 BLAKE2B 0d87538f5d6cac5b6b9c92d6ba5525af0e580e6506bee9270318f0951aaccdc7e135b446381e8150241d367789ccf2f73dbb333d45de4dbb5a87af05483063a8 SHA512 4ac2a5d5c6da74eb1d6155c4eadc7127ab1b53a8d13caec41bd6172db5417a79f3ab022e77ba37d8b13da6893d7ced5fd8baf5cc3950a4154b4de8743ad31471 DIST c-ares-1.17.1.tar.gz 1518701 BLAKE2B 31dac21ecae231e2a201dc1ba954c1a0663a06f93eb8e7e033ca3c6d385f53e07af0b04854739f1ee8a7f0693f67f620143e152ef092b49342c62279a0480905 SHA512 b11887bcc9274d368088e1a8b6aca62414f20675cf0bc58e948f54fa04c327c39dd23cefe7509eec6397db14b550a3f6b77f5c18b3d735b3eef48ce2da1dcd00

View File

@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors # Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=7
@ -10,7 +10,7 @@ HOMEPAGE="https://c-ares.haxx.se/"
SRC_URI="https://${PN}.haxx.se/download/${P}.tar.gz" SRC_URI="https://${PN}.haxx.se/download/${P}.tar.gz"
LICENSE="MIT" LICENSE="MIT"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc64-solaris" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc64-solaris"
IUSE="static-libs" IUSE="static-libs"
# Subslot = SONAME of libcares.so.2 # Subslot = SONAME of libcares.so.2
@ -22,17 +22,12 @@ MULTILIB_WRAPPED_HEADERS=(
/usr/include/ares_build.h /usr/include/ares_build.h
) )
src_prepare() {
eapply "${FILESDIR}"/${PN}-1.12.0-remove-tests.patch
eapply_user
eautoreconf
}
multilib_src_configure() { multilib_src_configure() {
ECONF_SOURCE=${S} \ ECONF_SOURCE=${S} \
econf \ econf \
--enable-nonblocking \ --enable-nonblocking \
--enable-symbol-hiding \ --enable-symbol-hiding \
--disable-tests \
$(use_enable static-libs static) $(use_enable static-libs static)
} }

View File

@ -1,14 +0,0 @@
diff -Naur c-ares-1.12.0.orig/configure.ac c-ares-1.12.0/configure.ac
--- c-ares-1.12.0.orig/configure.ac 2016-09-29 07:43:01.000000000 -0400
+++ c-ares-1.12.0/configure.ac 2016-10-14 03:10:36.253342032 -0400
@@ -837,10 +837,6 @@
fi
AC_MSG_RESULT([$build_tests])
-if test "x$build_tests" = "xyes" ; then
- AC_CONFIG_SUBDIRS([test])
-fi
-
AC_CONFIG_FILES([Makefile libcares.pc])
AC_OUTPUT
XC_AMEND_DISTCLEAN(['.'])