mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 22:46:58 +02:00
net-dns/c-ares: Sync with Gentoo
It's from Gentoo commit a90107ac1e5445d05044ecb04686762a3a3cf9f5.
This commit is contained in:
parent
2ad4dd02f6
commit
e019fe9968
@ -2,19 +2,9 @@ DIST c-ares-1.28.1.tar.gz 1312102 BLAKE2B 2d0f12aeb4b947f76fe6c45e2bb0a7401c5d3a
|
||||
DIST c-ares-1.28.1.tar.gz.asc 488 BLAKE2B 90f3aedc3b56f31519a9b2746e528bb952364748b6053ecebaa3edf4269aab6b3badad459a14e8afe623340b294fd072b13c60af540eb59d7f4d82eb5204be83 SHA512 62659e3c41ea7158c7fdaab3246fee6a6a1502dec12d322efd353e5a0fb1b0aa4c1caf7ace37e1d3ea0b2937522814fdf66af2d19a501e9b9995b86e2369410d
|
||||
DIST c-ares-1.29.0.tar.gz 1329299 BLAKE2B 7dd6a0dc85d3383087726cd48e75b481f4ef7551a41590de21b7f30f9e588d7bef87c852203b91f281b0fbf44dca75f0ae538f6a3c17fe8ff29c802d05d36189 SHA512 0287fd59aa6d831e0d1705deb6b4b1ab3b97a28c5c42feeeaa1eeab55ffb429998c7f0735f15cf5eaeb9177cb77800e6b0b01107bd28fb082cf737f8c12766d0
|
||||
DIST c-ares-1.29.0.tar.gz.asc 488 BLAKE2B 3d955b0a130dce562436d9629f1403e30ee5ebd2e981a9c2220b51d129222c3760d6bd8a681cab6115e3f2ef0bcf8e8d600792fc498bc0c05638ce7fcac0d509 SHA512 a379f3c5338073810b7bf932fecf0ce1f0b382cfbc75521f4b135cb78d0a9fd418b06f7affd747fa00d11479186db248fe8ef8120858de2b8f562b56cc41ecb2
|
||||
DIST c-ares-1.31.0.tar.gz 1012373 BLAKE2B d302862148998fbfb737e5f78826a3152b299fbbf04db4d80580daeaade77e4ea1a9513f4d194746733c33a35474f39dce43dd0562b3faa8673b366a2190c87c SHA512 571d2555b4aaf3bf9cd7b5c89be8448ca26fe0ea1f3d664b07a01b42d28af4f5412b30485ef01d4bacc4e08de487dc6eeda98acf212a6a08edec6805f17210cc
|
||||
DIST c-ares-1.31.0.tar.gz.asc 228 BLAKE2B 41d35804e4f5d0e11c2c6c192453a0d48f779be999a3f9c1bd8066c547e0ed9959083d953b7735ca15699444913bcdd7d43c3871e11a381e9c8ee508086fc3d8 SHA512 ea2decdec5913f25e690e6c7437fad1682b2df807397e4b764ebb2a8b010804f77b91a889e8aa00471cd1bba3b96c5f90d815ffa677598e9b516909e29b7f960
|
||||
DIST c-ares-1.32.0.tar.gz 1021855 BLAKE2B b60c924581ba7db1d87350929d22b5e15684484579e0a7d46068438ca8a953bfb7945cb38cad42f008631bb7ea51e10acb074053d485cd91a52eef742f09fdc1 SHA512 15b9dc967f66a355095f68ef84238776f6ed826fc9077702ffbb6b136be1befadcb9da1f07956079efe593434c1e912993f6e93e948291668b806be50f03136c
|
||||
DIST c-ares-1.32.0.tar.gz.asc 228 BLAKE2B d9cf726e42d79ccdaeca2aafc028c1d03aa56acd1cf03b118070968a31655046a3d609e8ea529f03465341d6decaa7f8eace4310487e7028e3a1ad355d25fa4c SHA512 7554b37e470a57ad0175050c1966e1b72bf67791aa860b113a66688ac28e525b93a633a472dd43c8a16bddb366e918b202760efab5ab311c4b6ee63e72869552
|
||||
DIST c-ares-1.32.1.tar.gz 1022052 BLAKE2B 662f15e7f1ae39614f0212745fe7883bbf831da667905e4595e011922b37c95b2037423dde96b0a62122a304d6edd04d36e99e428bdbf8f89d6ff9ecb4cfd712 SHA512 20339b92c5355c01f71a0ab5fe4b823b41ad09269dbdaf4f1567324735d7e90812c9f3f7ce197247be0bd793df35b85aa1747675762a2344e4f506346466d349
|
||||
DIST c-ares-1.32.1.tar.gz.asc 228 BLAKE2B d3d44263673c79b2dae594f5a2b3be076528c9c9f3c672e9c5cf3db68eb1b7da6ba74f8ae44605d783440f3bbada4033073e4feeee8ed9833226f76068022dc4 SHA512 3a1dc1f1066bb4d35024ef9e7246c2f630d309a1843e32574f29c07ce01e0461176dd9d53b1a7d2df279959a8b13c10cb4396ee7fafbac534e1b4d44bcefc47a
|
||||
DIST c-ares-1.32.2.tar.gz 1026293 BLAKE2B 1acd4d90d0e9d8abcbc49561db8ae2e55295398353896a7ab0108c1ac8718eb08c655dff8aa6c0efa138524805972ac4033d0c49cfcebaeca1a019021073e981 SHA512 f552dbe9cb7f7b28ed05d93ee866a161e77c841453cde3659cb1e0bf6d501894bf5f6b8db308f7397e6ead4b42f34ce17e1c2ef307352de50f2aad25e4610de8
|
||||
DIST c-ares-1.32.2.tar.gz.asc 228 BLAKE2B 6a09ff532d1334f994f9e9365ce6074aae4227b27c0a5ef40e441192b6b23c728772278fec7c8c34fc93d20309b04b9e31802d4491dc3e1313818eadbe8a4afc SHA512 385ca9bd72a2131f2eb51c035e50d21d816361872a0db42c6a9dc60a1a3971d464f34c2518c759e01e6c88b5bf100ddaa87862e877187a9b59800070b2bef7af
|
||||
DIST c-ares-1.33.0.tar.gz 1040626 BLAKE2B 730ca3ca9ebb03228fc17d87f1a659f77f91d2a4cc840fa21d7bf083878cc2714a2695808f53de2182e3cf2be367a95bb9625473cfbace40536cb3a33fd0d338 SHA512 3cf1b94d6e8e53742703a679d7e35d3f985320720f41fa58189a0bcad4aca80405c73c4689abe7879df292dbe8f3ddca34b2d48429af5afcc9d2933edb075788
|
||||
DIST c-ares-1.33.0.tar.gz.asc 228 BLAKE2B 945ebedb47c998aa917aebc6180cc9f601bc4f10c648955cc9af84e09d5832e06cf7c7afa7ddc1591474f23758c7d269c722d4dce34e4680edc69ce93be483ad SHA512 bd6386a917d072ac41adb604affa314b8e05e8cfeff5ade7e9d6f520baf4d73d7adf68cff35f4748aeee45d4d646ca6d6cf438e75e1c7125f1ababd561809e8c
|
||||
DIST c-ares-1.33.1.tar.gz 1044943 BLAKE2B d8084db84da252ced8cc91b4ed523a5309dbc788bf25f1ab46f3e4817b4c12a3d3d4565179287b7542ac8a7b4f812c20dcc44d9f7284153a9e43765ca7aaf996 SHA512 b5ec4f08539be552f01d49f03327e3999754b940d83c63fbd934c2ed34cf7f05c3f90c9eb64a78a3d7862280bf75765296576a70a6029257daaf90e3e35ab3e4
|
||||
DIST c-ares-1.33.1.tar.gz.asc 228 BLAKE2B 4908cc70133d75f926387873b0bf7b274c8ab162391b73da2a9f25658bda52763f41ffb1aa4236cdc14efa7bcbbba32d3b0be8bd95161654901c304a4f14f6f8 SHA512 f9c8c8965046176104487939b04a38f3f6e68693ff1ef239ce988cf4c56dfacf2766482857d480a4022d6101c2591c013d8687d4bbf009e40863c1d7a95c2fad
|
||||
DIST c-ares-1.34.1.tar.gz 1008224 BLAKE2B 7094cf3a3fba4df6367d56c1d251d1f682b37b1f094c66286951c8e2b2d519935b58a039aa926869de90bf0674fec2c6e127327820ae3f50b4d27fdf0c560947 SHA512 193a4b304dd81dcaf9854ae26662868187521eddd3514a7ba32b2f4f45dc158081bf5829b07e36436e2f16344120e83fe1b9369a11d701ad053824d0b03371bb
|
||||
DIST c-ares-1.34.1.tar.gz.asc 228 BLAKE2B 9d5dd6858e5686420c73ed269d6c5d3376f6fefe09122f993800c93682633995eb90e30a244e435f209a8014c32279949cfd044aa755852408ffa1b869431df8 SHA512 a198cae7cd010f31034835ae0b35d828aeccd443e56d3d04d18eb0fd2bcfa71847d3c3da66d8d15700400bd9576a2ee73aee08f3af2ee77f6d2219b2ff45e565
|
||||
DIST c-ares-1.34.2.tar.gz 1008432 BLAKE2B 4879de256a35e33bbe37cfc3e7af14a6998821a36efbac6b26f265b6f8d782ee22016b92e9285efc745f6a667336c8c1c0b51b380fe9fbee295f73f62331e579 SHA512 ddcda2f4c82ece7d670d0beb11485253a0f0db1f01131164e7253a20405c081844d2c69e366300c76ca0419a025e0fed516ee54314443afc39d55ce292354ad9
|
||||
DIST c-ares-1.34.2.tar.gz.asc 228 BLAKE2B 6338c1726907e893ae63927eb2ba31211f31857640d4c9659bc9b8ef84278bc873f0b744f1c449452bd6283ebd945eafc87135830f3b603363a63274c8e3f11c SHA512 f37cca24c2fcb3310ebfa4996a86a59a5b714005e42bb0019f590c70f60f0e0ececab0bbbb0826b5bed7423b8c18c23fa6efc16ab03420b154163917bf4e43c4
|
||||
DIST c-ares-1.34.3.tar.gz 997244 BLAKE2B fb66f4c8ae4c2e03e8f75ee72259dbe83d7bed5e72a7936f785121c3d02267375f67c734bae7213ec48bac9277d48e3bed4225fd03ba69dacd120b97dcc3e421 SHA512 f122d27cc76c20b41f9659b8bc662a8d82b857f8c066b1216b0349228d996224e42a7a0535bcdd6a3928b437c67d18726bfcb51c93f3a9801eebda6574e39c78
|
||||
DIST c-ares-1.34.3.tar.gz.asc 228 BLAKE2B 40e76fbc23a8aece1749a66499e469299e9df8174923ceeac788dd0ef0a8f029e79c550db1e8850e472b0d584215b52e3cedb5b7c4d3eb1daad8fc96864ad536 SHA512 f6ffcd6ef2571f51899f138d0f13003243e3031a2e4a1f96878c4fdd114c8682ee24c2826f9cfaa2022750058a2e11cb188972e9f369b87974b5abc351a5bc7b
|
||||
|
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Both Daniel and Brad are listed as possible signers on the homepage
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bradhouse.asc
|
||||
inherit edo multilib-minimal verify-sig
|
||||
|
||||
DESCRIPTION="C library that resolves names asynchronously"
|
||||
HOMEPAGE="https://c-ares.org/"
|
||||
SRC_URI="
|
||||
https://github.com/c-ares/c-ares/releases/download/v${PV}/${P}.tar.gz
|
||||
verify-sig? ( https://github.com/c-ares/c-ares/releases/download/v${PV}/${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 ~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="
|
||||
test? ( dev-cpp/gtest )
|
||||
verify-sig? ( sec-keys/openpgp-keys-bradhouse )
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS README.md RELEASE-NOTES.md )
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/ares_build.h
|
||||
)
|
||||
|
||||
A__QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
# Checking for obsolete headers
|
||||
malloc
|
||||
calloc
|
||||
free
|
||||
|
||||
# Non-existent on Linux
|
||||
closesocket
|
||||
CloseSocket
|
||||
ioctlsocket
|
||||
bitncmp
|
||||
ConvertInterfaceIndexToLuid
|
||||
ConvertInterfaceLuidToNameA
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
local myeconfargs=(
|
||||
--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
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Both Daniel and Brad are listed as possible signers on the homepage
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bradhouse.asc
|
||||
inherit edo multilib-minimal verify-sig
|
||||
|
||||
DESCRIPTION="C library that resolves names asynchronously"
|
||||
HOMEPAGE="https://c-ares.org/"
|
||||
SRC_URI="
|
||||
https://github.com/c-ares/c-ares/releases/download/v${PV}/${P}.tar.gz
|
||||
verify-sig? ( https://github.com/c-ares/c-ares/releases/download/v${PV}/${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 ~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="
|
||||
test? ( dev-cpp/gtest )
|
||||
verify-sig? ( sec-keys/openpgp-keys-bradhouse )
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS README.md RELEASE-NOTES.md )
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/ares_build.h
|
||||
)
|
||||
|
||||
A__QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
# Checking for obsolete headers
|
||||
malloc
|
||||
calloc
|
||||
free
|
||||
|
||||
# Non-existent on Linux
|
||||
closesocket
|
||||
CloseSocket
|
||||
ioctlsocket
|
||||
bitncmp
|
||||
ConvertInterfaceIndexToLuid
|
||||
ConvertInterfaceLuidToNameA
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
local myeconfargs=(
|
||||
--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
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Both Daniel and Brad are listed as possible signers on the homepage
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bradhouse.asc
|
||||
inherit edo multilib-minimal verify-sig
|
||||
|
||||
DESCRIPTION="C library that resolves names asynchronously"
|
||||
HOMEPAGE="https://c-ares.org/"
|
||||
SRC_URI="
|
||||
https://github.com/c-ares/c-ares/releases/download/v${PV}/${P}.tar.gz
|
||||
verify-sig? ( https://github.com/c-ares/c-ares/releases/download/v${PV}/${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 ~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="
|
||||
test? ( dev-cpp/gtest )
|
||||
verify-sig? ( sec-keys/openpgp-keys-bradhouse )
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS README.md RELEASE-NOTES.md )
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/ares_build.h
|
||||
)
|
||||
|
||||
A__QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
# Checking for obsolete headers
|
||||
malloc
|
||||
calloc
|
||||
free
|
||||
|
||||
# Non-existent on Linux
|
||||
closesocket
|
||||
CloseSocket
|
||||
ioctlsocket
|
||||
bitncmp
|
||||
ConvertInterfaceIndexToLuid
|
||||
ConvertInterfaceLuidToNameA
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
local myeconfargs=(
|
||||
--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
|
||||
}
|
@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Both Daniel and Brad are listed as possible signers on the homepage
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bradhouse.asc
|
||||
inherit edo multilib-minimal verify-sig
|
||||
|
||||
DESCRIPTION="C library that resolves names asynchronously"
|
||||
HOMEPAGE="https://c-ares.org/"
|
||||
SRC_URI="
|
||||
https://github.com/c-ares/c-ares/releases/download/v${PV}/${P}.tar.gz
|
||||
verify-sig? ( https://github.com/c-ares/c-ares/releases/download/v${PV}/${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 ~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="
|
||||
test? ( dev-cpp/gtest )
|
||||
verify-sig? ( sec-keys/openpgp-keys-bradhouse )
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS README.md RELEASE-NOTES.md )
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/ares_build.h
|
||||
)
|
||||
|
||||
A__QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
# Checking for obsolete headers
|
||||
malloc
|
||||
calloc
|
||||
free
|
||||
|
||||
# Non-existent on Linux
|
||||
closesocket
|
||||
CloseSocket
|
||||
ioctlsocket
|
||||
bitncmp
|
||||
ConvertInterfaceIndexToLuid
|
||||
ConvertInterfaceLuidToNameA
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# warnings are default, but enable -std=c90 which doesn't define
|
||||
# 'bool' which is a type used/assumed in macOS system headers
|
||||
sed -i -e 's/-std=c90/& -Dbool=int/' configure{.ac,} || die
|
||||
# sysconfig integration requires deep framework compatibility
|
||||
# and is not really desired in Prefix
|
||||
sed -i -e 's/__APPLE__/__DISABLED__/' \
|
||||
src/lib/ares_sysconfig_mac.c || die
|
||||
sed -i -e '/elif defined(__APPLE__)/s/__APPLE__/__DISABLED__/' \
|
||||
src/lib/ares_sysconfig.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myeconfargs=(
|
||||
--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
|
||||
}
|
@ -18,7 +18,7 @@ SRC_URI="
|
||||
LICENSE="MIT ISC"
|
||||
# Subslot = SONAME of libcares.so.2
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~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 )"
|
||||
|
||||
|
@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Both Daniel and Brad are listed as possible signers on the homepage
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bradhouse.asc
|
||||
inherit edo multilib-minimal verify-sig
|
||||
|
||||
DESCRIPTION="C library that resolves names asynchronously"
|
||||
HOMEPAGE="https://c-ares.org/"
|
||||
SRC_URI="
|
||||
https://github.com/c-ares/c-ares/releases/download/v${PV}/${P}.tar.gz
|
||||
verify-sig? ( https://github.com/c-ares/c-ares/releases/download/v${PV}/${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 ~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="
|
||||
test? ( dev-cpp/gtest )
|
||||
verify-sig? ( sec-keys/openpgp-keys-bradhouse )
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS README.md RELEASE-NOTES.md )
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/ares_build.h
|
||||
)
|
||||
|
||||
A__QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
# Checking for obsolete headers
|
||||
malloc
|
||||
calloc
|
||||
free
|
||||
|
||||
# Non-existent on Linux
|
||||
closesocket
|
||||
CloseSocket
|
||||
ioctlsocket
|
||||
bitncmp
|
||||
ConvertInterfaceIndexToLuid
|
||||
ConvertInterfaceLuidToNameA
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# warnings are default, but enable -std=c90 which doesn't define
|
||||
# 'bool' which is a type used/assumed in macOS system headers
|
||||
sed -i -e 's/-std=c90/& -Dbool=int/' configure{.ac,} || die
|
||||
# sysconfig integration requires deep framework compatibility
|
||||
# and is not really desired in Prefix
|
||||
sed -i -e 's/__APPLE__/__DISABLED__/' \
|
||||
src/lib/ares_sysconfig_mac.c || die
|
||||
sed -i -e '/elif defined(__APPLE__)/s/__APPLE__/__DISABLED__/' \
|
||||
src/lib/ares_sysconfig.c || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myeconfargs=(
|
||||
--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
|
||||
}
|
Loading…
Reference in New Issue
Block a user