Bug#708111: [pkg-GD-devel] Bug#708111: libgd2-xpm-dev, libgd2-noxpm-dev: copyright file missing after upgrade (policy 12.5)
I feel silly. Can you advice how do I run piuparts testing2sid locally? It passes sid chroot piuparts just fine. O. On Sat, May 25, 2013 at 10:32 AM, Andreas Beckmann wrote: > Followup-For: Bug #708111 > > Hi Ondrej, > > libgd2-noxpm-dev is still broken, the DOCDIR in postinst is wrong, > points to /usr/share/doc/libgd2-xpm-dev - copy+paste error :-) > > I don't think you need any maintainer script code to change the symlink > from libgd2-dev to libgd-dev - dpkg will replace a symlink by another > symlink. > > MISSING COPYRIGHT FILE: /usr/share/doc/libgd2-noxpm-dev/copyright > # ls -lad /usr/share/doc/libgd2-noxpm-dev > drwxr-xr-x 2 root root 40 May 23 22:06 /usr/share/doc/libgd2-noxpm-dev > # ls -la /usr/share/doc/libgd2-noxpm-dev/ > total 0 > drwxr-xr-x 2 root root 40 May 23 22:06 . > drwxr-xr-x 136 root root 2840 May 23 22:06 .. > > Andreas > > ___ > pkg-GD-devel mailing list > pkg-gd-de...@lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-gd-devel > -- Ondřej Surý
Bug#708111: libgd2-xpm-dev, libgd2-noxpm-dev: copyright file missing after upgrade (policy 12.5)
Followup-For: Bug #708111 Hi Ondrej, libgd2-noxpm-dev is still broken, the DOCDIR in postinst is wrong, points to /usr/share/doc/libgd2-xpm-dev - copy+paste error :-) I don't think you need any maintainer script code to change the symlink from libgd2-dev to libgd-dev - dpkg will replace a symlink by another symlink. MISSING COPYRIGHT FILE: /usr/share/doc/libgd2-noxpm-dev/copyright # ls -lad /usr/share/doc/libgd2-noxpm-dev drwxr-xr-x 2 root root 40 May 23 22:06 /usr/share/doc/libgd2-noxpm-dev # ls -la /usr/share/doc/libgd2-noxpm-dev/ total 0 drwxr-xr-x 2 root root 40 May 23 22:06 . drwxr-xr-x 136 root root 2840 May 23 22:06 .. Andreas libgd2-noxpm-dev_2.1.0~alpha1-6.log.gz Description: GNU Zip compressed data
Bug#708111: libgd2-xpm-dev, libgd2-noxpm-dev: copyright file missing after upgrade (policy 12.5)
Followup-For: Bug #708111 Control: found -1 2.1.0~alpha1-5 Hi, due to the rename libgd2-dev -> libgd-dev there are now broken symlinks: MISSING COPYRIGHT FILE: /usr/share/doc/libgd2-xpm-dev/copyright # ls -lad /usr/share/doc/libgd2-xpm-dev lrwxrwxrwx 1 root root 10 May 22 16:21 /usr/share/doc/libgd2-xpm-dev -> libgd2-dev # ls -la /usr/share/doc/libgd2-xpm-dev/ ls: cannot access /usr/share/doc/libgd2-xpm-dev/: No such file or directory cheers, Andreas libgd2-xpm-dev_2.1.0~alpha1-5.log.gz Description: GNU Zip compressed data
Bug#708111: libgd2-xpm-dev, libgd2-noxpm-dev: copyright file missing after upgrade (policy 12.5)
Package: libgd2-xpm-dev,libgd2-noxpm-dev Version: 2.1.0~alpha~8+ecc535-2 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: 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: sid -> experimental >From the attached log (scroll to the bottom...): MISSING COPYRIGHT FILE: /usr/share/doc/libgd2-noxpm-dev/copyright # ls -lad /usr/share/doc/libgd2-noxpm-dev drwxr-xr-x 2 root root 40 May 11 21:30 /usr/share/doc/libgd2-noxpm-dev # ls -la /usr/share/doc/libgd2-noxpm-dev/ total 0 drwxr-xr-x 2 root root 40 May 11 21:30 . drwxr-xr-x 133 root root 2760 May 11 21:30 .. 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 libgd2-xpm-dev_2.1.0~alpha~8+ecc535-2.log.gz Description: GNU Zip compressed data