Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package c-ares.16941 for openSUSE:Leap:15.2:Update checked in at 2021-09-15 15:35:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2:Update/c-ares.16941 (Old) and /work/SRC/openSUSE:Leap:15.2:Update/.c-ares.16941.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "c-ares.16941" Wed Sep 15 15:35:53 2021 rev:1 rq:918716 version:1.17.1+20200724 Changes: -------- New Changes file: --- /dev/null 2021-09-02 09:14:41.336741815 +0200 +++ /work/SRC/openSUSE:Leap:15.2:Update/.c-ares.16941.new.1899/c-ares.changes 2021-09-15 15:35:53.391803694 +0200 @@ -0,0 +1,497 @@ +------------------------------------------------------------------- +Wed Sep 8 12:50:52 UTC 2021 - Adam Majer <adam.ma...@suse.de> + +- 5c995d5.patch: augment input validation on hostnames to allow _ + as part of DNS response (bsc#1190225) + +------------------------------------------------------------------- +Fri Aug 6 15:45:41 UTC 2021 - Adam Majer <adam.ma...@suse.de> + +- Version update to git snapshot 1.17.1+20200724: + * fixes missing input validation on hostnames returned by DNS + servers (bsc#1188881, CVE-2021-3672) + * If ares_getaddrinfo() was terminated by an ares_destroy(), + it would cause crash + * Crash in sortaddrinfo() if the list size equals 0 due to + an unexpected DNS response + * Expand number of escaped characters in DNS replies as + per RFC1035 5.1 to prevent spoofing + * Use unbuffered /dev/urandom for random data to prevent early startup + performance issues + +- missing_header.patch: upstreamed + +------------------------------------------------------------------- +Sat Nov 21 23:16:21 UTC 2020 - Marcus Rueckert <mrueck...@suse.de> + +- add BR for pkg-config to get the provides in the devel package + +------------------------------------------------------------------- +Thu Nov 19 09:51:18 UTC 2020 - Adam Majer <adam.ma...@suse.de> + +- ares_dns.h, missing_header.patch: re-add missing header in last release + +------------------------------------------------------------------- +Tue Nov 17 12:07:22 UTC 2020 - Adam Majer <adam.ma...@suse.de> + +- Version update to 1.17.0 + Security: + * avoid read-heap-buffer-overflow in ares_parse_soa_reply found during + fuzzing + * Avoid theoretical buffer overflow in RC4 loop comparison + * Empty hquery->name could lead to invalid memory access + * ares_parse_{a,aaaa}_reply() could return a larger *naddrttls than was + passed in (bsc#1178882, CVE-2020-8277) + + Changes: + * Update help information for adig, acountry, and ahost + * Test Suite now uses dynamic system-assigned ports rather than hardcoded + ports to prevent failures in containers + * Detect remote DNS server does not support EDNS using rules from RFC 6891 + * Source tree has been reorganized to use a more modern layout + * Allow parsing of CAA Resource Record + + Bug fixes: + * readaddrinfo bad sizeof() + * Test cases should honor HAVE_WRITEV flag, not depend on WIN32 + * FQDN with trailing period should be queried first + * ares_getaddrinfo() was returning members of the struct as garbage values if + unset, and was not honoring ai_socktype and ai_protocol hints. + * ares_gethostbyname() with AF_UNSPEC and an ip address would fail + * Properly document ares_set_local_ip4() uses host byte order + +For details, see https://c-ares.haxx.se/changelog.html + +- add missing upstream sources, to be removed for next release +- remove unnecessary BuildRequires +- fix building on SLE12 systems + +------------------------------------------------------------------- +Fri Sep 11 07:54:10 UTC 2020 - Tom???? Chv??tal <tchva...@suse.com> + +- simplify conditions bit to make it tad more readable + +------------------------------------------------------------------- +Thu Sep 10 01:31:11 UTC 2020 - Atri Bhattacharya <badshah...@gmail.com> + +- Implement multibuild specfile to split out tests into its own + flavor; this way we can build and run tests, which require + static lib, as well as avoid packaging the latter without issues + with the installed cmake file.. + +------------------------------------------------------------------- +Wed Jul 8 20:35:17 UTC 2020 - Matthias Eliasson <eli...@opensuse.org> + +- Version update to 1.16.1 + Security: + * Prevent possible use-after-free and double-free in ares_getaddrinfo() if + ares_destroy() is called prior to ares_getaddrinfo() completing. + Reported by Jann Horn at Google Project Zero. + Changes: + * Allow TXT records on CHAOS qclass. Used for retriving things like + version.bind, version.server, authoris.bind, hostname.bind, and id.server. [3] + Bug fixes: + * Fix Windows Unicode incompatibilities with ares_getaddrinfo() [1] + * Silence false cast-align compiler warnings due to valid casts of struct + sockaddr to struct sockaddr_in and struct sockaddr_in6. + * MacOS should use libresolv for retrieving DNS servers, like iOS + * CMake build system should populate the INCLUDE_DIRECTORIES property of + installed targets [2] + * Correct macros in use for the ares_getaddrinfo.3 man page +- Changes in version 1.16.0 + Changes: + * Introduction of ares_getaddrinfo() API which provides similar output + (including proper sorting as per RFC 6724) to the system native API, but + utilizes different data structures in order to provide additional + information such as TTLs and all aliases. Please reference the respective + man pages for usage details. + * Parse SOA records from ns_t_any response + * CMake: Provide c-ares version in package export file + * CMake: Add CPACK functionality for DEB and RPM + * CMake: Generate PDB files during build + * CMake: Support manpage installation + Bug fixes: + * Fix bad expectation in IPv6 localhost test. + * AutoTools: use XC_CHECK_BUILD_FLAGS instead of XC_CHECK_USER_FLAGS to + prevent complaints about CPPFLAGS in CFLAGS. + * Fix .onion handling + * Command line usage was out of date for adig and ahost. + * Typos in manpages + * If ares_getenv is defined, it must return a value on all platforms + * If /etc/resolv.conf has invalid lookup values, use the defaults. + * Tests: Separate live tests from SetServers* tests as only live tests + should require internet access. + * ares_gethostbyname() should return ENODATA if no valid A or AAAA record + is found, but a CNAME was found. + * CMake: Rework library function checking to prevent unintended linking + with system libraries that aren't needed. + * Due to use of inet_addr() it was not possible to return 255.255.255.255 + from ares_gethostbyname(). + * CMake: Fix building of tests on Windows +- Drop regression.patch which have been fixed upstream +- Refresh disable-live-tests.patch +- Remove static lib since its required when doing tests and we dont want it + included in package +- Run spec-cleaner + +------------------------------------------------------------------- +Mon Feb 3 15:17:24 UTC 2020 - Adam Majer <adam.ma...@suse.de> + +- Upgrade to latest snapshot from 2020-01-17 +- disable-live-tests.patch: refreshed +- regression.patch: fix a regression in DNS results that contain + both A and AAAA answers. + +------------------------------------------------------------------- +Tue Jan 28 15:52:23 UTC 2020 - Micha?? Rostecki <mroste...@opensuse.org> + +- Add netcfg as the build requirement and runtime requirement. + ares_getaddrinfo function uses the getservbyport_r function which + requires the /etc/services file to function properly. That config + file is provided by the netcfg package. Unit tests rely on it + too, hence it has to be a build dependency as well. + +------------------------------------------------------------------- +Mon Jan 6 17:54:05 UTC 2020 - Todd R <toddrme2...@gmail.com> + +- Switch to cmake-based build. + Some packages need the cmake build files. + +------------------------------------------------------------------- +Fri Nov 15 07:59:27 UTC 2019 - Tom???? Chv??tal <tchva...@suse.com> + +- Fix version number of the snapshot to not be downgrade: + bsc#1156601 + +------------------------------------------------------------------- +Fri Nov 8 11:16:29 UTC 2019 - Adam Majer <adam.ma...@suse.de> + +- Update to upstream snapshot 20191108 + * getaddrinfo - avoid infinite loop in case of NXDOMAIN + * ares_getenv - return NULL in all cases + * implement ares_getaddrinfo + +- onion-crash.patch: removed, upstreamed. +- removed upstream patches that are part of the snapshot: + 0001-Add-initial-implementation-for-ares_getaddrinfo-112.patch + 0002-Remaining-queries-counter-fix-additional-unit-tests-.patch + 0003-Bugfix-for-ares_getaddrinfo-and-additional-unit-test.patch + 0004-Add-ares__sortaddrinfo-to-support-getaddrinfo-sorted.patch + 0005-getaddrinfo-avoid-infinite-loop-in-case-of-NXDOMAIN-.patch + 0006-getaddrinfo-callback-must-be-called-on-bad-domain-24.patch + 0007-getaddrinfo-enhancements-257.patch + 0008-Add-missing-limits.h-include-from-ares_getaddrinfo.c.patch + 0009-Increase-portability-of-ares-test-mock-ai.cc-235.patch + 0010-Disable-failing-test.patch +- disable-live-tests.patch - updated + +------------------------------------------------------------------- +Wed Oct 23 15:11:27 UTC 2019 - Micha?? Rostecki <mroste...@opensuse.org> + +- Add upstream patches with the ares_getaddrinfo function: + * 0001-Add-initial-implementation-for-ares_getaddrinfo-112.patch + * 0002-Remaining-queries-counter-fix-additional-unit-tests-.patch + * 0003-Bugfix-for-ares_getaddrinfo-and-additional-unit-test.patch + * 0004-Add-ares__sortaddrinfo-to-support-getaddrinfo-sorted.patch + * 0005-getaddrinfo-avoid-infinite-loop-in-case-of-NXDOMAIN-.patch + * 0006-getaddrinfo-callback-must-be-called-on-bad-domain-24.patch ++++ 300 more lines (skipped) ++++ between /dev/null ++++ and /work/SRC/openSUSE:Leap:15.2:Update/.c-ares.16941.new.1899/c-ares.changes New: ---- 0001-Use-RPM-compiler-options.patch 5c995d5.patch _multibuild ares_dns.h baselibs.conf c-ares-1.17.1+20200724.tar.xz c-ares-config.cmake.in c-ares.changes c-ares.keyring c-ares.spec disable-live-tests.patch libcares.pc.cmake ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ c-ares.spec ++++++ # # spec file for package c-ares # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "%{nil}" ExclusiveArch: do_not_build %define pname c-ares %endif %if "%{flavor}" == "tests" %define pname c-ares-tests %bcond_without tests %endif %if "%{flavor}" == "main" %define pname c-ares %bcond_with tests %endif %define sonum 2 %define libname libcares%{sonum} %if 0%{!?cmake_build:1} %define cmake_build make -O VERBOSE=1 %{?_smp_mflags} %endif Name: %{pname} Version: 1.17.1+20200724 Release: 0 Summary: Library for asynchronous name resolves License: MIT URL: https://c-ares.haxx.se/ #Source0: http://c-ares.haxx.se/download/c-ares-%{version}.tar.gz #Source1: http://c-ares.haxx.se/download/c-ares-%{version}.tar.gz.asc Source0: c-ares-%{version}.tar.xz Source3: c-ares.keyring Source4: baselibs.conf ### REMOVE when upstream fixes https://github.com/c-ares/c-ares/issues/373 Source5: libcares.pc.cmake Source6: c-ares-config.cmake.in Source7: ares_dns.h Patch0: 0001-Use-RPM-compiler-options.patch Patch1: disable-live-tests.patch Patch2: https://github.com/c-ares/c-ares/commit/5c995d5.patch BuildRequires: cmake BuildRequires: gcc-c++ %if %{with tests} # Needed for getservbyport_r function to work properly. BuildRequires: netcfg %endif BuildRequires: pkg-config %description c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. %package utils Summary: Tools for asynchronous name resolves %description utils c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. This package provides some tools that make use of c-ares. %package -n %{libname} Summary: Library for asynchronous name resolves # Needed for getservbyport_r function to work properly. Requires: netcfg %description -n %{libname} c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. This package provides the shared libraries for c-ares. %package devel Summary: Development files for %{name} Requires: %{libname} = %{version} Requires: glibc-devel Provides: libcares-devel = %{version} Obsoletes: libcares-devel < %{version} %description devel c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. This package provides the development libraries and headers needed to build packages that depend on c-ares. %prep %autosetup -p1 -n c-ares-%{version} cp %{S:5} %{S:6} . cp %{S:7} include %build %cmake \ %if %{with tests} -DCARES_BUILD_TESTS:BOOL=ON \ %endif %{nil} %cmake_build %install %if !%{with tests} %cmake_install %endif %if %{with tests} %check pushd build %cmake_build -C test LD_LIBRARY_PATH=./%_libdir ./bin/arestest %endif %if !%{with tests} %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files utils %license LICENSE.md %{_bindir}/acountry %{_bindir}/adig %{_bindir}/ahost %{_mandir}/man1/acountry.1%{?ext_man} %{_mandir}/man1/adig.1%{?ext_man} %{_mandir}/man1/ahost.1%{?ext_man} %files -n %{libname} %license LICENSE.md %{_libdir}/libcares.so.%{sonum}* %files devel %license LICENSE.md %{_libdir}/libcares.so %{_includedir}/*.h %{_mandir}/man3/ares_*.3%{?ext_man} %{_libdir}/pkgconfig/libcares.pc %{_libdir}/cmake/c-ares/ %endif %changelog ++++++ 0001-Use-RPM-compiler-options.patch ++++++ >From 7dada62a77e061c752123e672e844386ff3b01ea Mon Sep 17 00:00:00 2001 From: Stephen Gallagher <sgall...@redhat.com> Date: Wed, 10 Apr 2013 12:32:44 -0400 Subject: [PATCH] Use RPM compiler options --- m4/cares-compilers.m4 | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4 index 7ee8e0dbe741c1a64149a0d20b826f507b3ec620..d7708230fb5628ae80fbf1052da0d2c78ebbc160 100644 --- a/m4/cares-compilers.m4 +++ b/m4/cares-compilers.m4 @@ -143,19 +143,12 @@ AC_DEFUN([CARES_CHECK_COMPILER_GNU_C], [ gccvhi=`echo $gccver | cut -d . -f1` gccvlo=`echo $gccver | cut -d . -f2` compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` - flags_dbg_all="-g -g0 -g1 -g2 -g3" - flags_dbg_all="$flags_dbg_all -ggdb" - flags_dbg_all="$flags_dbg_all -gstabs" - flags_dbg_all="$flags_dbg_all -gstabs+" - flags_dbg_all="$flags_dbg_all -gcoff" - flags_dbg_all="$flags_dbg_all -gxcoff" - flags_dbg_all="$flags_dbg_all -gdwarf-2" - flags_dbg_all="$flags_dbg_all -gvms" - flags_dbg_yes="-g" - flags_dbg_off="-g0" - flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" - flags_opt_yes="-O2" - flags_opt_off="-O0" + flags_dbg_all="" + flags_dbg_yes="" + flags_dbg_off="" + flags_opt_all="" + flags_opt_yes="" + flags_opt_off="" CURL_CHECK_DEF([_WIN32], [], [silent]) else AC_MSG_RESULT([no]) -- 1.8.1.4 ++++++ 5c995d5.patch ++++++ >From 5c995d50b05a2c374ae021012afa6f8f4cf2957e Mon Sep 17 00:00:00 2001 From: bradh352 <b...@brad-house.com> Date: Wed, 8 Sep 2021 07:38:44 -0400 Subject: [PATCH] ares_expand_name should allow underscores (_) as SRV records legitimately use them c-ares 1.17.2 introduced response validation to prevent a security issue, however it did not have (_) listed as a valid character for domain name responses which caused issues when a CNAME referenced a SRV record which contained underscores. While RFC2181 section 11 does explicitly state not to do validation, that applies to servers not clients. Fixes: #424 Fix By: Brad House (@bradh352) --- src/lib/ares_expand_name.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/ares_expand_name.c b/src/lib/ares_expand_name.c index a62c982e..db262ab4 100644 --- a/src/lib/ares_expand_name.c +++ b/src/lib/ares_expand_name.c @@ -59,10 +59,16 @@ static int ares__isprint(int ch) return 0; } -/* Character set allowed by hostnames */ +/* Character set allowed by hostnames. This is to include the normal + * domain name character set plus underscores which are used in SRV + * records. While RFC 2181 section 11 does state not to do validation, + * that applies to servers, not clients. Vulnerabilities have been + * reported when this validation is not performed. Security is more + * important than edge-case compatibility (which is probably invalid + * anyhow). */ static int is_hostnamech(int ch) { - /* [A-Za-z0-9-.] + /* [A-Za-z0-9-._] * Don't use isalnum() as it is locale-specific */ if (ch >= 'A' && ch <= 'Z') @@ -71,7 +77,7 @@ static int is_hostnamech(int ch) return 1; if (ch >= '0' && ch <= '9') return 1; - if (ch == '-' || ch == '.') + if (ch == '-' || ch == '.' || ch == '_') return 1; return 0; ++++++ _multibuild ++++++ <multibuild> <package>main</package> <package>tests</package> </multibuild> ++++++ ares_dns.h ++++++ #ifndef HEADER_CARES_DNS_H #define HEADER_CARES_DNS_H /* Copyright 1998, 2011 by the Massachusetts Institute of Technology. * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without * fee is hereby granted, provided that the above copyright * notice appear in all copies and that both that copyright * notice and this permission notice appear in supporting * documentation, and that the name of M.I.T. not be used in * advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * M.I.T. makes no representations about the suitability of * this software for any purpose. It is provided "as is" * without express or implied warranty. */ /* * NOTE TO INTEGRATORS: * * This header is made public due to legacy projects relying on it. * Please do not use the macros within this header, or include this * header in your project as it may be removed in the future. */ /* * Macro DNS__16BIT reads a network short (16 bit) given in network * byte order, and returns its value as an unsigned short. */ #define DNS__16BIT(p) ((unsigned short)((unsigned int) 0xffff & \ (((unsigned int)((unsigned char)(p)[0]) << 8U) | \ ((unsigned int)((unsigned char)(p)[1]))))) /* * Macro DNS__32BIT reads a network long (32 bit) given in network * byte order, and returns its value as an unsigned int. */ #define DNS__32BIT(p) ((unsigned int) \ (((unsigned int)((unsigned char)(p)[0]) << 24U) | \ ((unsigned int)((unsigned char)(p)[1]) << 16U) | \ ((unsigned int)((unsigned char)(p)[2]) << 8U) | \ ((unsigned int)((unsigned char)(p)[3])))) #define DNS__SET16BIT(p, v) (((p)[0] = (unsigned char)(((v) >> 8) & 0xff)), \ ((p)[1] = (unsigned char)((v) & 0xff))) #define DNS__SET32BIT(p, v) (((p)[0] = (unsigned char)(((v) >> 24) & 0xff)), \ ((p)[1] = (unsigned char)(((v) >> 16) & 0xff)), \ ((p)[2] = (unsigned char)(((v) >> 8) & 0xff)), \ ((p)[3] = (unsigned char)((v) & 0xff))) #if 0 /* we cannot use this approach on systems where we can't access 16/32 bit data on un-aligned addresses */ #define DNS__16BIT(p) ntohs(*(unsigned short*)(p)) #define DNS__32BIT(p) ntohl(*(unsigned long*)(p)) #define DNS__SET16BIT(p, v) *(unsigned short*)(p) = htons(v) #define DNS__SET32BIT(p, v) *(unsigned long*)(p) = htonl(v) #endif /* Macros for parsing a DNS header */ #define DNS_HEADER_QID(h) DNS__16BIT(h) #define DNS_HEADER_QR(h) (((h)[2] >> 7) & 0x1) #define DNS_HEADER_OPCODE(h) (((h)[2] >> 3) & 0xf) #define DNS_HEADER_AA(h) (((h)[2] >> 2) & 0x1) #define DNS_HEADER_TC(h) (((h)[2] >> 1) & 0x1) #define DNS_HEADER_RD(h) ((h)[2] & 0x1) #define DNS_HEADER_RA(h) (((h)[3] >> 7) & 0x1) #define DNS_HEADER_Z(h) (((h)[3] >> 4) & 0x7) #define DNS_HEADER_RCODE(h) ((h)[3] & 0xf) #define DNS_HEADER_QDCOUNT(h) DNS__16BIT((h) + 4) #define DNS_HEADER_ANCOUNT(h) DNS__16BIT((h) + 6) #define DNS_HEADER_NSCOUNT(h) DNS__16BIT((h) + 8) #define DNS_HEADER_ARCOUNT(h) DNS__16BIT((h) + 10) /* Macros for constructing a DNS header */ #define DNS_HEADER_SET_QID(h, v) DNS__SET16BIT(h, v) #define DNS_HEADER_SET_QR(h, v) ((h)[2] |= (unsigned char)(((v) & 0x1) << 7)) #define DNS_HEADER_SET_OPCODE(h, v) ((h)[2] |= (unsigned char)(((v) & 0xf) << 3)) #define DNS_HEADER_SET_AA(h, v) ((h)[2] |= (unsigned char)(((v) & 0x1) << 2)) #define DNS_HEADER_SET_TC(h, v) ((h)[2] |= (unsigned char)(((v) & 0x1) << 1)) #define DNS_HEADER_SET_RD(h, v) ((h)[2] |= (unsigned char)((v) & 0x1)) #define DNS_HEADER_SET_RA(h, v) ((h)[3] |= (unsigned char)(((v) & 0x1) << 7)) #define DNS_HEADER_SET_Z(h, v) ((h)[3] |= (unsigned char)(((v) & 0x7) << 4)) #define DNS_HEADER_SET_RCODE(h, v) ((h)[3] |= (unsigned char)((v) & 0xf)) #define DNS_HEADER_SET_QDCOUNT(h, v) DNS__SET16BIT((h) + 4, v) #define DNS_HEADER_SET_ANCOUNT(h, v) DNS__SET16BIT((h) + 6, v) #define DNS_HEADER_SET_NSCOUNT(h, v) DNS__SET16BIT((h) + 8, v) #define DNS_HEADER_SET_ARCOUNT(h, v) DNS__SET16BIT((h) + 10, v) /* Macros for parsing the fixed part of a DNS question */ #define DNS_QUESTION_TYPE(q) DNS__16BIT(q) #define DNS_QUESTION_CLASS(q) DNS__16BIT((q) + 2) /* Macros for constructing the fixed part of a DNS question */ #define DNS_QUESTION_SET_TYPE(q, v) DNS__SET16BIT(q, v) #define DNS_QUESTION_SET_CLASS(q, v) DNS__SET16BIT((q) + 2, v) /* Macros for parsing the fixed part of a DNS resource record */ #define DNS_RR_TYPE(r) DNS__16BIT(r) #define DNS_RR_CLASS(r) DNS__16BIT((r) + 2) #define DNS_RR_TTL(r) DNS__32BIT((r) + 4) #define DNS_RR_LEN(r) DNS__16BIT((r) + 8) /* Macros for constructing the fixed part of a DNS resource record */ #define DNS_RR_SET_TYPE(r, v) DNS__SET16BIT(r, v) #define DNS_RR_SET_CLASS(r, v) DNS__SET16BIT((r) + 2, v) #define DNS_RR_SET_TTL(r, v) DNS__SET32BIT((r) + 4, v) #define DNS_RR_SET_LEN(r, v) DNS__SET16BIT((r) + 8, v) #endif /* HEADER_CARES_DNS_H */ ++++++ baselibs.conf ++++++ libcares2 ++++++ c-ares-config.cmake.in ++++++ @PACKAGE_INIT@ set_and_check(c-ares_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@") include("${CMAKE_CURRENT_LIST_DIR}/c-ares-config-version.cmake") include("${CMAKE_CURRENT_LIST_DIR}/c-ares-targets.cmake") set(c-ares_LIBRARY c-ares::cares) if(@CARES_SHARED@) add_library(c-ares::cares_shared INTERFACE IMPORTED) set_target_properties(c-ares::cares_shared PROPERTIES INTERFACE_LINK_LIBRARIES "c-ares::cares") set(c-ares_SHARED_LIBRARY c-ares::cares_shared) elseif(@CARES_STATIC@) add_library(c-ares::cares_static INTERFACE IMPORTED) set_target_properties(c-ares::cares_static PROPERTIES INTERFACE_LINK_LIBRARIES "c-ares::cares") endif() if(@CARES_STATIC@) set(c-ares_STATIC_LIBRARY c-ares::cares_static) endif() ++++++ c-ares.keyring ++++++ pub rsa2048 2016-04-07 [SC] 27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2 uid [ unknown] Daniel Stenberg <dan...@haxx.se> sub rsa2048 2016-04-07 [E] -----BEGIN PGP PUBLIC KEY BLOCK----- mQENBFcGiPEBCAC7sCnaZqWxfXNgBC7P28BSDUs9w4y/PEFsOv9bpgbgZagX1Fnh G0eV71nm0p8v9T8Bft1eXaBd977Dq9pgk5qKO0xZo8fC8prFqB5db7fMUvPZCuJT Tb6lGMz4OdfT6aHqUvJ+LFF1mKn8Eqt1Q4snHGSL1PI3/+435qDRQsU15GdYrj1w aNJKk79aes9oguaI2/OTQqzIcOFK5tJjlSOD1ryOIH1e8vD+5MMpGvsRxv3sQHeT ZkfZbkzSLFg/LKpoiQkyql1+BLNhBYq8oaE/jlvQrTEkbAyKpMScdyHwmkWWKjyZ tXTrAtlComnki4yC2lAV9MXINHHvNJBcIXvVABEBAAG0IERhbmllbCBTdGVuYmVy ZyA8ZGFuaWVsQGhheHguc2U+iQE3BBMBCgAhBQJXBojxAhsDBQsJCAcDBRUKCQgL BRYCAwEAAh4BAheAAAoJEFzJCP23HhLCOKkH/1CyoKiN2PCgTlWoYQspv/AAmsj+ cFwZobI167KowA+o3zxQqxg0MV3ds8G+iig9OIuYurlQL5Jr3CbDltaiXdWtVteR h/VKp61EwyXq77vjJbx81hvOuaXWWLSlU0KB3w7Hj6aD/mt16DpOcY9Aw90mKyva fRTqMF7TcT7J5HeGn2NL45dPkAhiMDEgEnw9yBTxK/x6UoQGPgiOWxSSN7Foj3mh UOflp8W0rnkLbJ4icpym6WuLKRMKAefDvk8GVlAWuXAb9gloL1P6u3uNHllq/IOD R2bZUBI0QNKhvt0iSj7WKsc/kaqscl+AE9jd/6kXd6vhTNFWdzeco/2mGla5AQ0E VwaI8QEIAOxQAEvF3idxcn80tbUhJg1J98fAS7Hx3WhlFG74uAikZQl1KZrprBu7 0RWTb7Nm1tvZeXW65IlY7kk42bhfYDs1JrIPWOWKvVwKWDxoEbYgW/yvy1TOuXH2 76zbxLl5OEE8sQuOfXZsFSX2IPF9hsgNGaNzor8Ke7Y5BuCQLcGZWW5dLFbbKRKj XG8CaWmsJVoIc2nyXCAss2q9oCJ13X/5z+Ei392rwi1d3NxAYkSiDQan+fkWkCvZ H+dHmFjQ1ANDKielxcW1VfilK1hu9ziBBDf8TCEud/q0woIAH7rvIft4i3Cqjymo nByE4/OjfH8j4EteQ8qoknMCjjwNVqkAEQEAAYkBHwQYAQoACQUCVwaI8QIbDAAK CRBcyQj9tx4SwupjB/9TV4anbZK58bN7QJ5qGnU3GNjlvWFZXMw1u1xVc7abDJyq mFeJcJ4qLUkvBA0OsvlVnMWmeCmzsXhlQVM4Bv6IWyr7JBWgkK5q2CWVB59V7v7z nf5kWnMGFhDFPlLsGbxDWLMoZGH+Iy84whMJFgferwCJy1dND/bHXPztfhvFXi8N NlJUFJa8Xtmugm78C+nwNHcFpVC70HPr3oa8U1ODXMp7L8W/dL3eLYXmRCNd0urH gYrzDt6V/zf5ymvPk5w4HBocn2oRCJj/FXKhFAUptmpTE3g1yvYULmuFcNGAnPAE xmAmd6NqsCmbj/qx4ytjt5uxt6Jm6IXV9cry8i6x =iWGV -----END PGP PUBLIC KEY BLOCK----- ++++++ disable-live-tests.patch ++++++ diff -Naur c-ares-1.16.1.orig/test/Makefile.inc c-ares-1.16.1/test/Makefile.inc --- c-ares-1.16.1.orig/test/Makefile.inc 2020-07-08 22:15:36.667605939 +0200 +++ c-ares-1.16.1/test/Makefile.inc 2020-07-08 22:16:25.407171729 +0200 @@ -14,7 +14,6 @@ ares-test-parse-srv.cc \ ares-test-parse-txt.cc \ ares-test-misc.cc \ - ares-test-live.cc \ ares-test-mock.cc \ ares-test-mock-ai.cc \ ares-test-internal.cc \ ++++++ libcares.pc.cmake ++++++ #*************************************************************************** # Project ___ __ _ _ __ ___ ___ # / __|____ / _` | '__/ _ \/ __| # | (_|_____| (_| | | | __/\__ \ # \___| \__,_|_| \___||___/ # prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix}/@CMAKE_INSTALL_BINDIR@ libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ Name: c-ares URL: https://c-ares.haxx.se/ Description: asynchronous DNS lookup library Version: @CARES_VERSION@ Requires: Requires.private: Cflags: -I${includedir} @CPPFLAG_CARES_STATICLIB@ Libs: -L${libdir} -lcares Libs.private: @CARES_PRIVATE_LIBS@