public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind-dyndb-ldap] rawhide: Fix build on multibind in rawhide
@ 2026-10-09 16:14
0 siblings, 0 replies; only message in thread
From: @ 2026-10-09 16:14 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/bind-dyndb-ldap
Branch : rawhide
Commit : 96233ab6d585b21e04efd7de36f40006f1421539
Author : Petr Menšík <pemensik@redhat.com>
Date : 2026-07-28T21:31:31+02:00
Stats : +36/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/bind-dyndb-ldap/c/96233ab6d585b21e04efd7de36f40006f1421539?branch=rawhide
Log:
Fix build on multibind in rawhide
---
diff --git a/bind-dyndb-ldap-12-multibind-libs.patch b/bind-dyndb-ldap-12-multibind-libs.patch
new file mode 100644
index 0000000..b44f23e
--- /dev/null
+++ b/bind-dyndb-ldap-12-multibind-libs.patch
@@ -0,0 +1,34 @@
+From f551da5dfbca28bdc6fc793374bad9b66d78b2df Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
+Date: Tue, 28 Jul 2026 20:42:17 +0200
+Subject: [PATCH] Fix plugin compilation after changes done to bind9
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+In attempt to support multiple binds installed at the same time, it had
+to start using alternatives. But they use multiple levels of symlinks,
+where simple ls -l output won't help anymore. Rely on realpath providing
+final destination.
+
+Signed-off-by: Petr Menšík <pemensik@redhat.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 42c654dc6..027b5c0aa 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -124,7 +124,7 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([
+ [
+ LIBDNS_PATH="${libdir}/libdns.so"
+ if test -L "$LIBDNS_PATH" ; then
+- LIBDNS_VERSION_MAJOR=$(ls -l "$LIBDNS_PATH" | sed -e 's/^.*->\s*libdns-9\.\([[0-9]]\+\)\.\([[0-9]]\+\).*\.so/\1 \2/' -e t -e d | xargs printf "%02d%02d")
++ LIBDNS_VERSION_MAJOR=$(realpath "$LIBDNS_PATH" | sed -e 's/^.*\/libdns-9\.\([[0-9]]\+\)\.\([[0-9]]\+\).*\.so/\1 \2/' -e t -e d | xargs printf "%02d%02d")
+ else
+ AC_MSG_ERROR([Can't obtain libdns version1.])
+ fi
+--
+2.55.0
+
diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec
index ebe5dda..3277b5f 100644
--- a/bind-dyndb-ldap.spec
+++ b/bind-dyndb-ldap.spec
@@ -29,6 +29,8 @@ Source1: https://codeberg.org/freeipa/%{name}/releases/download/v%{VERSIO
# https://codeberg.org/freeipa/bind-dyndb-ldap/issues/243
Patch1: bind-dyndb-ldap-11.10-check-pr244.patch
+# https://codeberg.org/freeipa/bind-dyndb-ldap/pulls/247
+Patch2: bind-dyndb-ldap-12-multibind-libs.patch
BuildRequires: bind-devel >= %{bind_version}, bind-lite-devel >= %{bind_version}
BuildRequires: krb5-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 16:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 16:14 [rpms/bind-dyndb-ldap] rawhide: Fix build on multibind in rawhide
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox