mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
net-dns/c-ares: Sync with Gentoo
It's from Gentoo commit 14ee2c08fed6b58629346f1f9f8f5c9e209b87a0.
This commit is contained in:
parent
6e24443b5b
commit
ed9e37ce5c
@ -12,3 +12,5 @@ DIST c-ares-1.32.2.tar.gz 1026293 BLAKE2B 1acd4d90d0e9d8abcbc49561db8ae2e5529539
|
||||
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
|
||||
|
109
sdk_container/src/third_party/portage-stable/net-dns/c-ares/c-ares-1.33.1.ebuild
vendored
Normal file
109
sdk_container/src/third_party/portage-stable/net-dns/c-ares/c-ares-1.33.1.ebuild
vendored
Normal file
@ -0,0 +1,109 @@
|
||||
# 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 ~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="
|
||||
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