[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1069281: bookworm-pu: package what-is-python/13+deb12u1



Package: release.debian.org
Severity: normal
Tags: bookworm
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-Cc: Matthias Klose <doko@debian.org>
Control: block 1034995 with -1
Control: affects -1 + src:what-is-python

[ Reason ]
A missing Breaks+Replaces relationship can cause a file conflict on
/usr/bin/pydoc on upgrades from bullseye to bookworm. #1034995

[ Impact ]
Users may need to manually remove an obsolete package to progress with
the upgrade.

[ Tests ]
Manually installed the resulting python-is-python3 package on a minimal
bookworm chroot with python-dev-is-python2 from bullseye installed.

[ Risks ]
Low. python*-is-* are leaf packages with no reverse dependencies.

[ Checklist ]
  [*] *all* changes are documented in the d/changelog
  [*] I reviewed all changes and I approve them
  [*] attach debdiff against the package in (old)stable
  [.] the issue is verified as fixed in unstable
      The B+R fix has been backported from unstable

[ Changes ]
+what-is-python (13+deb12u1) bookworm; urgency=medium
+
+  [ Andreas Beckmann ]
+  * Non-maintainer upload.
+  * Bump version to 11.2.
(specific to bookworm)
+  * Fix version mangling for NMU, stable or backports uploads, i.e. versions
+    with a suffix starting with a non-digit ([.+~]).
(not yet in sid (not needed for maintainer uploads to sid), but proposed
(#1069278), mandatory for a version like 13+foo)
+
+  [ Matthias Klose ]
+  * python-is-python3: Add breaks/replaces to python-dev-is-python2.
+    Closes: #1034995.
(backported from 14)
+
+ -- Andreas Beckmann <anbe@debian.org>  Fri, 19 Apr 2024 10:19:38 +0200

$ debdiff python-is-python3_3.11.1-3_all.deb python-is-python3_3.11.2-1+deb12u1_all.deb
File lists identical (after any substitutions)

Control files: lines which differ (wdiff format)
------------------------------------------------
Breaks: python, {+python-dev-is-python2,+} python-dev-is-python3 (<< 3.11.1-2), python-is-python2, python-is-python2-but-deprecated, python-minimal
Installed-Size: [-15-] {+16+}
Replaces: python, {+python-dev-is-python2,+} python-dev-is-python3 (<< 3.11.1-2), python-is-python2, python-is-python2-but-deprecated, python-minimal
Source: what-is-python [-(13)-] {+(13+deb12u1)+}
Version: [-3.11.1-3-] {+3.11.2-1+deb12u1+}

[ Other info ]
Bookworm has python3.11 3.11.2-6 (or soon 3.11.2-6+deb12u1).
So far what-is-python has generated binary packages versioned as
3.11.1-* or 3.11.4-*, therefore switching bookworm to 3.11.2-* is safe
and consistent with the python3.11 version in bookworm.


Andreas
diff -Nru what-is-python-13/debian/changelog what-is-python-13+deb12u1/debian/changelog
--- what-is-python-13/debian/changelog	2023-01-08 08:19:39.000000000 +0100
+++ what-is-python-13+deb12u1/debian/changelog	2024-04-19 10:19:38.000000000 +0200
@@ -1,3 +1,17 @@
+what-is-python (13+deb12u1) bookworm; urgency=medium
+
+  [ Andreas Beckmann ]
+  * Non-maintainer upload.
+  * Bump version to 11.2.
+  * Fix version mangling for NMU, stable or backports uploads, i.e. versions
+    with a suffix starting with a non-digit ([.+~]).
+
+  [ Matthias Klose ]
+  * python-is-python3: Add breaks/replaces to python-dev-is-python2.
+    Closes: #1034995.
+
+ -- Andreas Beckmann <anbe@debian.org>  Fri, 19 Apr 2024 10:19:38 +0200
+
 what-is-python (13) unstable; urgency=medium
 
   * Fix versioned breaks/replaces: Closes: #1027951.
diff -Nru what-is-python-13/debian/control what-is-python-13+deb12u1/debian/control
--- what-is-python-13/debian/control	2023-01-08 08:19:39.000000000 +0100
+++ what-is-python-13+deb12u1/debian/control	2024-04-19 10:18:52.000000000 +0200
@@ -11,9 +11,9 @@
 Multi-Arch: allowed
 Depends: ${misc:Depends}, python3
 Breaks: python-is-python2, python-is-python2-but-deprecated, python, python-minimal,
-  python-dev-is-python3 (<< 3.11.1-2)
+  python-dev-is-python3 (<< 3.11.1-2), python-dev-is-python2
 Replaces: python-is-python2, python-is-python2-but-deprecated, python, python-minimal,
-  python-dev-is-python3 (<< 3.11.1-2)
+  python-dev-is-python3 (<< 3.11.1-2), python-dev-is-python2
 XB-Cnf-Ignore-Commands: python
 Description: symlinks /usr/bin/python to python3
  Starting with the Debian 11 (bullseye) and Ubuntu 20.04 LTS (focal)
diff -Nru what-is-python-13/debian/rules what-is-python-13+deb12u1/debian/rules
--- what-is-python-13/debian/rules	2023-01-03 10:17:21.000000000 +0100
+++ what-is-python-13+deb12u1/debian/rules	2024-04-19 10:19:38.000000000 +0200
@@ -1,7 +1,10 @@
 #!/usr/bin/make -f
 include /usr/share/dpkg/default.mk
 
-v3 := 3.11.1-$(shell expr $(DEB_VERSION) - 10)
+DEB_VERSION_BASE	 = $(firstword $(subst +, ,$(subst ~, ,$(subst ., ,$(DEB_VERSION)))))
+DEB_VERSION_SUFFIX	 = $(patsubst $(DEB_VERSION_BASE)%,%,$(DEB_VERSION))
+
+v3 := 3.11.2-$(shell expr $(DEB_VERSION_BASE) - 12)$(DEB_VERSION_SUFFIX)
 
 %:
 	dh $@

Reply to: