Package: sse4.2-support,sse3-support
Version: 15
Severity: serious
User: debian...@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#copyright-information

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

This was observed on the following upgrade paths:

  bullseye -> bookworm

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

0m42.0s ERROR: WARN: Inadequate results from running adequate!
  sse4.2-support: missing-copyright-file /usr/share/doc/sse4.2-support/copyright

  MISSING COPYRIGHT FILE: /usr/share/doc/sse4.2-support/copyright
  # ls -lad /usr/share/doc/sse4.2-support
  drwxr-xr-x 2 root root 40 May  3 12:07 /usr/share/doc/sse4.2-support
  # ls -la /usr/share/doc/sse4.2-support/
  total 0
  drwxr-xr-x   2 root root   40 May  3 12:07 .
  drwxr-xr-x 113 root root 2300 May  3 12:07 ..

0m39.1s ERROR: WARN: Inadequate results from running adequate!
  sse3-support: missing-copyright-file /usr/share/doc/sse3-support/copyright

  MISSING COPYRIGHT FILE: /usr/share/doc/sse3-support/copyright
  # ls -lad /usr/share/doc/sse3-support
  drwxr-xr-x 2 root root 40 May  3 13:55 /usr/share/doc/sse3-support
  # ls -la /usr/share/doc/sse3-support/
  total 0
  drwxr-xr-x   2 root root   40 May  3 13:55 .
  drwxr-xr-x 113 root root 2300 May  3 13:55 ..


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#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.


cheers,

Andreas

Attachment: sse4.2-support_15.log.gz
Description: application/gzip

Reply via email to