Package: openssh-client
Version: 1:10.3p1-8

Upgrading from version 1:10.3p1-5 turns /usr/share/doc/openssh-client
into a symlink, but it is an absolute symlink rather than a relative one
as recommended by policy and shipped by the package:

,----
| # apt install openssh-client
| Upgrading:                      
|   openssh-client
| 
| Installing dependencies:
|   openssh-common
| 
| [...]
| Preparing to unpack .../openssh-client_1%3a10.3p1-8_amd64.deb ...
| Unpacking openssh-client (1:10.3p1-8) over (1:10.3p1-5) ...
| Selecting previously unselected package openssh-common.
| Preparing to unpack .../openssh-common_1%3a10.3p1-8_amd64.deb ...
| Unpacking openssh-common (1:10.3p1-8) ...
| Setting up openssh-common (1:10.3p1-8) ...
| Setting up openssh-client (1:10.3p1-8) ...
| # ls -ld /usr/share/doc/openssh-client
| lrwxrwxrwx 1 root root 29 Jul  4 09:25 /usr/share/doc/openssh-client -> 
/usr/share/doc/openssh-common
`----

I think in debian/*.maintscript a relative path for the symlink target
ought to be used, but I have not tested that.  Suggested patch:

sed -i 's#/usr/share/doc/openssh-common#openssh-common#' debian/*.maintscript


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Reply via email to