From patchwork Wed Dec 4 13:15:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 8292 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Y3J1L5c7wz3wxp for ; Wed, 4 Dec 2024 13:15:50 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "E6" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Y3J1H3gvbz2Pq; Wed, 4 Dec 2024 13:15:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Y3J1H1HdTz33y9; Wed, 4 Dec 2024 13:15:47 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Y3J1F1VJrz2y1F for ; Wed, 4 Dec 2024 13:15:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Y3J1D2cxjznC; Wed, 4 Dec 2024 13:15:44 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1733318144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M8DjhO4WyJKCnr7gRFnfDU3WGUYSMwfGSSpl69OO91g=; b=rAHFFzEUOulpUNIClm2b/3ajuYOoo6ru53xWBhMn/bUPde1M5TIm7JIRjKqtaSIrtDt0vN vSF7PFLR7/x8HTDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1733318144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M8DjhO4WyJKCnr7gRFnfDU3WGUYSMwfGSSpl69OO91g=; b=bEJmbd2x76HJWUjdWU3rnZPysrkFjojBWQwjiSq5Z/ZNKtr04vtzn1VE9CHCa7tS30E9TN lMWDjngMGWD2or1Ab/IUeoPGsr6KPN9yKTFpmQQpFBiJypwf7DvkPPtqa3uPJGRxnXIlsU ugpcdc9V6PDVfi/xwqko0+AdlroGcxwi3HPtdPWvsp80X/vvU0SPCuLSqsH46CM+Hqz9Nf Pz733KDyiqXgwbCiKi9Fn1f6OzNnLhFMTR+L+TR/M7eLVYVEYrfVQsKk0CNs6LsvmR9wJi okE/2NYQ22cjfzs9QWza32vvtOKocNvoDTfLtDIe/3mGXEvbZMiiXiN9fun9ew== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] c-ares: Update to version 1.34.3 Date: Wed, 4 Dec 2024 14:15:40 +0100 Message-ID: <20241204131541.3417170-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: Z4CI6YUPV53AKORFF7FJC2D6EJPUIHKE X-Message-ID-Hash: Z4CI6YUPV53AKORFF7FJC2D6EJPUIHKE X-MailFrom: adolf.belka@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: - Update from version 1.32.1 to 1.34.3 - Update of rootfile - Changelog 1.34.3 Changes: Build the release package in an automated way so we can provide provenance as per SLSA3. PR #906 Bugfixes: Some upstream servers are non-compliant with EDNS options, resend queries without EDNS. Issue #911 Android: <=7 needs sys/system_properties.h a70637c Android: CMake needs -D_GNU_SOURCE and others. PR #915 TSAN warns on missing lock, but lock isn’t actually necessary. PR #915 ares_getaddrinfo() for AF_UNSPEC should retry IPv4 if only IPv6 is received. 765d558 ares_send() shouldn’t return ARES_EBADRESP, its ARES_EBADQUERY. 91519e7 Fix typos in man pages. PR #905 1.34.2 This release contains a fix for downstream packages detecting the c-ares version based on the contents of the header file rather than the distributed pkgconf or cmake files. 1.34.1 This release fixes a packaging issue. 1.34.0 Features: adig: read arguments from adigrc. PR #856 Add new pending write callback optimization via ares_set_pending_write_cb. PR #857 New function ares_process_fds(). PR #875 Failed servers should be probed rather than redirecting queries which could cause unexpected latency. PR #877 adig: rework command line arguments to mimic dig from bind. PR #890 Add new method for overriding network functions ares_set_socket_function_ex() to properly support all new functionality. PR #894 Fix regression with custom socket callbacks due to DNS cookie support. PR #895 ares_socket: set IP_BIND_ADDRESS_NO_PORT on ares_set_local_ip* tcp sockets PR #887 URI parser/writer for ares_set_servers_csv()/ares_get_servers_csv(). PR #882 Changes: Connection handling modularization. PR #857, PR #876 Expose library/utility functions to tools. PR #860 Remove ares__ prefix, just use ares_ for internal functions. PR #872 Bugfixes: fix: potential WIN32_LEAN_AND_MEAN redefinition. PR #869 Fix googletest v1.15 compatibility. PR #874 Fix pkgconfig thread dependencies. PR #884 1.33.1 Bugfixes: Work around systemd-resolved quirk that returns unexpected codes for single label names. Also adds test cases to validate the work around works and will continue to work in future releases. PR #863, See Also systemd/systemd#34101 Fix sysconfig ndots default value, also adds containerized test case to prevent future regressions. PR #862 Fix blank DNS name returning error code rather than valid record for commands like: adig -t SOA .. Also adds test case to prevent future regressions. 9e574af Fix calculation of query times > 1s. 2b2eae7 Fix building on old Linux releases that don’t have TCP_FASTOPEN_CONNECT. b7a89b9 Fix minor Android build warnings. PR #848 1.33.0 Features: Add DNS cookie support (RFC7873 + RFC9018) to help prevent off-path cache poisoning attacks. PR #833 Implement TCP FastOpen (TFO) RFC7413, which will make TCP reconnects 0-RTT on supported systems. PR #840 Changes: Reorganize source tree. PR #822 Refactoring of connection handling to prevent code duplication. PR #839 New dynamic array data structure to prevent simple logic flaws in array handling in various code paths. PR #841 Bugfixes: ares_destroy() race condition during shutdown due to missing lock. PR #831 Android: Preserve thread name after attaching it to JVM. PR #838 Windows UWP (Store) support fix. PR #845 1.32.3 Changes: Prevent complex recursion during query requeuing and connection cleanup for stability. e8b32b8 Better propagate error codes on requeue situations. a9bc0a2 Try to prevent SIGPIPE from being generated and delivered to integrations. de01baa Bugfixes: Missing manpage for ares_dns_record_set_id() aa462b3 Memory leak in ares__hosts_entry_to_hostent() due to allocation strategy. PR #824 UDP write failure detected via ICMP unreachable should trigger faster failover. PR #821 Fix pycares test case regression due to wrong error code being returned. Regression from 1.31.0. PR #820 Fix possible Windows crash during ares_destroy() when using event threads. 5609bd4 ARES_OPT_MAXTIMEOUTMS wasn’t being honored in all cases. a649c60 1.32.2 Bugfixes: Windows: rework EventThread AFD code for better stability. PR #811 Windows: If an IP address was detected to have changed, it could lead to a crash due to a bad pointer. Regression introduced in 1.31.0. 59e3a1f4 Windows: use QueryPerformanceCounters() instead of GetTickCount64() for better time accuracy (~15ms -> ~1us). 8a50fc6c Windows 32bit config change callback needs to be tagged as stdcall otherwise could result in a crash. 5c2bab35 Tests that need accurate timing should not depend on internal symbols as there are C++ equivalents in std::chrono. PR #809 Kqueue (MacOS, *BSD): If the open socket count exceeded 8 (unlikely), it would try to allocate a new buffer that was too small. 5aad7981 Signed-off-by: Adolf Belka --- config/rootfiles/packages/c-ares | 9 ++++++++- lfs/c-ares | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/config/rootfiles/packages/c-ares b/config/rootfiles/packages/c-ares index df5000f22..6fdaf3b18 100644 --- a/config/rootfiles/packages/c-ares +++ b/config/rootfiles/packages/c-ares @@ -7,7 +7,7 @@ #usr/lib/libcares.la #usr/lib/libcares.so usr/lib/libcares.so.2 -usr/lib/libcares.so.2.17.1 +usr/lib/libcares.so.2.19.2 #usr/lib/pkgconfig/libcares.pc #usr/share/man/man3/ares_cancel.3 #usr/share/man/man3/ares_create_query.3 @@ -48,9 +48,11 @@ usr/lib/libcares.so.2.17.1 #usr/share/man/man3/ares_dns_record_rr_del.3 #usr/share/man/man3/ares_dns_record_rr_get.3 #usr/share/man/man3/ares_dns_record_rr_get_const.3 +#usr/share/man/man3/ares_dns_record_set_id.3 #usr/share/man/man3/ares_dns_rr.3 #usr/share/man/man3/ares_dns_rr_add_abin.3 #usr/share/man/man3/ares_dns_rr_del_abin.3 +#usr/share/man/man3/ares_dns_rr_del_opt_byid.3 #usr/share/man/man3/ares_dns_rr_get_abin.3 #usr/share/man/man3/ares_dns_rr_get_abin_cnt.3 #usr/share/man/man3/ares_dns_rr_get_addr.3 @@ -122,6 +124,9 @@ usr/lib/libcares.so.2.17.1 #usr/share/man/man3/ares_parse_txt_reply.3 #usr/share/man/man3/ares_parse_uri_reply.3 #usr/share/man/man3/ares_process.3 +#usr/share/man/man3/ares_process_fd.3 +#usr/share/man/man3/ares_process_fds.3 +#usr/share/man/man3/ares_process_pending_write.3 #usr/share/man/man3/ares_query.3 #usr/share/man/man3/ares_query_dnsrec.3 #usr/share/man/man3/ares_queue.3 @@ -136,6 +141,7 @@ usr/lib/libcares.so.2.17.1 #usr/share/man/man3/ares_set_local_dev.3 #usr/share/man/man3/ares_set_local_ip4.3 #usr/share/man/man3/ares_set_local_ip6.3 +#usr/share/man/man3/ares_set_pending_write_cb.3 #usr/share/man/man3/ares_set_server_state_callback.3 #usr/share/man/man3/ares_set_servers.3 #usr/share/man/man3/ares_set_servers_csv.3 @@ -144,6 +150,7 @@ usr/lib/libcares.so.2.17.1 #usr/share/man/man3/ares_set_socket_callback.3 #usr/share/man/man3/ares_set_socket_configure_callback.3 #usr/share/man/man3/ares_set_socket_functions.3 +#usr/share/man/man3/ares_set_socket_functions_ex.3 #usr/share/man/man3/ares_set_sortlist.3 #usr/share/man/man3/ares_strerror.3 #usr/share/man/man3/ares_svcb_param_t.3 diff --git a/lfs/c-ares b/lfs/c-ares index 6da5810e4..0b29a6c1c 100644 --- a/lfs/c-ares +++ b/lfs/c-ares @@ -26,7 +26,7 @@ include Config SUMMARY = Tools for asynchronous name resolves -VER = 1.32.1 +VER = 1.34.3 THISAPP = c-ares-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = c-ares -PAK_VER = 3 +PAK_VER = 4 DEPS = @@ -48,7 +48,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = 662f15e7f1ae39614f0212745fe7883bbf831da667905e4595e011922b37c95b2037423dde96b0a62122a304d6edd04d36e99e428bdbf8f89d6ff9ecb4cfd712 +$(DL_FILE)_BLAKE2 = fb66f4c8ae4c2e03e8f75ee72259dbe83d7bed5e72a7936f785121c3d02267375f67c734bae7213ec48bac9277d48e3bed4225fd03ba69dacd120b97dcc3e421 install : $(TARGET)