[Python-modules-team] Bug#696074: python-cxx-dev: directory vs. symlink mess after squeeze => wheezy upgrade: /usr/share/doc/python-cxx-dev

Andreas Beckmann debian at abeckmann.de
Sun Dec 16 14:25:03 UTC 2012


Package: python-cxx-dev
Version: 6.2.4-1
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during an upgrade test with piuparts I noticed your package installs
files over an existing symlink, overwriting files from another package
in a way that is not detected by dpkg:

0m51.2s INFO: dirname part contains a symlink:
  /usr/share/doc/python-cxx-dev/PyCXX.html != /usr/share/doc/python-cxx/PyCXX.html (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/README.html != /usr/share/doc/python-cxx/README.html (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/changelog.Debian.gz != /usr/share/doc/python-cxx/changelog.Debian.gz (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/copyright != /usr/share/doc/python-cxx/copyright (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples != /usr/share/doc/python-cxx/examples (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/example.cxx.gz != /usr/share/doc/python-cxx/examples/example.cxx.gz (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/example.def != /usr/share/doc/python-cxx/examples/example.def (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/pycxx_iter.cxx != /usr/share/doc/python-cxx/examples/pycxx_iter.cxx (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/pycxx_iter.hxx != /usr/share/doc/python-cxx/examples/pycxx_iter.hxx (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/python.cxx != /usr/share/doc/python-cxx/examples/python.cxx (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/range.cxx != /usr/share/doc/python-cxx/examples/range.cxx (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/range.hxx.gz != /usr/share/doc/python-cxx/examples/range.hxx.gz (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/rangetest.cxx.gz != /usr/share/doc/python-cxx/examples/rangetest.cxx.gz (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/setup.py != /usr/share/doc/python-cxx/examples/setup.py (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/simple.cxx.gz != /usr/share/doc/python-cxx/examples/simple.cxx.gz (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/test_example.py != /usr/share/doc/python-cxx/examples/test_example.py (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/test_pycxx_iter.py != /usr/share/doc/python-cxx/examples/test_pycxx_iter.py (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/examples/test_simple.py != /usr/share/doc/python-cxx/examples/test_simple.py (python-cxx-dev)
  /usr/share/doc/python-cxx-dev/style.css != /usr/share/doc/python-cxx/style.css (python-cxx-dev)


Looks like /usr/share/doc/python-cxx-dev was a symlink in squeeze and is a
directory in wheezy. Note that dpkg intentionally does not replace
directories with symlinks and vice versa.

python-cxx-dev.preinst should probably do something like

    test ! -L /usr/share/doc/python-cxx-dev || rm /usr/share/doc/python-cxx-dev

Please clean this up in wheezy.


Cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-cxx-dev_6.2.4-1.log.gz
Type: application/x-gzip
Size: 23782 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20121216/e72591df/attachment-0001.bin>


More information about the Python-modules-team mailing list