[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#986129: unblock: sendmail/8.15.2-22



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package sendmail

sendmail does not cleanly restart after upgrading from buster because
the binaries were moved from /usr/lib/sm.bin to /usr/libexec/sendmail.
So let's stop sendmail in preinst if upgrading from a version with the
old layout. (To minimize downtime sendmail is usually not stopped before
the new version gets unpacked, but only restarted in postinst.)

unblock sendmail/8.15.2-22

Andreas
>From b91969214360c466be10f2326ba8ac73dd3ed95d Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <anbe@debian.org>
Date: Tue, 16 Mar 2021 16:04:33 +0100
Subject: [PATCH] stop sendmail before binaries get moved from /usr/lib/sm.bin/
 to /usr/libexec/sendmail/

---
 debian/changelog               | 8 ++++++++
 debian/sendmail-bin.preinst.in | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4438fa8..fb8ca3b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sendmail (8.15.2-22) unstable; urgency=medium
+
+  * QA upload.
+  * Stop sendmail before binaries get moved from /usr/lib/sm.bin/ to
+    /usr/libexec/sendmail/.
+
+ -- Andreas Beckmann <anbe@debian.org>  Tue, 16 Mar 2021 16:04:16 +0100
+
 sendmail (8.15.2-21) unstable; urgency=medium
 
   * QA upload.
diff --git a/debian/sendmail-bin.preinst.in b/debian/sendmail-bin.preinst.in
index f4dda47..409b650 100644
--- a/debian/sendmail-bin.preinst.in
+++ b/debian/sendmail-bin.preinst.in
@@ -14,6 +14,11 @@ if [ "$1" = "upgrade" ]; then
 		if [ -f /etc/cron.d/sendmail ]; then
 			echo "#preinst" > @sysconfdir@/cron.d/sendmail;
 			fi;
+
+	if dpkg --compare-versions "$2" lt-nl "8.15.2-19" ; then
+		# stop sendmail before binaries get moved from /usr/lib/sm.bin/ to /usr/libexec/sendmail/
+		invoke-rc.d sendmail stop
+	fi
 fi
 
 #DEBHELPER#
-- 
2.20.1


Reply to: