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

Bug#855243: lintian: Packages python-foo-doc are documentation, not Python 2



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

Dear Maintainer,

Tag new-package-should-not-package-python2-module is intended to discourage
packaging of new modules for Python 2. It currently does this by looking for
packages beginning python- with 1 changelog entry.

However documentation packages for any version of Python have names of the form
python-foo-doc[0] and are erroneously tagged.

The attached patch does not apply this tag to packages beginning python and
ending -doc.

[0] https://lists.debian.org/debian-python/2017/02/msg00045.html

Thanks.

Christopher Hoskin

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lintian depends on:
ii  binutils                          2.27.90.20170124-2
ii  bzip2                             1.0.6-8.1
ii  diffstat                          1.61-1
ii  file                              1:5.29-3
ii  gettext                           0.19.8.1-2
ii  intltool-debian                   0.35.0+20060710.4
ii  libapt-pkg-perl                   0.1.30
ii  libarchive-zip-perl               1.59-1
ii  libclass-accessor-perl            0.34-1
ii  libclone-perl                     0.38-2+b1
ii  libdpkg-perl                      1.18.22
ii  libemail-valid-perl               1.202-1
ii  libfile-basedir-perl              0.07-1
ii  libipc-run-perl                   0.94-1
ii  liblist-moreutils-perl            0.416-1+b1
ii  libparse-debianchangelog-perl     1.2.0-12
ii  libperl5.24 [libdigest-sha-perl]  5.24.1-1
ii  libtext-levenshtein-perl          0.13-1
ii  libtimedate-perl                  2.3000-2
ii  liburi-perl                       1.71-1
ii  libyaml-libyaml-perl              0.63-2
ii  man-db                            2.7.6.1-2
ii  patchutils                        0.3.4-2
ii  perl                              5.24.1-1
ii  t1utils                           1.39-2
ii  xz-utils                          5.2.2-1.2

Versions of packages lintian recommends:
ii  dpkg                                 1.18.22
ii  libperlio-gzip-perl                  0.19-1+b2
ii  perl                                 5.24.1-1
ii  perl-modules-5.24 [libautodie-perl]  5.24.1-1

Versions of packages lintian suggests:
pn  binutils-multiarch     <none>
ii  dpkg-dev               1.18.22
ii  libhtml-parser-perl    3.72-3
ii  libtext-template-perl  1.46-1

-- no debconf information
>From 58f42ba6619acb859d3787f1c73e91d7a8af177e Mon Sep 17 00:00:00 2001
From: Christopher Hoskin <christopher.hoskin@gmail.com>
Date: Wed, 15 Feb 2017 21:17:53 +0000
Subject: [PATCH] Package python-foo-doc is documentation, not Python 2

---
 checks/scripts.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/scripts.pm b/checks/scripts.pm
index c33d7c957..74e1cc4e1 100644
--- a/checks/scripts.pm
+++ b/checks/scripts.pm
@@ -1117,7 +1117,7 @@ sub run {
 
     if (@entries == 1) {
         tag 'new-package-should-not-package-python2-module', $pkg
-          if $pkg =~ /^python-/;
+          if $pkg =~ /^python-.*(?<!-doc)$/;
     }
 
     return;
-- 
2.11.0


Reply to: