From 4125530c01eed3630f33076f8546415fbb6a1e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Thu, 26 Nov 2020 18:00:25 +0100 Subject: [PATCH] Add support for BIND 9.16.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It changed DB api and needs additional patch. No build yet, therefore no changelog entry. Signed-off-by: Petr Menšík --- bind-dyndb-ldap-11.6-bind-9.16.9.patch | 30 ++++++++++++++++++++++++++ bind-dyndb-ldap.spec | 4 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 bind-dyndb-ldap-11.6-bind-9.16.9.patch diff --git a/bind-dyndb-ldap-11.6-bind-9.16.9.patch b/bind-dyndb-ldap-11.6-bind-9.16.9.patch new file mode 100644 index 0000000..9b4433c --- /dev/null +++ b/bind-dyndb-ldap-11.6-bind-9.16.9.patch @@ -0,0 +1,30 @@ +From 2a732bb03812878a9cc00d27d6c80f3993520626 Mon Sep 17 00:00:00 2001 +From: Petr Mensik +Date: Thu, 26 Nov 2020 17:31:21 +0100 +Subject: [PATCH] Support BIND 9.16.9 + +Two new functions were added to database interface. They are more +related to caching server and not authoritative. Add just null pointers, +returning not supporter error if used. +--- + src/ldap_driver.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/ldap_driver.c b/src/ldap_driver.c +index 2f6574ea5..c524b7cc5 100644 +--- a/src/ldap_driver.c ++++ b/src/ldap_driver.c +@@ -959,6 +959,10 @@ static dns_dbmethods_t ldapdb_methods = { + setservestalettl, + getservestalettl, + #endif ++#if LIBDNS_VERSION_MAJOR >= 1609 ++ NULL, /* setservestalerefresh */ ++ NULL, /* getservestalerefresh */ ++#endif + #if LIBDNS_VERSION_MAJOR >= 1600 + NULL, /* setgluecachestats */ + #endif +-- +2.26.2 + diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec index 4669ada..b75de81 100644 --- a/bind-dyndb-ldap.spec +++ b/bind-dyndb-ldap.spec @@ -20,6 +20,8 @@ URL: https://releases.pagure.org/bind-dyndb-ldap Source0: https://releases.pagure.org/%{name}/%{name}-%{VERSION}.tar.bz2 Source1: https://releases.pagure.org/%{name}/%{name}-%{VERSION}.tar.bz2.asc +Patch1: bind-dyndb-ldap-11.6-bind-9.16.9.patch + BuildRequires: bind-devel >= %{bind_version}, bind-lite-devel >= %{bind_version} BuildRequires: krb5-devel BuildRequires: openldap-devel @@ -41,7 +43,7 @@ off of your LDAP server. %prep -%setup -q -n %{name}-%{VERSION} +%autosetup -n %{name}-%{VERSION} -p1 %build autoreconf -fiv