]> git.pld-linux.org Git - packages/bind.git/commitdiff
Rel 2; jemalloc is preffered memory management in bind, so enable it explicitly. auto/th/bind-9.18.0-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 27 Jan 2022 14:05:45 +0000 (15:05 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 27 Jan 2022 14:06:03 +0000 (15:06 +0100)
bind.spec
jemalloc.patch [new file with mode: 0644]

index d52ddca7411fbd8c87991aa816846c93feebd5d0..f7753e26757796ec660cfbb0f058da29e16dedb3 100644 (file)
--- 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 (file)
index 0000000..34ba3f6
--- /dev/null
@@ -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
This page took 0.114939 seconds and 4 git commands to generate.