public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/c-ares/
Date: Wed, 15 Nov 2023 06:04:37 +0000 (UTC)	[thread overview]
Message-ID: <1700028254.55bdf7f043be7ef5af52ff4fc35f45134d02e44a.sam@gentoo> (raw)

commit:     55bdf7f043be7ef5af52ff4fc35f45134d02e44a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 15 06:03:46 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 15 06:04:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55bdf7f0

net-dns/c-ares: add 1.22.0

While at it, skip the configure tests which take absolutely ages to run (should
be fine on any POSIX system), and enable config caching for the test subconfigure.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dns/c-ares/Manifest             |   2 +
 net-dns/c-ares/c-ares-1.22.0.ebuild | 104 ++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)

diff --git a/net-dns/c-ares/Manifest b/net-dns/c-ares/Manifest
index 9075a9c8964e..bd25a92ffae2 100644
--- a/net-dns/c-ares/Manifest
+++ b/net-dns/c-ares/Manifest
@@ -4,3 +4,5 @@ DIST c-ares-1.20.1.tar.gz 1599175 BLAKE2B 44d160e04dcbd78f0ad7c1f2eb3f34ff07017f
 DIST c-ares-1.20.1.tar.gz.asc 488 BLAKE2B 5a6a9e60dd3fb675cafbbf60c7b6c75b385786d1171afa9b1effcdf0187dbd044c93f6a0e87f685b5fdf2992892fdd760e2dc3246c196d011c157fc88bbb5ab4 SHA512 f0622f6df863c599028f20462fb6f5604f30243f51f382c8430abe2afbf3583cb6ffe527f0a38e646700d753d90fa9a2a4d197a7540b2fc9bed1d779fe3b43df
 DIST c-ares-1.21.0.tar.gz 1623742 BLAKE2B 708933603dfc6c0286e798b3244eb9d8bce500acb915a255b82e00133509e5c2ceaad6b9b4cd081fcd9193b64fdb72e4e7ff6deeca8eb1744124ab9239cacac0 SHA512 c526b0a28d8ea1c6a53215dfd52e8250c968513a667c5414459d97d46288da7e7a2193d757fc78225e56c6684b3d30e756dd3e5a31917e996c871773a34892ea
 DIST c-ares-1.21.0.tar.gz.asc 488 BLAKE2B b1985393dfc147abe729b5622c4c92585072173a169947caf1a9521d341dac2119e34691b96e31716df66a251dbba3a5284cddd4c47af0d0bd91e20576d5671e SHA512 0e75e51ebf97ec4ed0880811ddb60f741ea190c2e63011aad9a4233fe4e2481d0c660d401a5cf596fe257930365a366082c2b5faa34bb7b346d147cfc51392ff
+DIST c-ares-1.22.0.tar.gz 1662808 BLAKE2B 0f70c2cfe9e5076eaa97262a9b34d915d755618dc89884a2d743a0d47827bb99d2a1d1bb655aff92d8c85a19a4420a1e685d91f82b9f7a55cc2feb5daa27fd41 SHA512 b84b774090bbeae7ad2eabeb223a12474e42f2efcc4e2209fcda260b1fe29337549eb7827eb7f75475fade65b6e1ab719abdae0ff543309c1914aa9cef65cd01
+DIST c-ares-1.22.0.tar.gz.asc 488 BLAKE2B 93d378c92aef3ef1bfedc1d09ffb171c735c029c1d0440ea4e154db14b14d7eb68166fb00172dee20a826c39bd112bdc80b66ac23e7eb8bc6c47f0fe8f6fa412 SHA512 83c99f7d67a403628e407814c6829fb6ca14c102eec85bf9d3bb628677b3cba61343ca5d4fb06d95f2fa7df55681f3b1aebba2997b91c9156688075a445a1485

diff --git a/net-dns/c-ares/c-ares-1.22.0.ebuild b/net-dns/c-ares/c-ares-1.22.0.ebuild
new file mode 100644
index 000000000000..8fbe8498c19b
--- /dev/null
+++ b/net-dns/c-ares/c-ares-1.22.0.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/danielstenberg.asc
+inherit edo multilib-minimal verify-sig
+
+DESCRIPTION="C library that resolves names asynchronously"
+HOMEPAGE="https://c-ares.org/"
+SRC_URI="
+	https://c-ares.org/download/${P}.tar.gz
+	verify-sig? ( https://c-ares.org/download/${P}.tar.gz.asc )
+"
+
+# ISC for lib/{bitncmp.c,inet_ntop.c,inet_net_pton.c} (bug #912405)
+LICENSE="MIT ISC"
+# Subslot = SONAME of libcares.so.2
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="static-libs test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-danielstenberg )"
+
+DOCS=( AUTHORS CHANGES NEWS README.md RELEASE-NOTES TODO )
+
+MULTILIB_WRAPPED_HEADERS=(
+	/usr/include/ares_build.h
+)
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+	# Checking for obsolete headers
+	malloc
+	calloc
+	free
+
+	# Non-existent on Linux
+	closesocket
+	CloseSocket
+	ioctlsocket
+	bitncmp
+)
+
+multilib_src_configure() {
+	# These configure tests take a long time to run. The args one runs in O(n^4).
+	export ac_cv_func_getnameinfo='yes'
+	export ac_cv_func_recvfrom='yes'
+	export ac_cv_func_recv='yes'
+	export ac_cv_func_send='yes'
+	export curl_cv_func_getnameinfo_args='const struct sockaddr *,socklen_t,size_t,int'
+	export curl_cv_func_recv_args='int,void *,size_t,int,int'
+	export curl_cv_func_recvfrom_args='int,void *,size_t,int,struct sockaddr *,socklen_t *,int'
+	export curl_cv_func_send_args='int,const void *,size_t,int,int'
+	export curl_cv_getnameinfo='yes'
+	export curl_cv_recv='yes'
+	export curl_cv_recvfrom='yes'
+	export curl_cv_send='yes'
+
+	local myeconfargs=(
+		--cache-file="${BUILD_DIR}"/config.cache
+
+		--enable-nonblocking
+		--enable-symbol-hiding
+		$(use_enable static-libs static)
+		$(use_enable test tests)
+	)
+
+	# Needed for running unit tests only
+	# Violates sandbox and tests pass fine without
+	export ax_cv_uts_namespace=no
+	export ax_cv_user_namespace=no
+	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+	cd "${BUILD_DIR}"/test || die
+
+	# We're skipping the "real" network tests with the filter
+	# see https://github.com/c-ares/c-ares/tree/main/test
+	local network_tests=(
+		# Most live tests have Live in the name
+		*Live*
+		# These don't but are still in ares-test-live.cc => live
+		*GetTCPSock*
+		*TimeoutValue*
+		*GetSock*
+		*GetSock_virtualized*
+		*VerifySocketFunctionCallback*
+		# Seems flaky, even run manually
+		# https://github.com/c-ares/c-ares/commit/9e542a8839f81c990bb0dff14beeaf9aa6bcc18d
+		*MockUDPMaxQueriesTest.GetHostByNameParallelLookups*
+	)
+
+	# The format for disabling test1, test2, and test3 looks like:
+	# -test1:test2:test3
+	edo ./arestest --gtest_filter=-$(echo $(IFS=:; echo "${network_tests[*]}"))
+}
+
+multilib_src_install_all() {
+	einstalldocs
+
+	find "${ED}" -name "*.la" -delete || die
+}


             reply	other threads:[~2023-11-15  6:04 UTC|newest]

Thread overview: 190+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-15  6:04 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-27 15:20 [gentoo-commits] repo/gentoo:master commit in: net-dns/c-ares/ Sam James
2025-02-22 15:41 Sam James
2025-01-29 21:25 Sam James
2025-01-29 21:25 Sam James
2025-01-29 19:44 Sam James
2025-01-25  3:40 Matt Turner
2024-12-15 16:38 Sam James
2024-12-14 17:51 Arthur Zamarin
2024-12-12 19:31 Arthur Zamarin
2024-12-12 19:17 Sam James
2024-12-12 11:19 Sam James
2024-12-12 11:09 Sam James
2024-12-12 11:09 Sam James
2024-12-07  3:04 Sam James
2024-11-20  8:31 Sam James
2024-11-11  7:23 Sam James
2024-11-11  7:23 Sam James
2024-10-15 16:43 Sam James
2024-10-15  1:35 Sam James
2024-10-11  2:27 Sam James
2024-10-08 21:50 Jakov Smolić
2024-10-05 11:48 Arthur Zamarin
2024-10-05 11:47 Jakov Smolić
2024-10-05 11:47 Jakov Smolić
2024-10-05  9:44 Sam James
2024-08-27  1:05 Sam James
2024-08-14 22:53 Sam James
2024-07-21  7:45 Fabian Groffen
2024-07-17 13:27 Fabian Groffen
2024-07-17  5:56 Sam James
2024-07-17  5:04 Sam James
2024-07-17  4:56 Sam James
2024-07-17  4:56 Sam James
2024-07-17  4:44 Sam James
2024-07-17  4:44 Sam James
2024-07-17  4:44 Sam James
2024-07-17  4:36 Sam James
2024-07-08 15:05 Sam James
2024-07-07 12:01 Sam James
2024-06-24  2:54 Sam James
2024-06-12  2:01 Sam James
2024-05-25 17:31 Arthur Zamarin
2024-05-25  6:36 Arthur Zamarin
2024-05-25  3:54 Sam James
2024-05-25  3:54 Sam James
2024-05-25  3:54 Sam James
2024-05-25  3:54 Sam James
2024-05-25  3:32 Sam James
2024-05-25  2:13 Sam James
2024-04-15  6:51 Sam James
2024-04-13  6:26 Arthur Zamarin
2024-03-14  8:18 Arthur Zamarin
2024-03-14  7:36 Arthur Zamarin
2024-03-14  6:55 Sam James
2024-03-14  6:41 Sam James
2024-03-14  6:41 Sam James
2024-03-14  6:23 Sam James
2024-03-14  6:11 Sam James
2024-02-28  0:12 Sam James
2024-01-30 21:21 Sam James
2024-01-25  0:42 Sam James
2024-01-23 15:08 Sam James
2024-01-22 17:23 Sam James
2024-01-22 17:23 Sam James
2024-01-22 17:23 Sam James
2024-01-22 16:39 Sam James
2024-01-22 16:39 Sam James
2024-01-22 16:39 Sam James
2024-01-03  9:12 Sam James
2023-12-28  4:04 Sam James
2023-12-01  9:40 Sam James
2023-11-20  8:24 Sam James
2023-11-16 16:22 Sam James
2023-11-12 16:50 Arthur Zamarin
2023-11-12  9:40 Arthur Zamarin
2023-11-12  8:32 Arthur Zamarin
2023-11-12  8:20 Arthur Zamarin
2023-11-12  8:20 Arthur Zamarin
2023-11-12  8:20 Arthur Zamarin
2023-11-12  8:20 Arthur Zamarin
2023-10-27 21:29 Sam James
2023-10-09  8:18 Sam James
2023-10-08 21:50 Sam James
2023-10-08  1:50 Sam James
2023-10-08  1:50 Sam James
2023-09-30  1:54 Sam James
2023-06-17 22:47 Sam James
2023-06-17 21:03 Sam James
2023-06-17 16:52 Sam James
2023-06-17 10:42 Arthur Zamarin
2023-06-17  9:08 Arthur Zamarin
2023-05-23  3:40 Sam James
2023-05-01 13:36 Sam James
2023-03-04 11:03 Arthur Zamarin
2023-03-04  9:33 Arthur Zamarin
2023-03-04  9:12 Arthur Zamarin
2023-03-04  7:49 Arthur Zamarin
2023-03-04  7:08 Arthur Zamarin
2023-03-04  6:32 Arthur Zamarin
2023-03-04  6:18 Arthur Zamarin
2023-03-04  6:04 Arthur Zamarin
2023-01-29  7:45 Sam James
2023-01-29  7:45 Sam James
2023-01-29  7:45 Sam James
2022-09-07 19:08 Fabian Groffen
2022-07-30 13:42 Arthur Zamarin
2022-07-29  4:17 Sam James
2022-07-25  7:10 Agostino Sarubbo
2022-07-25  7:09 Agostino Sarubbo
2022-07-25  4:19 Sam James
2022-07-22 17:57 Sam James
2022-07-22 17:57 Sam James
2022-07-22 13:17 Anthony G. Basile
2022-05-05 23:48 WANG Xuerui
2021-10-28  9:35 Anthony G. Basile
2021-09-07 18:17 Anthony G. Basile
2021-09-07  1:19 Sam James
2021-09-07  1:19 Sam James
2021-09-07  1:19 Sam James
2021-09-07  1:19 Sam James
2021-08-17 21:39 Sam James
2021-08-17 18:56 Sam James
2021-08-17  1:41 Sam James
2021-08-15 19:51 Sam James
2021-08-14  3:50 Sam James
2021-08-10 23:46 Sam James
2021-08-10 23:45 Sam James
2021-01-06 14:36 Fabian Groffen
2020-12-22 22:31 Thomas Deutschmann
2020-11-28 12:10 Sam James
2020-11-26 22:59 Sergei Trofimovich
2020-11-24  7:43 Agostino Sarubbo
2020-11-23  1:25 Sam James
2020-11-23  1:25 Sam James
2020-11-23  0:49 Sam James
2020-11-20 23:44 Sam James
2020-11-20 23:44 Sam James
2020-11-20 23:44 Sam James
2020-11-20 23:44 Sam James
2020-11-20 17:37 Anthony G. Basile
2020-06-18  3:13 Aaron Bauman
2020-05-25 21:33 Sergei Trofimovich
2020-05-21  8:06 Agostino Sarubbo
2020-05-21  8:02 Agostino Sarubbo
2020-05-21  8:00 Agostino Sarubbo
2020-05-21  7:58 Agostino Sarubbo
2020-05-21  7:57 Agostino Sarubbo
2020-05-20 13:44 Mikle Kolyada
2020-05-20 13:34 Mikle Kolyada
2020-05-19 19:33 Mikle Kolyada
2020-05-16 14:37 Anthony G. Basile
2020-04-28 16:19 Anthony G. Basile
2020-03-29 10:37 Sergei Trofimovich
2019-11-13  7:39 Agostino Sarubbo
2019-11-12 13:36 Agostino Sarubbo
2019-11-12 10:16 Agostino Sarubbo
2019-11-08  1:46 Aaron Bauman
2019-11-04 20:06 Sergei Trofimovich
2019-11-03 13:52 Mikle Kolyada
2019-11-02  8:42 Agostino Sarubbo
2019-11-01 21:03 Thomas Deutschmann
2019-11-01 20:02 Sergei Trofimovich
2019-05-05 14:52 Mikle Kolyada
2018-10-24  9:45 Jeroen Roovers
2018-02-18  7:04 Anthony G. Basile
2018-01-29 20:10 Mike Frysinger
2017-12-04 22:07 Sergei Trofimovich
2017-10-30  7:57 Anthony G. Basile
2017-09-29  0:41 Sergei Trofimovich
2017-09-25 21:36 Sergei Trofimovich
2017-09-25 21:14 Sergei Trofimovich
2017-08-31 15:18 Matt Turner
2017-08-18 21:02 Thomas Deutschmann
2017-07-25 18:50 Markus Meier
2017-07-21  7:19 Sergei Trofimovich
2017-07-19 18:06 Tobias Klausmann
2017-06-22 17:21 Anthony G. Basile
2017-01-09 15:57 Anthony G. Basile
2017-01-09 13:49 Jeroen Roovers
2016-12-22  9:34 Agostino Sarubbo
2016-12-20  9:44 Agostino Sarubbo
2016-12-19 15:12 Agostino Sarubbo
2016-12-19 14:35 Agostino Sarubbo
2016-12-02 14:21 Tobias Klausmann
2016-11-30 19:35 Markus Meier
2016-11-29 10:43 Agostino Sarubbo
2016-11-29 10:41 Agostino Sarubbo
2016-02-23  9:15 Anthony G. Basile
2016-02-23  9:15 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1700028254.55bdf7f043be7ef5af52ff4fc35f45134d02e44a.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox