Your message dated Thu, 13 Dec 2018 06:34:31 +0000
with message-id <e1gxkzr-0002hq...@fasolo.debian.org>
and subject line Bug#916309: fixed in psycopg2 2.7.6.1-3
has caused the Debian Bug report #916309,
regarding python{,3}-psycopg2-dbg: unhandled symlink to directory conversion: 
/usr/share/doc/PACKAGE
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
916309: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916309
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-psycopg2-dbg,python3-psycopg2-dbg
Version: 2.7.6.1-2
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

an upgrade test with piuparts revealed that your package installs files
over existing symlinks and possibly overwrites files owned by other
packages. This usually means an old version of the package shipped a
symlink but that was later replaced by a real (and non-empty)
directory. This kind of overwriting another package's files cannot be
detected by dpkg.

This was observed on the following upgrade paths:

  testing -> sid

For /usr/share/doc/PACKAGE this may not be problematic as long as both
packages are installed, ship byte-for-byte identical files and are
upgraded in lockstep. But once one of the involved packages gets
removed, the other one will lose its documentation files, too,
including the copyright file, which is a violation of Policy 12.5:
https://www.debian.org/doc/debian-policy/ch-docs.html#copyright-information

For other overwritten locations anything interesting may happen.

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.


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

0m29.9s ERROR: FAIL: silently overwrites files via directory symlinks:
  /usr/share/doc/python-psycopg2-dbg/changelog.Debian.gz (python-psycopg2-dbg) 
!= /usr/share/doc/python-psycopg2/changelog.Debian.gz (python-psycopg2)
    /usr/share/doc/python-psycopg2-dbg -> python-psycopg2
  /usr/share/doc/python-psycopg2-dbg/copyright (python-psycopg2-dbg) != 
/usr/share/doc/python-psycopg2/copyright (python-psycopg2)
    /usr/share/doc/python-psycopg2-dbg -> python-psycopg2

0m40.0s ERROR: FAIL: silently overwrites files via directory symlinks:
  /usr/share/doc/python3-psycopg2-dbg/changelog.Debian.gz 
(python3-psycopg2-dbg) != /usr/share/doc/python3-psycopg2/changelog.Debian.gz 
(python3-psycopg2)
    /usr/share/doc/python3-psycopg2-dbg -> python3-psycopg2
  /usr/share/doc/python3-psycopg2-dbg/copyright (python3-psycopg2-dbg) != 
/usr/share/doc/python3-psycopg2/copyright (python3-psycopg2)
    /usr/share/doc/python3-psycopg2-dbg -> python3-psycopg2


cheers,

Andreas

Attachment: python-psycopg2-dbg_2.7.6.1-2.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Source: psycopg2
Source-Version: 2.7.6.1-3

We believe that the bug you reported is fixed in the latest version of
psycopg2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 916...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott Kitterman <sc...@kitterman.com> (supplier of updated psycopg2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 12 Dec 2018 23:06:21 -0500
Source: psycopg2
Binary: python-psycopg2 python-psycopg2-dbg python3-psycopg2 
python3-psycopg2-dbg python-psycopg2-doc
Architecture: source amd64 all
Version: 2.7.6.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
Changed-By: Scott Kitterman <sc...@kitterman.com>
Description:
 python-psycopg2 - Python module for PostgreSQL
 python-psycopg2-dbg - Python module for PostgreSQL (debug extension)
 python-psycopg2-doc - Python module for PostgreSQL (documentation package)
 python3-psycopg2 - Python 3 module for PostgreSQL
 python3-psycopg2-dbg - Python 3 module for PostgreSQL (debug extension)
Closes: 916309
Changes:
 psycopg2 (2.7.6.1-3) unstable; urgency=medium
 .
   * Restore pre-2.7.6.1-1 dbg package doc symlinks that were inadvertently
     dropped when debian/rules was refactored (Closes: #916309)
Checksums-Sha1:
 fa6f94a3bf3dc54f3a6a13a0a1239c59b04aa4bb 2460 psycopg2_2.7.6.1-3.dsc
 630d3e6f05e7e2c0a3796f00dfae4ca455d7b193 13280 psycopg2_2.7.6.1-3.debian.tar.xz
 307cc0a4794136331c7d8b9eae92abbd1b8f78d5 9962 
psycopg2_2.7.6.1-3_amd64.buildinfo
 1d921e0c3b2790b79570fb7a38b56a44f5b77443 76660 
python-psycopg2-dbg_2.7.6.1-3_amd64.deb
 f9a4f095c6c1a9ab9aa5f99259fa560ed39d3509 282936 
python-psycopg2-dbgsym_2.7.6.1-3_amd64.deb
 acf950426acb7e115dd87616700fecf7417254f3 268792 
python-psycopg2-doc_2.7.6.1-3_all.deb
 92c770c74609d340dad4ab3c1d0b97e26eade7cb 163156 
python-psycopg2_2.7.6.1-3_amd64.deb
 c842a31aa64f70c98c4e41abbe62590829616b7b 81516 
python3-psycopg2-dbg_2.7.6.1-3_amd64.deb
 b69a4059e1977b6df5165e634d78af73ffe524c2 560136 
python3-psycopg2-dbgsym_2.7.6.1-3_amd64.deb
 d557920567e3244bdfe450a77f01877264f4f7cb 160672 
python3-psycopg2_2.7.6.1-3_amd64.deb
Checksums-Sha256:
 c6dbe7406fdc1a681c6104fc1d1fca4d4bf8be977b6aeb687516d4923d341ba8 2460 
psycopg2_2.7.6.1-3.dsc
 32da56abd441b5c3ccd729023aaaeb6e99d57c96d02203bee6aa1f4d24e0f4f9 13280 
psycopg2_2.7.6.1-3.debian.tar.xz
 c45c1ecb476ab52293fec8f574df0d6d3fefb1817225ac7ca71e852dab06a1e0 9962 
psycopg2_2.7.6.1-3_amd64.buildinfo
 d20d9b5b6841b4e1437676233454bfbeafbcbee5c2e5dc3f643124ad16dd726e 76660 
python-psycopg2-dbg_2.7.6.1-3_amd64.deb
 9d1176f3a24bb7e7ff85c3f6a7edade18dad84d6de42d01bb084d391e5d677a8 282936 
python-psycopg2-dbgsym_2.7.6.1-3_amd64.deb
 0111df7b98268ed0481d0bd5dc1f2bef169172e53d8e06e23c6255d0c0143482 268792 
python-psycopg2-doc_2.7.6.1-3_all.deb
 a37bcab7328cba3520b41248f9766c0d37300caa403642307e1b2f0fb33b1b50 163156 
python-psycopg2_2.7.6.1-3_amd64.deb
 42bcd228790d0615f315ba0adf1f357315d5dc01b958868af4ac802e2494fb22 81516 
python3-psycopg2-dbg_2.7.6.1-3_amd64.deb
 148e1f82493cfd4ee273c42063f66e80a96dd709515bccd6c8576663c7abd998 560136 
python3-psycopg2-dbgsym_2.7.6.1-3_amd64.deb
 a3470525407151c21a1cfc793e20f73915dff04f5b41bef24cbfe1e16093b16b 160672 
python3-psycopg2_2.7.6.1-3_amd64.deb
Files:
 96fa5a164c2f3ca2d4a63ebb5aacdd60 2460 python optional psycopg2_2.7.6.1-3.dsc
 3be212a068d23465e4e9efd56d94ead1 13280 python optional 
psycopg2_2.7.6.1-3.debian.tar.xz
 ccaf4ba46bfe2378261c4cb88762e1d4 9962 python optional 
psycopg2_2.7.6.1-3_amd64.buildinfo
 933f664879bee3752de9c4318ea59942 76660 debug optional 
python-psycopg2-dbg_2.7.6.1-3_amd64.deb
 37a450af1006d65aa80a75e2322290d6 282936 debug optional 
python-psycopg2-dbgsym_2.7.6.1-3_amd64.deb
 ad8d486d8121ad518af03e53a028dff9 268792 doc optional 
python-psycopg2-doc_2.7.6.1-3_all.deb
 6678e11e87e8e09440d274ad60c262ae 163156 python optional 
python-psycopg2_2.7.6.1-3_amd64.deb
 cdde8239a55a7c809482a5478b6c84b9 81516 debug optional 
python3-psycopg2-dbg_2.7.6.1-3_amd64.deb
 78260d09d064b8354e8a7d864945b84e 560136 debug optional 
python3-psycopg2-dbgsym_2.7.6.1-3_amd64.deb
 74b3f77e0a67ca47c9ff7f5e85474f43 160672 python optional 
python3-psycopg2_2.7.6.1-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJcEfgVAAoJEHjX3vua1ZrxQvYP/2YWPABkGSkh/PlQ7916x3c4
N3k1HEJqp/C6iNfEK6FTvbSw+V9QHV8U1JgQQjU2cUpSCfjqzT1SDu3OQD4NeomH
JFjkNqfxo1hkaVWyGAWQITUTj+WNjh7ihoE/34QjIhvacakJRjeojw+fqmiUG8P/
CPRFZx0Y3w3i17vGipB8M7RTQqLq7LSEvkYViUb7WaSd4ICdHul3z3PbSgxtus6A
P4EwgVuLgWaPi9m1J3BnMPmn3YD5fZeHrExv89YhL9lmmj6lLhfB8zMVoyoJM/R+
OBYQV2k/CzaJRNtkAaD5HucucJ4lNg11JRPW9wsW+pPtPqAUFU0XPpuil3W1wSVq
XxQGi9xhWVxb+KKbaZ0X3ZQZYykx0p8IOoyKAC0C1H2SLkC7r3OtF5VKqT240L0r
1Nw/c8wXF2n5nljBRTMXChwBWzRZaHOeRmJL56L6pk4ImFQTKRxVGMKNqDAqHRez
UE986pXD5cLn3cssCWAvO24dIdEreqeSvQZ7RAjUqJ2kzlna4F2SWbHyCsi+e3cw
OZcrX7K5ipNQ7GtcQkzHDOpYwslZVE3AU+FjWS8/k32LECuH8iUBDGfY7+6o20On
ta9Ft9ihod3OI+9cKWEFY74SHq3xf/Ksud1+PS0aDiQYQQXwkRbP+11XVSqm6ym0
fT5Z3gEIy/kwUtRT9iuj
=gDei
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to