Package: zutils
Version: 1.11-5
Severity: normal
Usertags: warnings

Installing zutils results in some warnings from dpkg-divert, it sounds
like the dpkg-divert rename option should not be used for diverting
essential packages, since it means the binaries disappear temporarily.

I'm not sure what the right solution is, but at a guess, copy the gzip
version to its diverted name, let dpkg unpack the zutils version over
the gzip version and then add the diversion to the dpkg database.

$ sudo apt install zutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  zutils
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 508 kB of archives.
After this operation, 4,699 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian testing/main amd64 zutils amd64 1.11-5 [508 
kB]
Fetched 508 kB in 2s (293 kB/s) 
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package zutils.
(Reading database ... 685697 files and directories currently installed.)
Preparing to unpack .../zutils_1.11-5_amd64.deb ...
dpkg-divert: warning: diverting file '/bin/zcat' from an Essential package with 
rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/usr/share/man/man1/zcat.1.gz' from an 
Essential package with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/bin/zcmp' from an Essential package with 
rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/usr/share/man/man1/zcmp.1.gz' from an 
Essential package with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/bin/zdiff' from an Essential package 
with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/usr/share/man/man1/zdiff.1.gz' from an 
Essential package with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/bin/zegrep' from an Essential package 
with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/usr/share/man/man1/zegrep.1.gz' from an 
Essential package with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/bin/zfgrep' from an Essential package 
with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/usr/share/man/man1/zfgrep.1.gz' from an 
Essential package with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/bin/zgrep' from an Essential package 
with rename is dangerous, use --no-rename
dpkg-divert: warning: diverting file '/usr/share/man/man1/zgrep.1.gz' from an 
Essential package with rename is dangerous, use --no-rename
Unpacking zutils (1.11-5) ...
Setting up zutils (1.11-5) ...
Processing triggers for install-info (6.8-6) ...
Processing triggers for man-db (2.10.2-1) ...

$ dpkg-divert --help | grep rename
  --rename                 actually move the file aside (or back).
  --no-rename              do not move the file aside (or back) (default).

$ export COLUMNS=80 ; man dpkg-divert | grep -A7 -- -rename$
       --rename
           Actually move the file aside (or back). dpkg-divert will abort
           operation in case the destination file already exists.  This is the
           common behavior used for diversions of files from the non-Essential
           package set (see --no-rename for more details).

       --no-rename
           Specifies that the file should not be renamed while adding or
           removing the diversion into the database (since dpkg 1.19.1).  This
           is intended for diversions of files from the Essential package set,
           where the temporary disappearance of the original file is not
           acceptable, as it can render the system non-functional.  This is
           the default behavior, but that will change in the dpkg 1.20.x
           cycle.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-4-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zutils depends on:
ii  libc6       2.34-3
ii  libgcc-s1   12.1.0-8
ii  libstdc++6  12.1.0-8

Versions of packages zutils recommends:
ii  bzip2     1.0.8-5
ii  lzip      1.23-4
ii  xz-utils  5.2.5-2.1
ii  zstd      1.5.2+dfsg-1

zutils suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to