Source: gcc-defaults
Version: 1.168
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#s-copyrightfile

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

This was observed on the following upgrade paths:

  stretch -> sid

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

1m1.8s DEBUG: Starting command: ['adequate', '--root', 
'/tmp/piupartss/tmp1lLvlN', 'gdc-mips-linux-gnu']
1m2.0s DUMP: 
  gdc-mips-linux-gnu: missing-copyright-file 
/usr/share/doc/gdc-mips-linux-gnu/copyright
1m2.0s DEBUG: Command ok: ['adequate', '--root', '/tmp/piupartss/tmp1lLvlN', 
'gdc-mips-linux-gnu']

  MISSING COPYRIGHT FILE: /usr/share/doc/gdc-mips-linux-gnu/copyright
  # ls -lad /usr/share/doc/gdc-mips-linux-gnu
  drwxr-xr-x 2 root root 40 Apr  9 05:26 /usr/share/doc/gdc-mips-linux-gnu
  # ls -la /usr/share/doc/gdc-mips-linux-gnu/
  total 0
  drwxr-xr-x  2 root root   40 Apr  9 05:26 .
  drwxr-xr-x 92 root root 2460 Apr  9 05:26 ..


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.maintscript.
Do not forget to add 'Pre-Depends: ${misc:Pre-Depends}' in d/control.
See dpkg-maintscript-helper(1) and dh_installdeb(1) for details.


The previous versions (up to 6.3.0-2) shipped regular files
(and the messed up symlink):

drwxr-xr-x root/root         0 2017-03-16 15:08 
./usr/share/doc/gdc-mips-linux-gnu/
-rw-r--r-- root/root      6957 2016-08-03 13:58 
./usr/share/doc/gdc-mips-linux-gnu/README.Debian
-rw-r--r-- root/root     12987 2017-03-16 15:08 
./usr/share/doc/gdc-mips-linux-gnu/changelog.Debian.gz
-rw-r--r-- root/root      2207 2013-06-12 23:03 
./usr/share/doc/gdc-mips-linux-gnu/copyright
lrwxrwxrwx root/root         0 2017-03-16 15:08 
./usr/share/doc/gdc-mips-linux-gnu/cpp-mips-linux-gnu -> cpp-mips-linux-gnu


cheers,

Andreas

Attachment: gdc-mips-linux-gnu_4:6.3.0-4.log.gz
Description: application/gzip

Reply via email to