From 713204e81c632b9b43f378c61c554d20564eb216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Fri, 22 Jan 2021 18:53:10 +0100 Subject: [PATCH] Rebuilt for BIND 9.16.11 --- bind-dyndb-ldap-11.6-bind-9.16.11.patch | 38 +++++++++++++++++++++++++ bind-dyndb-ldap.spec | 6 +++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 bind-dyndb-ldap-11.6-bind-9.16.11.patch diff --git a/bind-dyndb-ldap-11.6-bind-9.16.11.patch b/bind-dyndb-ldap-11.6-bind-9.16.11.patch new file mode 100644 index 0000000..b190ba0 --- /dev/null +++ b/bind-dyndb-ldap-11.6-bind-9.16.11.patch @@ -0,0 +1,38 @@ +From f4aec4d37447cc274b90c129ea15a008473ed02d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= +Date: Thu, 21 Jan 2021 17:30:54 +0100 +Subject: [PATCH] Yet another change to support BIND 9.16.11 API change + +Another change with another release, new parameter is added again. +Add another ifdef to keep compatibility with both versions. +--- + src/zone.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/zone.c b/src/zone.c +index d0b71b194..7ce1769b3 100644 +--- a/src/zone.c ++++ b/src/zone.c +@@ -17,6 +17,7 @@ + #include + + #include "util.h" ++#include "config.h" + + /** + * Write given diff to zone journal. Journal will be created +@@ -61,7 +62,11 @@ zone_soaserial_updatetuple(dns_updatemethod_t method, dns_difftuple_t *soa_tuple + REQUIRE(soa_tuple->rdata.type == dns_rdatatype_soa); + + serial = dns_soa_getserial(&soa_tuple->rdata); ++#if LIBDNS_VERSION_MAJOR >= 1611 ++ serial = dns_update_soaserial(serial, method, NULL); ++#else + serial = dns_update_soaserial(serial, method); ++#endif + dns_soa_setserial(serial, &soa_tuple->rdata); + if (new_serial != NULL) + *new_serial = serial; +-- +2.26.2 + diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec index 06042c7..13e6197 100644 --- a/bind-dyndb-ldap.spec +++ b/bind-dyndb-ldap.spec @@ -12,7 +12,7 @@ Name: bind-dyndb-ldap Version: 11.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: LDAP back-end plug-in for BIND License: GPLv2+ @@ -22,6 +22,7 @@ Source1: https://releases.pagure.org/%{name}/%{name}-%{VERSION}.tar.bz2.a Patch1: bind-dyndb-ldap-11.6-bind-9.16.9.patch Patch2: bind-dyndb-ldap-11.6-bind-9.16.10.patch +Patch3: bind-dyndb-ldap-11.6-bind-9.16.11.patch BuildRequires: bind-devel >= %{bind_version}, bind-lite-devel >= %{bind_version} BuildRequires: krb5-devel @@ -117,6 +118,9 @@ sed -i.bak -e "$SEDSCRIPT" /etc/named.conf %changelog +* Fri Jan 22 2021 Petr Menšík - 11.6-6 +- Rebuilt for BIND 9.16.11 + * Fri Jan 15 2021 Petr Menšík - 11.6-5 - Rebuilt for BIND 9.16.10