control: tags -1 patch Hello,
On Mon, 20 Jan 2020 00:40:02 +0100 Andreas Beckmann <a...@debian.org> wrote: > Package: libshiboken2-py3-5.14 > Version: 5.14.0-1~exp1 > Severity: serious > User: debian...@lists.debian.org > Usertags: piuparts > > Hi, > > during a test with piuparts I noticed your package fails to upgrade from > 'sid' to 'experimental'. > It installed fine in 'sid', then the upgrade to 'experimental' fails > because it tries to overwrite other packages files without declaring a > Breaks+Replaces relation. > > See policy 7.6 at > https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces > > From the attached log (scroll to the bottom...): > > Preparing to unpack .../libshiboken2-py3-5.14_5.14.0-1~exp1_amd64.deb ... > Unpacking libshiboken2-py3-5.14 (5.14.0-1~exp1) ... > dpkg: error processing archive > /var/cache/apt/archives/libshiboken2-py3-5.14_5.14.0-1~exp1_amd64.deb > (--unpack): > trying to overwrite > '/usr/lib/python3/dist-packages/shiboken2/__init__.py', which is also in > package libshiboken2-py3-5.13 5.13.2-2.2+b1 > Errors were encountered while processing: > /var/cache/apt/archives/libshiboken2-py3-5.14_5.14.0-1~exp1_amd64.deb > dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) > > diff -Nru pyside2-5.14.0/debian/changelog pyside2-5.14.0/debian/changelog --- pyside2-5.14.0/debian/changelog 2020-01-29 08:05:25.000000000 +0100 +++ pyside2-5.14.0/debian/changelog 2020-01-29 12:35:34.000000000 +0100 @@ -1,3 +1,10 @@ +pyside2 (5.14.0-1~exp2) experimental; urgency=medium + + * Fix missing Breaks/Replaces for upgrading from previous version (Closes: + #949339) + + -- Gianfranco Costamagna <locutusofb...@debian.org> Wed, 29 Jan 2020 12:35:34 +0100 + pyside2 (5.14.0-1~exp1build1) focal; urgency=medium * Ignore test failures for a first build. diff -Nru pyside2-5.14.0/debian/control pyside2-5.14.0/debian/control --- pyside2-5.14.0/debian/control 2020-01-29 06:02:07.000000000 +0100 +++ pyside2-5.14.0/debian/control 2020-01-29 12:35:34.000000000 +0100 @@ -79,9 +79,9 @@ Section: libs Architecture: any Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} -Conflicts: libpyside2-py3-5.11 -Replaces: libpyside2-py3-5.11 -Provides: libpyside2-py3-5.11 +Conflicts: libpyside2-py3-5.11, libpyside2-py3-5.13 +Replaces: libpyside2-py3-5.11, libpyside2-py3-5.13 +Provides: libpyside2-py3 Description: Python 3 bindings for Qt5 (base files) pyside2 provides Python bindings for Qt 5.x framework. . @@ -130,6 +130,9 @@ Section: libs Architecture: any Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} +Conflicts: libshiboken2-py3-5.11, libshiboken2-py3-5.13 +Replaces: libshiboken2-py3-5.11, libshiboken2-py3-5.13 +Provides: libshiboken2-py3 Description: CPython bindings generator for C++ libraries (Python3 shared library) Shiboken2 is a bindings generator for C++ libraries that outputs CPython source code. It collects information from library headers, and then This should do the trick. BTW I don't think we should "Provide" a virtual package that contains the versioning, because it makes its purpose useless (every package already provides itself) Gianfranco