Bug#1109655: Must use Breaks/Replaces instead of Conflicts to allow smooth transition

2025-07-21 Thread Jérémy Lal
Source: golang-github-golang-protobuf-1-5
Version: 1.5.4-1
Followup-For: Bug #1109655

Also, the `Conflicts: protoc-gen-go` will be an issue, for the same reason.

-- System Information:
Debian Release: 13.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.38+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#1109655: Must use Breaks/Replaces instead of Conflicts to allow smooth transition

2025-07-21 Thread Jérémy Lal
Source: golang-github-golang-protobuf-1-5
Version: 1.5.4-1
Severity: serious

As can be seen below, the use of "Conflicts" does not allow for a smooth 
transition.

This is policy 7.6.1 - Breaks/Replaces is the normal mecanism for packages 
overwriting files of other packages.


Le lun. 21 juil. 2025 à 09:47, Mathias Gibbens  a écrit :
Hi all,

  I mentioned this on the IRC channel, but am also bringing it up here.
A couple of days ago a handful of bookworm -> trixie upgrade bugs were
reported, all relating to packages that depend on protobuf: #1109513,
#1109514, #1109515, #1109516, #1109517.

  The root cause in each bug seems to be the golang-github-golang-
protobuf 1-3 -> 1-5 transition. Here's what apt reports:

> root@saved-quagga:~# apt dist-upgrade -o Debug::pkgProblemResolver=true
> Starting pkgProblemResolver with broken count: 2
> Starting 2 pkgProblemResolver with broken count: 2
> Investigating (0) golang-github-golang-protobuf-1-3-dev:amd64 < 1.3.5-4 @ii 
> mK Ib >
> Broken golang-github-golang-protobuf-1-3-dev:amd64 Conflicts on 
> golang-github-golang-protobuf-1-5-dev:amd64 < none -> 1.5.4-1 @un uN Ib >
>   Considering golang-github-golang-protobuf-1-5-dev:amd64 -1 as a solution to 
> golang-github-golang-protobuf-1-3-dev:amd64 0
>   Added golang-github-golang-protobuf-1-5-dev:amd64 to the remove list
>   Fixing golang-github-golang-protobuf-1-3-dev:amd64 via keep of 
> golang-github-golang-protobuf-1-5-dev:amd64
> Investigating (0) golang-gomega-dev:amd64 < 1.10.3-1 -> 1.36.2-1 @ii umU Ib >
> Broken golang-gomega-dev:amd64 Depends on 
> golang-github-golang-protobuf-1-5-dev:amd64 < none | 1.5.4-1 @un uH >
>   Considering golang-github-golang-protobuf-1-5-dev:amd64 -1 as a solution to 
> golang-gomega-dev:amd64 0
>   Holding Back golang-gomega-dev:amd64 rather than change 
> golang-github-golang-protobuf-1-5-dev:amd64
>  Try to Re-Instate (1) golang-gomega-dev:amd64
> Done
> Entering ResolveByKeep
> Not upgrading: 
>   golang-gomega-dev
>
> Summary:
>   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 1