Index | Thread | Search

From:
Brad Smith <brad@comstyle.com>
Subject:
Re: UPDATE: libcares 1.28
To:
ports@openbsd.org
Date:
Fri, 5 Apr 2024 02:23:27 -0400

Download raw body.

Thread
On 2024-03-30 6:00 p.m., Brad Smith wrote:
> On Fri, Mar 29, 2024 at 02:58:53PM -0400, Brad Smith wrote:
>> Here is an update to libcares 1.28.0.
>>
>>
>> ## c-ares version 1.28.0 - Mar 29 2024
>>
>> This is a feature and bugfix release.
>>
>> Features:
>>
>> * Emit warnings when deprecated c-ares functions are used.  This can be
>>    disabled by passing a compiler definition of `CARES_NO_DEPRECATED`.
>>   [PR #732](https://github.com/c-ares/c-ares/pull/732)
>> * Add function `ares_search_dnrec()` to search for records using the new DNS
>>    record data structures. [PR #719](https://github.com/c-ares/c-ares/pull/719)
>> * Rework internals to pass around `ares_dns_record_t` instead of binary data,
>>    this introduces new public functions of `ares_query_dnsrec()` and
>>    `ares_send_dnsrec()`. [PR #730](https://github.com/c-ares/c-ares/pull/730)
>>
>> Changes:
>>
>> * tests: when performing simulated queries, reduce timeouts to make tests run
>>    faster
>> * Replace configuration file parsers with memory-safe parser.
>>   [PR #725](https://github.com/c-ares/c-ares/pull/725)
>> * Remove `acountry` completely, the manpage might still get installed otherwise.
>>   [Issue #718](https://github.com/c-ares/c-ares/pull/718)
>>
>> Bugfixes:
>>
>> * CMake: don't overwrite global required libraries/definitions/includes which
>>    could cause build errors for projects chain building c-ares.
>>   [Issue #729](https://github.com/c-ares/c-ares/issues/729)
>> * On some platforms, `netinet6/in6.h` is not included by `netinet/in.h`
>>    and needs to be included separately.
>>   [PR #728](https://github.com/c-ares/c-ares/pull/728)
>> * Fix a potential memory leak in `ares_init()`.
>>   [Issue #724](https://github.com/c-ares/c-ares/issues/724)
>> * Some platforms don't have the `isascii()` function.  Implement as a macro.
>>   [PR #721](https://github.com/c-ares/c-ares/pull/721)
>> * CMake: Fix Chain building if CMAKE runtime paths not set
>> * NDots configuration should allow a value of zero.
>>   [PR #735](https://github.com/c-ares/c-ares/pull/735)


ping.

> Here is an update to libcares 1.28.1.
>
>
> ## c-ares version 1.28.1 - Mar 30 2024
>
> This release contains a fix for a single significant regression introduced
> in c-ares 1.28.0.
>
> * `ares_search()` and `ares_getaddrinfo()` resolution fails if no search domains
>    are specified. [Issue #737](https://github.com/c-ares/c-ares/issues/737)
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/libcares/Makefile,v
> retrieving revision 1.27
> diff -u -p -u -p -r1.27 Makefile
> --- Makefile	23 Feb 2024 20:42:46 -0000	1.27
> +++ Makefile	30 Mar 2024 21:58:55 -0000
> @@ -1,12 +1,12 @@
>   COMMENT=	asynchronous resolver library
>   
> -V=		1.27.0
> +V=		1.28.1
>   DISTNAME=	c-ares-${V}
>   PKGNAME=	libcares-${V}
>   CATEGORIES=	net devel
>   SITES=		${HOMEPAGE}download/
>   
> -SHARED_LIBS +=  cares                3.5      # 8.1.6
> +SHARED_LIBS +=  cares                3.6      # 8.1.6
>   
>   HOMEPAGE=	https://c-ares.haxx.se/
>   
> @@ -19,7 +19,13 @@ WANTLIB+=	pthread
>   
>   MODULES=	devel/cmake
>   
> -CONFIGURE_ARGS+=-DCARES_BUILD_TOOLS=OFF \
> +# C++
> +COMPILER=	base-clang ports-gcc
> +
> +BUILD_DEPENDS+=	devel/gtest
> +
> +CONFIGURE_ARGS+=-DCARES_BUILD_TESTS=ON \
> +		-DCARES_BUILD_TOOLS=OFF \
>   		-DCARES_STATIC=ON \
>   		-DCARES_SYMBOL_HIDING=ON
>   
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/net/libcares/distinfo,v
> retrieving revision 1.15
> diff -u -p -u -p -r1.15 distinfo
> --- distinfo	23 Feb 2024 20:42:46 -0000	1.15
> +++ distinfo	30 Mar 2024 21:58:55 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (c-ares-1.27.0.tar.gz) = CnK+ZpWZVcQ+KvL70DQY6Cor1UZGBOyaYhR+N6zrQgs=
> -SIZE (c-ares-1.27.0.tar.gz) = 1301440
> +SHA256 (c-ares-1.28.1.tar.gz) = Z1pp/FTdv0LmgwvGce62zYnuykOCjrQTJD/SwKdggJ0=
> +SIZE (c-ares-1.28.1.tar.gz) = 1312102
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/net/libcares/pkg/PLIST,v
> retrieving revision 1.14
> diff -u -p -u -p -r1.14 PLIST
> --- pkg/PLIST	23 Feb 2024 20:42:46 -0000	1.14
> +++ pkg/PLIST	30 Mar 2024 21:58:55 -0000
> @@ -37,6 +37,7 @@ lib/pkgconfig/libcares.pc
>   @man man/man3/ares_dns_record.3
>   @man man/man3/ares_dns_record_create.3
>   @man man/man3/ares_dns_record_destroy.3
> +@man man/man3/ares_dns_record_duplicate.3
>   @man man/man3/ares_dns_record_get_flags.3
>   @man man/man3/ares_dns_record_get_id.3
>   @man man/man3/ares_dns_record_get_opcode.3
> @@ -44,10 +45,13 @@ lib/pkgconfig/libcares.pc
>   @man man/man3/ares_dns_record_query_add.3
>   @man man/man3/ares_dns_record_query_cnt.3
>   @man man/man3/ares_dns_record_query_get.3
> +@man man/man3/ares_dns_record_query_set_name.3
> +@man man/man3/ares_dns_record_query_set_type.3
>   @man man/man3/ares_dns_record_rr_add.3
>   @man man/man3/ares_dns_record_rr_cnt.3
>   @man man/man3/ares_dns_record_rr_del.3
>   @man man/man3/ares_dns_record_rr_get.3
> +@man man/man3/ares_dns_record_rr_get_const.3
>   @man man/man3/ares_dns_rr.3
>   @man man/man3/ares_dns_rr_get_addr.3
>   @man man/man3/ares_dns_rr_get_addr6.3
> @@ -119,10 +123,16 @@ lib/pkgconfig/libcares.pc
>   @man man/man3/ares_parse_uri_reply.3
>   @man man/man3/ares_process.3
>   @man man/man3/ares_query.3
> +@man man/man3/ares_query_dnsrec.3
> +@man man/man3/ares_queue.3
> +@man man/man3/ares_queue_active_queries.3
> +@man man/man3/ares_queue_wait_empty.3
>   @man man/man3/ares_reinit.3
>   @man man/man3/ares_save_options.3
>   @man man/man3/ares_search.3
> +@man man/man3/ares_search_dnsrec.3
>   @man man/man3/ares_send.3
> +@man man/man3/ares_send_dnsrec.3
>   @man man/man3/ares_set_local_dev.3
>   @man man/man3/ares_set_local_ip4.3
>   @man man/man3/ares_set_local_ip6.3
>