Hello community, here is the log from the commit of package c-ares for openSUSE:Factory checked in at 2019-02-24 17:06:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/c-ares (Old) and /work/SRC/openSUSE:Factory/.c-ares.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "c-ares" Sun Feb 24 17:06:46 2019 rev:3 rq:674654 version:1.15.0 Changes: -------- --- /work/SRC/openSUSE:Factory/c-ares/c-ares.changes 2018-03-01 12:06:59.375862506 +0100 +++ /work/SRC/openSUSE:Factory/.c-ares.new.28833/c-ares.changes 2019-02-24 17:06:50.956581897 +0100 @@ -1,0 +2,16 @@ +Wed Feb 13 15:44:18 UTC 2019 - [email protected] + +- Version update to 1.15.0: + * Add ares_init_options() configurability for path to resolv.conf file + * Ability to exclude building of tools (adig, ahost, acountry) in CMake + * Report ARES_ENOTFOUND for .onion domain names as per RFC7686 + (bsc#1125306) + * Apply the IPv6 server blacklist to all nameserver sources + * Prevent changing name servers while queries are outstanding + * ares_set_servers_csv() on failure should not leave channel in a + bad state +- enable unit tests +- disable-live-tests.patch: disable tests to live servers +- onion-crash.patch: backport fix for a crash affecting .onion TLD + +------------------------------------------------------------------- Old: ---- c-ares-1.14.0.tar.gz c-ares-1.14.0.tar.gz.asc New: ---- c-ares-1.15.0.tar.gz c-ares-1.15.0.tar.gz.asc disable-live-tests.patch onion-crash.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ c-ares.spec ++++++ --- /var/tmp/diff_new_pack.IxuoaD/_old 2019-02-24 17:06:52.332581242 +0100 +++ /var/tmp/diff_new_pack.IxuoaD/_new 2019-02-24 17:06:52.336581240 +0100 @@ -1,7 +1,7 @@ # # spec file for package c-ares # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,13 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define libname libcares2 Name: c-ares -Version: 1.14.0 +Version: 1.15.0 Release: 0 Summary: Library for asynchronous name resolves License: MIT @@ -29,6 +29,8 @@ Source3: %{name}.keyring Source4: baselibs.conf Patch0: 0001-Use-RPM-compiler-options.patch +Patch1: disable-live-tests.patch +Patch2: onion-crash.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ @@ -65,6 +67,8 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 # Remove bogus cflags checking sed -i -e '/XC_CHECK_BUILD_FLAGS/d' configure.ac @@ -77,9 +81,14 @@ --enable-symbol-hiding \ --enable-nonblocking \ --enable-shared \ - --disable-static + --disable-static \ + --enable-tests make %{?_smp_mflags} +%check +make -C test %{?_smp_mflags} +./test/arestest + %install %make_install find %{buildroot} -type f -name "*.la" -delete -print ++++++ c-ares-1.14.0.tar.gz -> c-ares-1.15.0.tar.gz ++++++ ++++ 7816 lines of diff (skipped) ++++++ disable-live-tests.patch ++++++ Index: c-ares-1.15.0/test/Makefile.inc =================================================================== --- c-ares-1.15.0.orig/test/Makefile.inc +++ c-ares-1.15.0/test/Makefile.inc @@ -13,7 +13,6 @@ TESTSOURCES = ares-test-main.cc \ ares-test-parse-srv.cc \ ares-test-parse-txt.cc \ ares-test-misc.cc \ - ares-test-live.cc \ ares-test-mock.cc \ ares-test-internal.cc \ dns-proto.cc \ Index: c-ares-1.15.0/test/ares-test-misc.cc =================================================================== --- c-ares-1.15.0.orig/test/ares-test-misc.cc +++ c-ares-1.15.0/test/ares-test-misc.cc @@ -47,10 +47,12 @@ TEST_F(DefaultChannelTest, SetServers) { EXPECT_EQ(expected, GetNameServers(channel_)); // Change not allowed while request is pending + /* HostResult result; ares_gethostbyname(channel_, "www.google.com.", AF_INET, HostCallback, &result); EXPECT_EQ(ARES_ENOTIMP, ares_set_servers(channel_, &server1)); ares_cancel(channel_); + */ } TEST_F(DefaultChannelTest, SetServersPorts) { @@ -77,10 +79,12 @@ TEST_F(DefaultChannelTest, SetServersPor EXPECT_EQ(expected, GetNameServers(channel_)); // Change not allowed while request is pending + /* HostResult result; ares_gethostbyname(channel_, "www.google.com.", AF_INET, HostCallback, &result); EXPECT_EQ(ARES_ENOTIMP, ares_set_servers_ports(channel_, &server1)); ares_cancel(channel_); + */ } TEST_F(DefaultChannelTest, SetServersCSV) { @@ -109,11 +113,13 @@ TEST_F(DefaultChannelTest, SetServersCSV EXPECT_EQ(expected2, GetNameServers(channel_)); // Change not allowed while request is pending + /* HostResult result; ares_gethostbyname(channel_, "www.google.com.", AF_INET, HostCallback, &result); EXPECT_EQ(ARES_ENOTIMP, ares_set_servers_csv(channel_, "1.2.3.4,2.3.4.5")); EXPECT_EQ(ARES_ENOTIMP, ares_set_servers_ports_csv(channel_, "1.2.3.4:56,2.3.4.5:67")); ares_cancel(channel_); + */ // Should survive duplication ares_channel channel2; ++++++ onion-crash.patch ++++++ https://github.com/c-ares/c-ares/pull/241 >From 98297b969880855c4ed514935bf5bb4cf2ae1ec0 Mon Sep 17 00:00:00 2001 From: XadillaX <[email protected]> Date: Thu, 31 Jan 2019 13:14:06 +0800 Subject: [PATCH] fix: init bufp before reject .onion to make it can be free correctly --- ares_create_query.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ares_create_query.c b/ares_create_query.c index 1606b1a1..9efce17c 100644 --- a/ares_create_query.c +++ b/ares_create_query.c @@ -94,14 +94,14 @@ int ares_create_query(const char *name, int dnsclass, int type, size_t buflen; unsigned char *buf; - /* Per RFC 7686, reject queries for ".onion" domain names with NXDOMAIN. */ - if (ares__is_onion_domain(name)) - return ARES_ENOTFOUND; - /* Set our results early, in case we bail out early with an error. */ *buflenp = 0; *bufp = NULL; + /* Per RFC 7686, reject queries for ".onion" domain names with NXDOMAIN. */ + if (ares__is_onion_domain(name)) + return ARES_ENOTFOUND; + /* Allocate a memory area for the maximum size this packet might need. +2 * is for the length byte and zero termination if no dots or ecscaping is * used.
