[Pkg-net-snmp-devel] Bug#709761: libsnmp-perl: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE
Andreas Beckmann
anbe at debian.org
Sat May 25 09:32:57 UTC 2013
Package: libsnmp-perl
Version: 5.7.2~dfsg-7
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts
Control: affects -1 + netdisco-frontend tkmib
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:
wheezy -> sid
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:
http://www.debian.org/doc/debian-policy/ch-docs.html#s-copyrightfile
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
http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-unpackphase
For switching from a symlink to a directory, the *preinst* script
should do something like this:
DOCDIR=/usr/share/doc/@@PACKAGE@@
if [ -L $DOCDIR ]; then
rm $DOCDIR
fi
>From the attached log (usually somewhere in the middle...):
0m45.4s INFO: dirname part contains a symlink:
/usr/share/doc/libsnmp-perl/NEWS.Debian.gz (libsnmp-perl) != /usr/share/doc/libsnmp15/NEWS.Debian.gz (?)
/usr/share/doc/libsnmp-perl/README.gz (libsnmp-perl) != /usr/share/doc/libsnmp15/README.gz (?)
/usr/share/doc/libsnmp-perl/changelog.Debian.gz (libsnmp-perl) != /usr/share/doc/libsnmp15/changelog.Debian.gz (?)
/usr/share/doc/libsnmp-perl/changelog.gz (libsnmp-perl) != /usr/share/doc/libsnmp15/changelog.gz (?)
/usr/share/doc/libsnmp-perl/copyright (libsnmp-perl) != /usr/share/doc/libsnmp15/copyright (?)
/usr/share/doc/libsnmp-perl/examples (libsnmp-perl) != /usr/share/doc/libsnmp15/examples (?)
/usr/share/doc/libsnmp-perl/examples/async1.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/async1.pl (?)
/usr/share/doc/libsnmp-perl/examples/async2.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/async2.pl (?)
/usr/share/doc/libsnmp-perl/examples/bulkwalk.pl.gz (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/bulkwalk.pl.gz (?)
/usr/share/doc/libsnmp-perl/examples/ipforward.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/ipforward.pl (?)
/usr/share/doc/libsnmp-perl/examples/mibtree.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/mibtree.pl (?)
/usr/share/doc/libsnmp-perl/examples/mibwalk.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/mibwalk.pl (?)
/usr/share/doc/libsnmp-perl/examples/pingmib.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/pingmib.pl (?)
/usr/share/doc/libsnmp-perl/examples/tablewalk.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/tablewalk.pl (?)
/usr/share/doc/libsnmp-perl/examples/testleak.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/testleak.pl (?)
/usr/share/doc/libsnmp-perl/examples/trap-example.pl (libsnmp-perl) != /usr/share/doc/libsnmp15/examples/trap-example.pl (?)
0m47.5s ERROR: FAIL: debsums reports modifications inside the chroot:
debsums: missing file /usr/share/doc/libsnmp-perl/NEWS.Debian.gz (from libsnmp-perl package)
debsums: missing file /usr/share/doc/libsnmp-perl/README.gz (from libsnmp-perl package)
debsums: missing file /usr/share/doc/libsnmp-perl/changelog.Debian.gz (from libsnmp-perl package)
debsums: missing file /usr/share/doc/libsnmp-perl/changelog.gz (from libsnmp-perl package)
debsums: missing file /usr/share/doc/libsnmp-perl/copyright (from libsnmp-perl package)
cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsnmp-perl_5.7.2~dfsg-7.log.gz
Type: application/x-gzip
Size: 17245 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20130525/60f6db7d/attachment-0001.bin>
More information about the Pkg-net-snmp-devel
mailing list