diff --git a/Fix_the_difference_at_the_macro_definition_using_clock_gettime_instead_of_gettimeofda.patch b/Fix_the_difference_at_the_macro_definition_using_clock_gettime_instead_of_gettimeofda.patch new file mode 100644 index 0000000000000000000000000000000000000000..de4837fb6a50a71364bc20ad295a08de33b61825 --- /dev/null +++ b/Fix_the_difference_at_the_macro_definition_using_clock_gettime_instead_of_gettimeofda.patch @@ -0,0 +1,30 @@ +From 33bf90331b48c7378316c141e5e9acb2862dd0ac Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= +Date: Sun, 9 Dec 2018 00:41:21 +0100 +Subject: [PATCH] use clock_gettime() instead of gettimeofday() for isc_itme + functions + +--- + lib/isc/unix/time.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/lib/isc/unix/time.c b/lib/isc/unix/time.c +index 9828250..c2ae60e 100644 +--- a/lib/isc/unix/time.c ++++ b/lib/isc/unix/time.c +@@ -38,7 +38,11 @@ + #define NS_PER_MS 1000000 /*%< Nanoseconds per millisecond. */ + #define US_PER_S 1000000 /*%< Microseconds per second. */ + +-#define CLOCKSOURCE CLOCK_MONOTONIC ++#ifdef CLOCK_REALTIME_COARSE ++#define CLOCKSOURCE CLOCK_REALTIME_COARSE ++#else ++#define CLOCKSOURCE CLOCK_REALTIME ++#endif + + /*% + *** Intervals +-- +2.23.0 + diff --git a/bind.spec b/bind.spec index b4b447b88064aa993d4a124cf2bbcfcb65afdcd4..ef493083682dea11647568d694f3ac5a98c07081 100644 --- a/bind.spec +++ b/bind.spec @@ -21,7 +21,7 @@ Name: bind Summary: Domain Name System (DNS) Server (named) License: MPLv2.0 Version: 9.11.21 -Release: 3 +Release: 4 Epoch: 32 Url: http://www.isc.org/products/BIND/ Source0: https://ftp.isc.org/isc/bind9/9.11.21/bind-%{version}.tar.gz @@ -169,7 +169,7 @@ Patch190: Use-clock_gettime-instead-of-gettimeofday.patch Patch191: CVE-2020-8622.patch Patch192: CVE-2020-8623.patch Patch193: CVE-2020-8624.patch - +Patch194: Fix_the_difference_at_the_macro_definition_using_clock_gettime_instead_of_gettimeofda.patch # SDB patches Patch11: bind-9.3.2b2-sdbsrc.patch Patch12: bind-9.10-sdb.patch @@ -372,6 +372,7 @@ are used for building ISC DHCP. %patch191 -p1 %patch192 -p1 %patch193 -p1 +%patch194 -p1 mkdir lib/dns/tests/testdata/dstrandom cp -a %{SOURCE29} lib/dns/tests/testdata/dstrandom/random.data @@ -1185,6 +1186,12 @@ rm -rf ${RPM_BUILD_ROOT} %changelog +* Tue Jan 5 2020 hanzhijun - 9.11.21-4 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Fix the difference at the macro definition using clock gettime instead of gettimeofda + * Fri Nov 06 2020 gaihuiying - 9.11.21-3 - Type:bugfix - ID:NA