Package: finit-sysv
Version: 4.7-1
Severity: serious
Justification: file loss in upgrade
Tags: patch
User: helm...@debian.org
Usertags: dep17p3
Control: affects -1 + bfh-container molly-guard progress-linux-container

Hi,

thanks for moving files to /usr for DEP17. Unfortunately, finit-sysv is
one of the rare packages where we have fallout and I failed to spot it
earlier. Installing finit-sysv from unstable on a bookworm system that
happens to have e.g. molly-guard installed causes file loss (DEP17 P3),
because the diversions of molly-guard do not cover the moved files. This
is technically also the case for bfh-container and
progress-linux-container, but both of them depend on systemd-sysv, so
getting the file loss there is a little more tricky as one also has to
change the init system during the dist-upgrade to experience the file
loss.

The trixie versions of these packages have duplicated their diversions
such that they are compatible with both bookworm versions and unstable
versions of init systems. As long as the diverters are upgraded first,
no loss occurs. The missing piece here is finit-sysv declaring that it
is incompatible with the bookworm (or earlier) versions of the
diverters. I'm attaching a patch for your convenience. Please let me
know if you need a sponsor for this upload or prefer me NMUing it.

Helmut
diff --minimal -Nru finit-4.7/debian/changelog finit-4.7/debian/changelog
--- finit-4.7/debian/changelog  2024-02-06 14:02:40.000000000 +0100
+++ finit-4.7/debian/changelog  2024-07-29 14:05:00.000000000 +0200
@@ -1,3 +1,11 @@
+finit (4.7-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Declare Conflicts with diverting packages that didn't duplicate their
+    diversions (DEP17 P3) for finit-sysv. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 29 Jul 2024 14:05:00 +0200
+
 finit (4.7-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru finit-4.7/debian/control finit-4.7/debian/control
--- finit-4.7/debian/control    2024-02-06 14:02:40.000000000 +0100
+++ finit-4.7/debian/control    2024-07-29 14:04:56.000000000 +0200
@@ -61,7 +61,7 @@
 Package: finit-sysv
 Architecture: all
 Depends: ${misc:Depends}, finit
-Conflicts: systemd-sysv, sysvinit-core, upstart, runit-init,
+Conflicts: systemd-sysv, sysvinit-core, upstart, runit-init, bfh-container (<< 
20211009-24~), molly-guard (<< 0.8.2~), progress-linux-container (<< 
20221002-15~)
 Replaces: systemd-sysv, sysvinit-core, upstart, runit-init, finit (<< 
3.2~rc3-2)
 Breaks: finit (<< 3.2~rc3-2)
 Description: Fast init for Linux systems - SysV compatibility symlinks

Reply via email to