public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind] rawhide: Use only 9 suffix for the default bind package
@ 2026-10-16 14:51 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-16 14:51 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/bind
            Branch : rawhide
            Commit : 8dc8d6f1172ed9f85b90c4ae1c0afe41c204c5bb
            Author : Petr Menšík <pemensik@redhat.com>
            Date   : 2026-10-15T17:03:14+02:00
            Stats  : +5/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/bind/c/8dc8d6f1172ed9f85b90c4ae1c0afe41c204c5bb?branch=rawhide

            Log:
            Use only 9 suffix for the default bind package

Alternatives won't handle well upgrade from bind 9.18 to 9.20, if the
provided binary name will be changing between upgrades. Work it around
by using just -9 suffix for normal bind package. Alternative versions
like bind9.20 should use -9.20, but they will keep the name of binaries
stable, because they should not upgrade to new major version.

---
diff --git a/bind.spec b/bind.spec
index 35d2d82..cc89405 100644
--- a/bind.spec
+++ b/bind.spec
@@ -411,7 +411,7 @@ in HTML and PDF format.
 %global bind_include %{_includedir}/bind%{mver}
 
 # use this suffix for binaries
-%global program_suffix -%{mver}
+%global program_suffix -9
 # preparation scripts directory
 %global bind_libexecdir %{_libexecdir}/%{name}
 
@@ -904,8 +904,8 @@ fi
   for UNIT in %{main_unit}; do
     %{altrmunit $UNIT}
   done
-  if [ $1 -gt 1 ] ; then
-    alternatives --remove %{oldname}-named  %{_sbindir}/named%{program_suffix} 2>/dev/null || :
+  if [ $1 -gt 1 ]; then
+    alternatives --remove %{oldname}-named  %{_sbindir}/named-%{mver} 2>/dev/null || :
   fi
   alternatives --install %{_sbindir}/named %{upname}-named %{_sbindir}/named%{program_suffix} %{alternatives_prio} \
                       %{altfman named 8}                 \
@@ -944,7 +944,7 @@ fi
     ALTS+="%{altfbinman $BIN 8}"
   done
   if [ $1 -gt 1 ] ; then
-    alternatives --remove %{oldname}-utils-dig %{_bindir}/dig%{program_suffix} 2>/dev/null || :
+    alternatives --remove %{oldname}-utils-dig %{_bindir}/dig-%{mver} 2>/dev/null || :
   fi
   alternatives --install %{_bindir}/dig %{upname}-utils-dig %{_bindir}/dig%{program_suffix} %{alternatives_prio} \
   %{altfman dig 1}          \
@@ -975,7 +975,7 @@ fi
     [ "$BIN" != dnssec-verify ] && ALTS+="%{altfbinman $BIN 1}"
   done
   if [ $1 -gt 1 ] ; then
-    alternatives --remove %{oldname}-dnssec-utils %{_bindir}/dnssec-verify%{program_suffix} 2>/dev/null || :
+    alternatives --remove %{oldname}-dnssec-utils %{_bindir}/dnssec-verify-%{mver} 2>/dev/null || :
   fi
   alternatives --install %{_bindir}/dnssec-verify %{upname}-dnssec-utils %{_bindir}/dnssec-verify%{program_suffix} %{alternatives_prio} \
   %{altfman dnssec-verify 1}          \

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-16 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 14:51 [rpms/bind] rawhide: Use only 9 suffix for the default bind package 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox