Bug#700670: cltl: /usr/share/doc/cltl/* disappearing after lenny -> squeeze -> wheezy upgrade

Andreas Beckmann anbe at debian.org
Fri Feb 15 22:40:29 UTC 2013


Package: cltl
Version: 1.0.26
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

[Note: this bug is slightly different from the other bugs where the
copyright file is missing after an upgrade, but I didn't have time to
analyze and test it further, so you are getting a maybe not entirely
fitting template ...]

Hi,

a test with piuparts revealed that your package misses the copyright
file after an upgrade, which is a violation of Policy 12.5:
http://www.debian.org/doc/debian-policy/ch-docs.html#s-copyrightfile

After the upgrade /usr/share/doc/$PACKAGE/ is just an empty directory.

This was observed on the following upgrade paths:

  lenny -> squeeze -> wheezy

Both

  lenny -> squeeze
  squeeze -> wheezy

work fine

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

1m40.4s ERROR: FAIL: debsums reports modifications inside the chroot:
  debsums: missing file /usr/share/doc/cltl/copyright (from cltl package)
  debsums: missing file /usr/share/doc/cltl/README.Debian (from cltl package)
  debsums: missing file /usr/share/doc/cltl/changelog.gz (from cltl package)


Additional info may be available here:
http://wiki.debian.org/MissingCopyrightFile

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 directory to a symlink the *postinst* script
should do something like this:

        DOCDIR=/usr/share/doc/@@PACKAGE@@
        DOCLINK=@@OTHERPACKAGE@@

        if [ -d $DOCDIR ] && [ ! -L $DOCDIR ] ; then
                rmdir $DOCDIR
                ln -s $DOCLINK $DOCDIR
        fi

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


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cltl_1.0.26.log.gz
Type: application/x-gzip
Size: 36644 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-common-lisp-devel/attachments/20130215/362a614f/attachment-0001.bin>


More information about the pkg-common-lisp-devel mailing list