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

Bug#954819: lintian: Please update the old and ancient python-versions tags to warn about py3versions -r



Package: lintian
Version: 2.59.0
Severity: normal
Tags: patch

Recently we've been seeing a number of autopkgtest failures related to
the python3.8 as default python3 transition due to use of py3versions -r
with no related X-Python3-Version field falling back to all supported
versions.  This is the correct behavior, but it has unfortunate
consequences.

I think it would be good to help mitigate future instances of these
problems if we addeed information to the tags to also check for
py3verions -r and see if it still gives what's needed for the package.

Please see the attached patch.  I'm not set on the wording, but I
believe it's in the ball park.

Scott K
diff -Nru lintian-2.59.0/debian/changelog lintian-2.59.0+/debian/changelog
--- lintian-2.59.0/debian/changelog	2020-03-22 16:22:08.000000000 -0400
+++ lintian-2.59.0+/debian/changelog	2020-03-23 20:55:28.000000000 -0400
@@ -1,3 +1,10 @@
+lintian (2.59.0+) UNRELEASED; urgency=medium
+
+  * Update old and ancient python-version-field tag text to suggest also
+    checking for incorrect use of py3verions -r 
+
+ -- Scott Kitterman <scott@kitterman.com>  Mon, 23 Mar 2020 20:55:28 -0400
+
 lintian (2.59.0) unstable; urgency=medium
 
   [ Chris Lamb ]
diff -Nru lintian-2.59.0/tags/a/ancient-python-version-field.desc lintian-2.59.0+/tags/a/ancient-python-version-field.desc
--- lintian-2.59.0/tags/a/ancient-python-version-field.desc	2020-03-22 16:22:08.000000000 -0400
+++ lintian-2.59.0+/tags/a/ancient-python-version-field.desc	2020-03-23 20:55:28.000000000 -0400
@@ -7,4 +7,7 @@
  associated Python version is satisfied by the current "oldstable"
  distribution of Debian and is therefore unnecessary.
  .
- Please remove or update the reference.
+ Please remove or update the reference.  If removing, please also check
+ for the use of py3versions -r in debian/control, debian/rules, and debian/
+ tests/.  Without an operative Python3-Version field py3versions will fall
+ back to all supported versions, which may not be appropriate.
diff -Nru lintian-2.59.0/tags/o/old-python-version-field.desc lintian-2.59.0+/tags/o/old-python-version-field.desc
--- lintian-2.59.0/tags/o/old-python-version-field.desc	2020-03-22 16:22:08.000000000 -0400
+++ lintian-2.59.0+/tags/o/old-python-version-field.desc	2020-03-23 20:55:28.000000000 -0400
@@ -8,4 +8,7 @@
  distribution of Debian and may be unnecessary.
  .
  Please remove or update the reference. This warning should be ignored
- if you wish to support "sloppy" backports.
+ if you wish to support "sloppy" backports.    If removing, please also check
+ for the use of py3versions -r in debian/control, debian/rules, and debian/
+ tests/.  Without an operative Python3-Version field py3versions will fall
+ back to all supported versions, which may not be appropriate.

Reply to: