public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bind] rawhide: Create compat symlink also for bind-devel includes
Date: Thu, 02 Jul 2026 14:45:55 GMT [thread overview]
Message-ID: <178300355570.1.3461052911855785781.rpms-bind-f4645b66ad1a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bind
Branch : rawhide
Commit : f4645b66ad1a8d04c6430ea2ce1e4fdec7bf3792
Author : Petr Menšík <pemensik@redhat.com>
Date : 2026-07-02T12:54:49+02:00
Stats : +17/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/bind/c/f4645b66ad1a8d04c6430ea2ce1e4fdec7bf3792?branch=rawhide
Log:
Create compat symlink also for bind-devel includes
Try to preserve original _includedir/bind9 directory. Replace it with
alternatives symlink leading to version explicit includes.
---
diff --git a/bind.spec b/bind.spec
index d82e505..d2af2fb 100644
--- a/bind.spec
+++ b/bind.spec
@@ -300,6 +300,8 @@ Obsoletes: %{name}-lite-devel < 32:9.16.6-3
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openssl-devel%{?_isa} libxml2-devel%{?_isa}
Requires: libcap-devel%{?_isa}
+Requires(post): %{_bindir}/alternatives
+Requires(postun): %{_bindir}/alternatives
%upname_compat %{upname}-devel
%if %{with GSSTSIG}
Requires: krb5-devel%{?_isa}
@@ -705,6 +707,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_tmpfilesdir}
install -p -m 644 %{SOURCE35} ${RPM_BUILD_ROOT}%{_tmpfilesdir}/%{name}.conf
install -p -m 644 %{SOURCE51} ${RPM_BUILD_ROOT}%{_tmpfilesdir}/%{name}-chroot.conf
+mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/bind9
%if %{with DNSTAP}
%global utils_bin1_dnstap dnstap-read
@@ -975,6 +978,19 @@ if [ -x %{_sbindir}/selinuxenabled ] && [ -x %{_sbindir}/getsebool ] && [ -x %{_
fi
fi
+%post devel
+%if "%{program_suffix}" != ""
+ alternatives --install %{_includedir}/bind9 %{upname}-includedir %{_includedir}/bind-%{mver} %{alternatives_prio}
+%endif
+
+%postun devel
+%if "%{program_suffix}" != ""
+if [ $1 -eq 0 ] ; then
+ alternatives --remove %{upname}-includedir %{_includedir}/bind9
+fi
+%endif
+%end
+
%ldconfig_scriptlets libs
%post chroot
@@ -1175,6 +1191,7 @@ fi;
%{_libdir}/libisc-%{mver}.so
%{_libdir}/libisccfg-%{mver}.so
%{_libdir}/libirs-%{mver}.so
+%ghost %{_includedir}/bind9
%dir %{bind_include}
%{bind_include}/isccc
%{bind_include}/ns
reply other threads:[~2026-07-02 14:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178300355570.1.3461052911855785781.rpms-bind-f4645b66ad1a@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox