1
0
Fork 0

Applying patch from Helmut Grohne <helmut@subdivi.de> to fix installation on bookworm causing file loss (Closes: #1092737).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 06:05:21 +01:00
parent 3cc5ddcd76
commit e31cfd5aef
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 7 additions and 0 deletions

5
debian/control vendored
View file

@ -18,6 +18,11 @@ Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
Breaks:
# We must ensure that gzip is upgraded before zutils.postinst runs. As it is
# essential, Breaks is sufficient here and the janitor may propose dropping
# this relation eventually.
gzip (<< 1.12-1.1~),
Suggests:
bzip2,
lzip,

View file

@ -8,6 +8,8 @@ case "${1}" in
install)
for FILE in zcat zcmp zdiff zegrep zfgrep zgrep
do
# We may move $FILE to $FILE.gzip when we expected $FILE.gzip.usr-is-merged here.
# This is ok, because gzip will be upgraded and overwrite $FILE.gzip.
dpkg-divert --package zutils --quiet --add --rename --divert "/usr/bin/${FILE}.gzip" "/usr/bin/${FILE}"
dpkg-divert --package zutils --quiet --add --rename --divert "/bin/${FILE}.gzip.usr-is-merged" "/bin/${FILE}"
dpkg-divert --package zutils --quiet --add --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz