Bug#968000: libconfig-model-dpkg-perl: Get policy release dates in another way

gregor herrmann gregoa at debian.org
Wed Sep 8 16:49:04 BST 2021


On Tue, 07 Sep 2021 17:40:03 -0700, Felix Lechner wrote:

> As a courtesy to this package (and to the policy team) Lintian now
> ships an executable "/usr/share/lintian/private/latest-policy-version"
> that provides the latest policy information. [3] Please use that
> executable to obtain the information you require.

Implemented in git, but not uploaded because

- I'd appreciate review from dod
- and I discovered a wrinkle:

The old /usr/share/lintian/data/standards-version/release-dates had

| 4.5.1  1605571543
| 4.5.0  1579549029
| 4.4.1  1569780709
|
i.e. only the 3-digit "main" policy releases which are relevant for
Standards-Version.

The new /usr/share/lintian/data/debian-policy/releases.json has
sections for all releases, including minor ones, in 4-digit notation:

|       {  
|          "author" : "Sean Whitton <spwhitton at spwhitton.name>",
|          "changes" : [
|             "",
|             "debian-policy (4.6.0.1) unstable; urgency=medium",
|             "",
|             "  * Fix header of upgrading checklist entry for last release (Closes: #992414).",
|             "    Thanks to Scott Talbert and Drew Parsons for reporting the problem."
|          ],
|          "closes" : [
|             992414.0
|          ],
|          "epoch" : 1629318110,
|          "timestamp" : "2021-08-18T20:21:50Z",
|          "version" : "4.6.0.1"
|       },

and /usr/share/lintian/private/latest-policy-version also outputs
4.6.0.1.


This leads to 

| Config::Model::Value::show_warnings Warning in 'source Standards-Version': Current standards version is '4.6.0.1'. Please read https://www.debian.org/doc/debian-policy/upgrading-checklist.html for the changes that may be needed on your package to upgrade it from standard version '4.6.0' to '4.6.0.1'.
| 
| Offending value: '4.6.0' (line 1263)
| 
| Changes applied to dpkg-control configuration:
| - source Standards-Version: '4.6.0' -> '4.6.0.1' # applied fix for :Current standards version is '4.6.0.1'. Please read https://www.debian.org/doc/debian-policy/upgrading-checklist.html for the changes that may be needed on your package to upgrade it from standard version '4.6.0' to '4.6.0.1'.

which is not we want …


Now of course we can strip off the fourth level ourselves but I'm wondering
- if /usr/share/lintian/data/debian-policy/releases.json needs to be
  more precise than /usr/share/lintian/data/standards-version/release-dates
  (I guess having more information there is a feature)
  or
- if /usr/share/lintian/private/latest-policy-version should do the
  stripping (i.e. output "4.6.0" currently) as this is the actual
  relevant Standards-Version.


Alright, for now I've added the stripping as that's probably faster
than waiting for a new lintian release …


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20210908/50774d17/attachment.sig>


More information about the pkg-perl-maintainers mailing list