Bug#949339: libshiboken2-py3-5.14: missing Breaks+Replaces: libshiboken2-py3-5.13

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#949339: libshiboken2-py3-5.14: missing Breaks+Replaces: libshiboken2-py3-5.13

Andreas Beckmann-4
Package: libshiboken2-py3-5.14
Version: 5.14.0-1~exp1
Severity: serious
User: [hidden email]
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)


cheers,

Andreas

libshiboken2-py3-5.13=5.13.2-2.2+b1_libshiboken2-py3-5.14=5.14.0-1~exp1.log.gz (11K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#949339: libshiboken2-py3-5.14: missing Breaks+Replaces: libshiboken2-py3-5.13

Gianfranco Costamagna via nm
control: tags -1 patch

Hello,

On Mon, 20 Jan 2020 00:40:02 +0100 Andreas Beckmann <[hidden email]> wrote:

> Package: libshiboken2-py3-5.14
> Version: 5.14.0-1~exp1
> Severity: serious
> User: [hidden email]
> 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 <[hidden email]>  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

Reply | Threaded
Open this post in threaded view
|

Processed: Re: libshiboken2-py3-5.14: missing Breaks+Replaces: libshiboken2-py3-5.13

Debian Bug Tracking System
In reply to this post by Andreas Beckmann-4
Processing control commands:

> tags -1 patch
Bug #949339 [libshiboken2-py3-5.14] libshiboken2-py3-5.14: missing Breaks+Replaces: libshiboken2-py3-5.13
Added tag(s) patch.

--
949339: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949339
Debian Bug Tracking System
Contact [hidden email] with problems

Reply | Threaded
Open this post in threaded view
|

Bug#949339: marked as pending in pyside2

Raphael Hertzog-3
In reply to this post by Andreas Beckmann-4
Control: tag -1 pending

Hello,

Bug #949339 in pyside2 reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/qt-kde-team/qt/pyside2/commit/7ce804e315f1f3b24768429f92bf10aa97ea1545

------------------------------------------------------------------------
Add missing Breaks/Replaces for upgrading from previous version

Closes: #949339
------------------------------------------------------------------------

(this message was generated automatically)
--
Greetings

https://bugs.debian.org/949339

Reply | Threaded
Open this post in threaded view
|

Processed: Bug#949339 marked as pending in pyside2

Debian Bug Tracking System
In reply to this post by Andreas Beckmann-4
Processing control commands:

> tag -1 pending
Bug #949339 [libshiboken2-py3-5.14] libshiboken2-py3-5.14: missing Breaks+Replaces: libshiboken2-py3-5.13
Added tag(s) pending.

--
949339: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949339
Debian Bug Tracking System
Contact [hidden email] with problems

Reply | Threaded
Open this post in threaded view
|

Bug#949339: was able to side-step this but unable to install freecad because python3-pyside2uic is still at 5.13.2-2.2 unlike others which do have an experimental version 5.14.0-1~exp1

shirish शिरीष
In reply to this post by Andreas Beckmann-4
Dear all,
I was able to side-step this one a bit as I was able to download all
the experimental versions of pytside2 binaries except
python3-pyside2uic which is still at 5.13.2-2.2 and hence unable to
install freecad.

$ sudo aptitude install freecad-python3
The following NEW packages will be installed:
  freecad-common{a} freecad-python3 python3-pyside2uic{a}
0 packages upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/4,889 kB of archives. After unpacking 40.6 MB will be used.
Do you want to continue? [Y/n/?] n
Abort.

$ apt-cache policy python3-pyside2uic
python3-pyside2uic:
  Installed: (none)
  Candidate: 5.13.2-2.2
  Version table:
     5.13.2-2.2 100
        100 http://deb.debian.org/debian unstable/main amd64 Packages

Maybe have a 5.14.0-1~exp1 version in experimental too so we could
install freecad while this gets fixed in the pending upload (whenever
that happens.)

--
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com

E493 D466 6D67 59F5 1FD0 930F 870E 9A5B 5869 609C