Debian: ensure smooth upgrade paths when files are moved between packages

Upgrade path from bcachefs-tools 1.31.2 -> 1.31.5 is broken,
stuff was moved from -dkms package into main tools package,
and that famously does not work out of the box.

Ensure that any incompatible bcachefs-kernel-dkms package version
is truly marked as being replaced.

See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces
See https://wiki.debian.org/PackageTransition, case #10
This commit is contained in:
Roman Lebedev 2025-09-27 22:25:32 +03:00
parent 6e78e3c90f
commit 92515aced5
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0

2
debian/control vendored
View File

@ -39,6 +39,8 @@ Recommends: bcachefs-kernel-dkms (= ${binary:Version}),
initramfs-tools | linux-initramfs-tool,
Breaks: bcachefs-kernel-dkms (<< ${binary:Version}),
bcachefs-kernel-dkms (>> ${binary:Version}),
Replaces: bcachefs-kernel-dkms (<< ${binary:Version}),
bcachefs-kernel-dkms (>> ${binary:Version}),
Description: bcachefs userspace tools
Userspace tools for bcachefs, a modern copy on write, checksumming, multi
device filesystem.