Bug#768240: cyrus-doc-2.4, cyrus-clients-2.4: copyright file missing after upgrade (policy 12.5)

Andreas Beckmann anbe at debian.org
Thu Nov 6 02:54:15 UTC 2014


Package: cyrus-doc-2.4,cyrus-clients-2.4
Version: 2.4.17+caldav~beta10-6
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

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:

  wheezy -> jessie

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

1m22.2s ERROR: WARN: Inadequate results from running adequate!
  cyrus-doc-2.4: missing-copyright-file /usr/share/doc/cyrus-doc-2.4/copyright

  MISSING COPYRIGHT FILE: /usr/share/doc/cyrus-doc-2.4/copyright
  # ls -lad /usr/share/doc/cyrus-doc-2.4
  drwxr-xr-x 2 root root 40 Nov  3 06:58 /usr/share/doc/cyrus-doc-2.4
  # ls -la /usr/share/doc/cyrus-doc-2.4/
  total 0
  drwxr-xr-x   2 root root   40 Nov  3 06:58 .
  drwxr-xr-x 140 root root 3000 Nov  3 06:58 ..

1m32.9s ERROR: WARN: Inadequate results from running adequate!
  cyrus-clients-2.4: missing-copyright-file /usr/share/doc/cyrus-clients-2.4/copyright

  MISSING COPYRIGHT FILE: /usr/share/doc/cyrus-clients-2.4/copyright
  # ls -lad /usr/share/doc/cyrus-clients-2.4
  drwxr-xr-x 2 root root 40 Nov  3 06:02 /usr/share/doc/cyrus-clients-2.4
  # ls -la /usr/share/doc/cyrus-clients-2.4/
  total 0
  drwxr-xr-x   2 root root   40 Nov  3 06:02 .
  drwxr-xr-x 140 root root 3000 Nov  3 06:02 ..


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

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


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cyrus-doc-2.4_2.4.17+caldav~beta10-6.log.gz
Type: application/gzip
Size: 27666 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20141106/7c5b67ae/attachment.bin>


More information about the Pkg-Cyrus-imapd-Debian-devel mailing list