Summary(zh_CN.UTF-8): Internet 域名服务器
Name: bind
Version: %{ver}%{pverdot}
-Release: 1
+Release: 2
Epoch: 7
License: MPL 2.0
Group: Networking/Daemons
Source11: %{name}.tmpfiles
Source12: named.service
+Patch3: jemalloc.patch
Patch4: %{name}-ac-libs.patch
Patch5: %{name}-edns-client-subnet.patch
URL: https://www.isc.org/software/bind
%{?with_tests:BuildRequires: cmocka-devel >= 1.0.0}
BuildRequires: flex
%{?with_kerberos5:BuildRequires: heimdal-devel}
+BuildRequires: jemalloc-devel
BuildRequires: json-c-devel >= 0.11
BuildRequires: libatomic-devel
BuildRequires: libcap-devel
%prep
%setup -q %{?with_hip:-a6} -n %{name}-%{ver}%{pverdir}
+%patch3 -p1
%patch4 -p1
%{?with_hip:%{__mv} bind-hip/hip_55.[ch] lib/dns/rdata/generic}
%{?with_edns_cli:%patch5 -p0}
--enable-largefile \
%{?with_static_libs:--enable-static} \
%{?with_kerberos5:--with-gssapi} \
+ --with-jemalloc=yes \
--with-libidn2 \
--with-libxml2 \
%{?with_ssl:--with-openssl} \
--- /dev/null
+--- bind-9.18.0/lib/isc/mem.c~ 2022-01-24 09:28:57.000000000 +0100
++++ bind-9.18.0/lib/isc/mem.c 2022-01-27 15:01:27.389870903 +0100
+@@ -48,6 +48,7 @@
+ #if defined(HAVE_MALLOC_NP_H)
+ #include <malloc_np.h>
+ #elif defined(HAVE_JEMALLOC)
++#define JEMALLOC_MANGLE 1
+ #include <jemalloc/jemalloc.h>
+
+ #if JEMALLOC_VERSION_MAJOR < 4