Your message dated Tue, 30 Mar 2021 09:33:24 +0000
with message-id <e1lrakw-000fox...@fasolo.debian.org>
and subject line Bug#985282: fixed in dnsmasq 2.84-1.1
has caused the Debian Bug report #985282,
regarding dnsmasq: unhandled symlink to directory conversion: 
/usr/share/doc/PACKAGE
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
985282: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985282
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dnsmasq
Version: 2.84-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

an upgrade test with piuparts revealed that your package installs files
over existing symlinks and possibly overwrites files owned by other
packages. This usually means an old version of the package shipped a
symlink but that was later replaced by a real (and non-empty)
directory. This kind of overwriting another package's files cannot be
detected by dpkg.

This was observed on the following upgrade paths:

  buster -> bullseye

For /usr/share/doc/PACKAGE this may not be problematic as long as both
packages are installed, ship byte-for-byte identical files and are
upgraded in lockstep. But once one of the involved packages gets
removed, the other one will lose its documentation files, too,
including the copyright file, which is a violation of Policy 12.5:
https://www.debian.org/doc/debian-policy/ch-docs.html#copyright-information

For other overwritten locations anything interesting may happen.

Note that dpkg intentionally does not replace directories with symlinks
and vice versa, you need the maintainer scripts to do this.
See in particular the end of point 4 in
https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#details-of-unpack-phase-of-installation-or-upgrade

It is recommended to use the dpkg-maintscript-helper commands
'dir_to_symlink' and 'symlink_to_dir' (available since dpkg 1.17.14)
to perform the conversion, ideally using d/$PACKAGE.maintscript.
See dpkg-maintscript-helper(1) and dh_installdeb(1) for details.


>From the attached log (scroll to the bottom...):

0m36.5s ERROR: FAIL: silently overwrites files via directory symlinks:
  /usr/share/doc/dnsmasq/changelog.Debian.gz (dnsmasq) != 
/usr/share/doc/dnsmasq-base/changelog.Debian.gz (dnsmasq-base)
    /usr/share/doc/dnsmasq -> dnsmasq-base
  /usr/share/doc/dnsmasq/copyright (dnsmasq) != 
/usr/share/doc/dnsmasq-base/copyright (dnsmasq-base)
    /usr/share/doc/dnsmasq -> dnsmasq-base


cheers,

Andreas

Attachment: dnsmasq_2.84-1.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Source: dnsmasq
Source-Version: 2.84-1.1
Done: Sébastien Villemot <sebast...@debian.org>

We believe that the bug you reported is fixed in the latest version of
dnsmasq, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 985...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sébastien Villemot <sebast...@debian.org> (supplier of updated dnsmasq package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 28 Mar 2021 10:55:07 +0200
Source: dnsmasq
Architecture: source
Version: 2.84-1.1
Distribution: unstable
Urgency: medium
Maintainer: Simon Kelley <si...@thekelleys.org.uk>
Changed-By: Sébastien Villemot <sebast...@debian.org>
Closes: 985282
Changes:
 dnsmasq (2.84-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Fix symlink to directory conversion for /usr/share/doc/dnsmasq.
     This is achieved by directly calling dpkg-maintscript-helper in the 
preinst,
     postinst, and postrm scripts, since the package does not use debhelper.
     (Closes: #985282)
Checksums-Sha1:
 11f3bcce88f372cd14e854ef7d2f971bf0877cef 2175 dnsmasq_2.84-1.1.dsc
 657e630d7545d87a82a4354ced699fc2ebce42d7 26265 dnsmasq_2.84-1.1.diff.gz
 cae552d34e8d70b661149dbeb01766b2a157506f 7414 dnsmasq_2.84-1.1_amd64.buildinfo
Checksums-Sha256:
 7cdbe52bb7f756203e5de9c28823652fbc17f91a505520a23b44b9e9f9469fec 2175 
dnsmasq_2.84-1.1.dsc
 028dfe0029798d92d3eeb9f0aba0da0793170163650175fff92423be9bc72315 26265 
dnsmasq_2.84-1.1.diff.gz
 173a489b88157df60099379c404dd6df41486c4516286994a3d5d22905a62d6e 7414 
dnsmasq_2.84-1.1_amd64.buildinfo
Files:
 8f0e0a3231f3fb4eb57e06f8f4652979 2175 net optional dnsmasq_2.84-1.1.dsc
 ef0891e42f30b68b3443e364a62265c1 26265 net optional dnsmasq_2.84-1.1.diff.gz
 01bf332ceb5bd053f32cdbc00788cb00 7414 net optional 
dnsmasq_2.84-1.1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEU5UdlScuDFuCvoxKLOzpNQ7OvkoFAmBgRkoACgkQLOzpNQ7O
vkq6LA/9EAUhAxXfy0qinB5B10SWamxAD/Hwq58NUYVowvwSw75PtYn7RrkYxMAv
Zl74Xo7UqEO0UFB+IQVRCn4f1o+6NjGcDd93724V2/IV/KeBWTEGVr8MI7niUdjF
0mmaQHWJndxa9BFpdOTwDz2M+YUsre02QTJXB8dzb1+52ZQfWZ5t6CxMyx/HIt1C
cQZsxDbPQpKpKcj5dx3eCkIBu7kS8KjTFDlevfcClw6G8PMWepCeg8VMYa9k61JC
oRpkyPAoj1W9cPiZsew0tvcOlbmEVWsfkDfA/3wBsTeaqvYRcidS+/vXMf5Zu50j
9Xdat84Ca3RkW9LHFNrvKGZRXv5tXOrCJxeP2kCT5Jv8HD96Pg2B9i0Ok95WZitQ
x7jufUwDMG5XpjmZoihQGYzVRaphGrsaKrx3reH3H+e1nAAi5lyBf0paLvSJqofN
kJ/CX105jEDgSEUzexejVzcZJcw0wB0ny1gPPCZyJXc5SNrPVZH+4Bktqc2K9ejO
Z68TABKYLZOp6wWrE6JICyuARrFV/fBE4s9qRdNpelh5ZYBhv2/IxCpvKxB0hman
uw3TqGSfDnupjnuAzSYM6+fKhLsFZumb0rbt16QgT7D8cMBdHqpxTWY3guGj7sMk
AkdBxbvQx46ybzeOYNqaJIAU9G4EY4wSKAAfGw4N8TXG2J6In7k=
=XS8S
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to