From 0f36ba2830b3e67d2cdd32a7fd0a1304b4bc2e04 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 17 Dec 2020 10:40:48 +0200 Subject: [PATCH] Pre-require bind when installing bind-dyndb-ldap bind-dyndb-ldap depends on 'named' group that is created at bind package pre-install time. Thus, we need to ensure bind is installed before bind-dyndb-ldap. Resolves: rhbz#1902811 --- bind-dyndb-ldap.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec index 313b1c7..2fda30c 100644 --- a/bind-dyndb-ldap.spec +++ b/bind-dyndb-ldap.spec @@ -12,7 +12,7 @@ Name: bind-dyndb-ldap Version: 11.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: LDAP back-end plug-in for BIND License: GPLv2+ @@ -31,10 +31,12 @@ BuildRequires: automake, autoconf, libtool %if %{with bind_pkcs11} BuildRequires: bind-pkcs11-devel >= %{bind_version} BuildRequires: make -Requires: bind-pkcs11 >= %{bind_version}, bind-pkcs11-utils >= %{bind_version} +Requires(pre): bind-pkcs11 >= %{bind_version} +Requires: bind-pkcs11-utils >= %{bind_version} %else Requires: softhsm >= %{softhsm_version} Requires: openssl-pkcs11 >= %{openssl_pkcs11_version} +Requires(pre): bind >= %{bind_version} %endif %description @@ -64,6 +66,8 @@ rm -r %{buildroot}%{_datadir}/doc/%{name} %post +[ -f /etc/named.conf ] || exit 0 + # Transform named.conf if it still has old-style API. PLATFORM=$(uname -m) @@ -111,6 +115,10 @@ sed -i.bak -e "$SEDSCRIPT" /etc/named.conf %changelog +* Thu Dec 17 2020 Alexander Bokovoy - 11.6-2 +- Fix requires to bind: require bind installed before bind-dyndb-ldap + as we depend on named group + * Mon Nov 23 2020 Alexander Bokovoy - 11.6-1 - Upstream release 11.6 - Use reference counting semantics in destructors according to BIND version