!22 sync SP1 to master to solve the dig question
From: @hanzj0122_admin Reviewed-by: @wangxp006 Signed-off-by: @wangxp006
This commit is contained in:
commit
d16eefdb91
@ -0,0 +1,30 @@
|
|||||||
|
From 33bf90331b48c7378316c141e5e9acb2862dd0ac Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= <wpk@isc.org>
|
||||||
|
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
|
||||||
|
|
||||||
11
bind.spec
11
bind.spec
@ -19,7 +19,7 @@ Name: bind
|
|||||||
Summary: Domain Name System (DNS) Server (named)
|
Summary: Domain Name System (DNS) Server (named)
|
||||||
License: MPLv2.0
|
License: MPLv2.0
|
||||||
Version: 9.11.21
|
Version: 9.11.21
|
||||||
Release: 5
|
Release: 6
|
||||||
Epoch: 32
|
Epoch: 32
|
||||||
Url: https://www.isc.org/downloads/bind/
|
Url: https://www.isc.org/downloads/bind/
|
||||||
Source0: https://ftp.isc.org/isc/bind9/9.11.21/bind-%{version}.tar.gz
|
Source0: https://ftp.isc.org/isc/bind9/9.11.21/bind-%{version}.tar.gz
|
||||||
@ -160,7 +160,7 @@ Patch190: Use-clock_gettime-instead-of-gettimeofday.patch
|
|||||||
Patch191: CVE-2020-8622.patch
|
Patch191: CVE-2020-8622.patch
|
||||||
Patch192: CVE-2020-8623.patch
|
Patch192: CVE-2020-8623.patch
|
||||||
Patch193: CVE-2020-8624.patch
|
Patch193: CVE-2020-8624.patch
|
||||||
|
Patch194: Fix_the_difference_at_the_macro_definition_using_clock_gettime_instead_of_gettimeofda.patch
|
||||||
# SDB patches
|
# SDB patches
|
||||||
Patch11: bind-9.3.2b2-sdbsrc.patch
|
Patch11: bind-9.3.2b2-sdbsrc.patch
|
||||||
Patch12: bind-9.10-sdb.patch
|
Patch12: bind-9.10-sdb.patch
|
||||||
@ -363,6 +363,7 @@ are used for building ISC DHCP.
|
|||||||
%patch191 -p1
|
%patch191 -p1
|
||||||
%patch192 -p1
|
%patch192 -p1
|
||||||
%patch193 -p1
|
%patch193 -p1
|
||||||
|
%patch194 -p1
|
||||||
|
|
||||||
mkdir lib/dns/tests/testdata/dstrandom
|
mkdir lib/dns/tests/testdata/dstrandom
|
||||||
cp -a %{SOURCE29} lib/dns/tests/testdata/dstrandom/random.data
|
cp -a %{SOURCE29} lib/dns/tests/testdata/dstrandom/random.data
|
||||||
@ -1170,6 +1171,12 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 9 2020 hanzhijun <hanzhijun1@huawei.com> - 9.11.21-6
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Fix the difference at the macro definition using clock gettime instead of gettimeofda
|
||||||
|
|
||||||
* Tue Dec 15 2020 xihaochen <xihaochen@huawei.com> - 9.11.21-5
|
* Tue Dec 15 2020 xihaochen <xihaochen@huawei.com> - 9.11.21-5
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user