Package: python3-docutils
Version: 0.16+dfsg-3
Severity: serious
Tags: patch
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed some upgrade paths from buster to
bullseye failing because apt did not find a valid upgrade path.
This commonly happens with 'apt-get upgrade' (which fails), followed by
'apt-get dist-upgrade'.

>From the attached log (scroll to the bottom...):

[...]
  Package python-docutils:amd64 python-docutils:amd64 Depends on 
docutils-common:amd64 < 0.14+dfsg-4 -> 0.16+dfsg-3 @ii umU > (= 0.14+dfsg-4)
    Keeping Package docutils-common:amd64 due to Depends
    Policy breaks with upgrade of python-docutils:amd64 < 0.14+dfsg-4 @ii mK 
IPb >
    Policy breaks with upgrade of python-docutils:amd64 < 0.14+dfsg-4 @ii mK 
IPb >
    Policy breaks with upgrade of python-docutils:amd64 < 0.14+dfsg-4 @ii mK 
IPb >
    Policy breaks with upgrade of python-docutils:amd64 < 0.14+dfsg-4 @ii mK 
IPb >
  
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   python3-docutils : Depends: docutils-common (= 0.16+dfsg-3) but 0.14+dfsg-4 
is to be installed

This can be fixed by making the Breaks against the removed python-docutils
explicit in python3-docutils. (There is currently an implicit one due to
the versioned dependency of both packages on docutils-common, but that
is not sufficient for apt to find a valid solution in all cases.)

The attached patch is against 8e8798a3fd59a464691bea4dd7a789d7bb7c95ba,
i.e. to be applied after the 4 metadata update commits (that I consider
suitable for bullseye) following debian/0.16+dfsg-3 and committed before
the new upstream was merged.

cheers,

Andreas
>From cae183e73216fe4db626fff8b519f5b0299f4971 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <a...@debian.org>
Date: Tue, 13 Apr 2021 09:20:24 +0200
Subject: [PATCH] python3-docutils: add explicit Breaks: python-docutils

the existing implicit Breaks via the versioned dependency on
docutils-common is not sufficient for all upgrade paths
---
 debian/changelog | 4 ++++
 debian/control   | 1 +
 debian/gbp.conf  | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 2223b2e..b2fe7b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,10 @@ python-docutils (0.16+dfsg-4) UNRELEASED; urgency=low
   * d/control: Update Vcs-* fields with new Debian Python Team Salsa
     layout.
 
+  [ Andreas Beckmann ]
+  * python3-docutils: Add explicit Breaks: python-docutils for smoother
+    upgrades from buster.  (Closes: #-1)
+
  -- Debian Janitor <jani...@jelmer.uk>  Wed, 02 Sep 2020 07:19:45 -0000
 
 python-docutils (0.16+dfsg-3) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index 881a382..4a56607 100644
--- a/debian/control
+++ b/debian/control
@@ -29,6 +29,7 @@ Suggests: docutils-doc,
           texlive-lang-french,
           texlive-latex-base,
           texlive-latex-recommended
+Breaks: python-docutils (<< 0.16+dfsg-3)
 Description: text processing system for reStructuredText (implemented in 
Python 3)
  reStructuredText is an easy-to-read, what-you-see-is-what-you-get plaintext
  markup syntax and parser system. It is useful for in-line program 
documentation
diff --git a/debian/gbp.conf b/debian/gbp.conf
index 3879982..f41fd29 100644
--- a/debian/gbp.conf
+++ b/debian/gbp.conf
@@ -1,2 +1,2 @@
 [DEFAULT]
-debian-branch=debian/master
+debian-branch=debian/bullseye
-- 
2.20.1

Attachment: catkin_0.8.9-2.log.gz
Description: application/gzip

Reply via email to