[packages/bind] Rel 2; jemalloc is preffered memory management in bind, so enable it explicitly.

arekm arekm at pld-linux.org
Thu Jan 27 15:09:11 CET 2022


commit 864d61173f6c09a137eab2cdd2138eaf299b566d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Jan 27 15:05:45 2022 +0100

    Rel 2; jemalloc is preffered memory management in bind, so enable it explicitly.

 bind.spec      |  6 +++++-
 jemalloc.patch | 10 ++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/bind.spec b/bind.spec
index d52ddca..f7753e2 100644
--- a/bind.spec
+++ b/bind.spec
@@ -43,7 +43,7 @@ Summary(uk.UTF-8):	BIND - cервер системи доменних імен (
 Summary(zh_CN.UTF-8):	Internet 域名服务器
 Name:		bind
 Version:	%{ver}%{pverdot}
-Release:	1
+Release:	2
 Epoch:		7
 License:	MPL 2.0
 Group:		Networking/Daemons
@@ -67,6 +67,7 @@ Source10:	%{name}-named.conf
 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
@@ -76,6 +77,7 @@ BuildRequires:	bison
 %{?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
@@ -363,6 +365,7 @@ BIND.
 %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}
@@ -381,6 +384,7 @@ BIND.
 	--enable-largefile \
 	%{?with_static_libs:--enable-static} \
 	%{?with_kerberos5:--with-gssapi} \
+	--with-jemalloc=yes \
 	--with-libidn2 \
 	--with-libxml2 \
 	%{?with_ssl:--with-openssl} \
diff --git a/jemalloc.patch b/jemalloc.patch
new file mode 100644
index 0000000..34ba3f6
--- /dev/null
+++ b/jemalloc.patch
@@ -0,0 +1,10 @@
+--- 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bind.git/commitdiff/864d61173f6c09a137eab2cdd2138eaf299b566d



More information about the pld-cvs-commit mailing list