[Pkg-cups-devel] Bug#774918: cups-pdf: copyright file missing after upgrade (policy 12.5)

Andreas Beckmann anbe at debian.org
Fri Jan 9 03:18:58 UTC 2015


Package: cups-pdf
Version: 2.6.1-14
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:
https://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...):

1m46.2s ERROR: WARN: Inadequate results from running adequate!
  cups-pdf: missing-copyright-file /usr/share/doc/cups-pdf/copyright

1m48.7s DUMP: 
  MISSING COPYRIGHT FILE: /usr/share/doc/cups-pdf/copyright
  # ls -lad /usr/share/doc/cups-pdf
  drwxr-xr-x 2 root root 40 Dec 12 15:05 /usr/share/doc/cups-pdf
  # ls -la /usr/share/doc/cups-pdf/
  total 0
  drwxr-xr-x   2 root root   40 Dec 12 15:05 .
  drwxr-xr-x 192 root root 4000 Dec 12 15:05 ..


Additional info may be available here:
https://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
https://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.14)
to perform the conversion, ideally using d/$PACKAGE.mainstscript.
Do not forget to add 'Pre-Depends: ${misc:Pre-Depends}' in d/control.
See dpkg-maintscript-helper(1) and dh_installdeb(1) for details.


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cups-pdf_2.6.1-14.log.gz
Type: application/gzip
Size: 36123 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20150109/c795abc3/attachment-0001.bin>


More information about the Pkg-cups-devel mailing list