From f478d438440199fb775c83ab6cdc5fed21767bab Mon Sep 17 00:00:00 2001 From: xinghe Date: Wed, 8 Mar 2023 06:33:08 +0000 Subject: [PATCH] enable test --- backport-disable-live-tests.patch | 25 +++++++++++++++++++++++++ c-ares.spec | 14 +++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 backport-disable-live-tests.patch diff --git a/backport-disable-live-tests.patch b/backport-disable-live-tests.patch new file mode 100644 index 0000000..785e039 --- /dev/null +++ b/backport-disable-live-tests.patch @@ -0,0 +1,25 @@ +From 4cfbdaee9697d084045bc83a7b1555e406494aa0 Mon Sep 17 00:00:00 2001 +From: chengyechun +Date: Fri, 11 Feb 2022 17:23:54 +0800 +Subject: [PATCH] disable live tests + +Conflict:NA +Reference:https://build.opensuse.org/package/view_file/openSUSE:Factory/c-ares/disable-live-tests.patch?expand=1 +--- + test/Makefile.inc | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/test/Makefile.inc b/test/Makefile.inc +index 91860e2..ecd22a4 100644 +--- a/test/Makefile.inc ++++ b/test/Makefile.inc +@@ -14,7 +14,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-mock-ai.cc \ + ares-test-internal.cc \ +-- +1.8.3.1 \ No newline at end of file diff --git a/c-ares.spec b/c-ares.spec index f46eb09..ea0f9cd 100644 --- a/c-ares.spec +++ b/c-ares.spec @@ -1,6 +1,6 @@ Name: c-ares Version: 1.16.1 -Release: 4 +Release: 5 Summary: A C library for asynchronous DNS requests License: MIT @@ -17,6 +17,8 @@ Patch4: CVE-2020-8277.patch Patch5: backport-001-CVE-2021-3672.patch Patch6: backport-002-CVE-2021-3672.patch Patch7: backport-add-str-len-check-in-config_sortlist-to-avoid-stack-overflow.patch +Patch8: backport-disable-live-tests.patch + %description This is c-ares, an asynchronous resolver library. It is intended for applications which need to perform DNS queries without blocking, or need to perform multiple @@ -44,6 +46,10 @@ make %{?_smp_mflags} %delete_la %ldconfig_scriptlets +%check +%make_build -C test +./test/arestest + %files %doc CHANGES LICENSE.md %{_libdir}/*.so.* @@ -59,6 +65,12 @@ make %{?_smp_mflags} %{_mandir}/man3/* %changelog +* Wed Mar 08 2023 xinghe - 1.16.1-5 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:enable test + * Fri Feb 10 2023 xingwei - 1.16.1-4 - Type:cves - CVE:CVE-2022-4904 -- Gitee