[Python-modules-team] Bug#940919: python3-cxx-dev: removal of python3-cxx-dev makes files disappear from python-cxx-dev
Andreas Beckmann
anbe at debian.org
Sat Sep 21 21:37:43 BST 2019
Package: python3-cxx-dev
Version: 7.0.3-3
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts replaces-without-breaks
Hi,
during a test with piuparts and DOSE tools I noticed your package causes
removal of files that also belong to another package.
This is caused by using Replaces without corresponding Breaks.
The installation sequence to reproduce this problem is
apt-get install python-cxx-dev/buster
# (1)
apt-get install python3-cxx-dev/bullseye
apt-get remove python3-cxx-dev
# (2)
The list of installed files at points (1) and (2) should be identical,
but the following files have disappeared:
/usr/include/CXX/*
/usr/src/CXX/*
This is a serious bug violating policy 7.6, see
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces
and also see the footnote that describes this incorrect behavior:
https://www.debian.org/doc/debian-policy/ch-relationships.html#id13
The python3-cxx-dev package has the following relationships with python-cxx-dev:
Conflicts: n/a
Breaks: n/a
Replaces: python-cxx-dev (<< 7.0.3-3)
>From the attached log (scroll to the bottom...):
1m3.9s ERROR: FAIL: After purging files have disappeared:
/usr/include/CXX/Config.hxx owned by: python3-cxx-dev
/usr/include/CXX/CxxDebug.hxx owned by: python3-cxx-dev
/usr/include/CXX/Exception.hxx owned by: python3-cxx-dev
/usr/include/CXX/Extensions.hxx owned by: python3-cxx-dev
/usr/include/CXX/IndirectPythonInterface.hxx owned by: python3-cxx-dev
/usr/include/CXX/Objects.hxx owned by: python3-cxx-dev
/usr/include/CXX/Version.hxx owned by: python3-cxx-dev
/usr/include/CXX/WrapPython.h owned by: python3-cxx-dev
/usr/lib/pkgconfig/PyCXX.pc owned by: python3-cxx-dev
/usr/src/CXX/IndirectPythonInterface.cxx owned by: python3-cxx-dev
/usr/src/CXX/cxx_exceptions.cxx owned by: python3-cxx-dev
/usr/src/CXX/cxx_extensions.cxx owned by: python3-cxx-dev
/usr/src/CXX/cxxextensions.c owned by: python3-cxx-dev
/usr/src/CXX/cxxsupport.cxx owned by: python3-cxx-dev
1m3.9s ERROR: FAIL: After purging files have been modified:
/var/lib/dpkg/info/python-cxx-dev.list not owned
cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-cxx-dev=7.0.3-2_python3-cxx-dev=7.0.3-3.log.gz
Type: application/gzip
Size: 11302 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20190921/14b25f3d/attachment-0001.gz>
More information about the Python-modules-team
mailing list