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

Bug#746563: python-support (build-)depends checks



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

python-support is deprecated in favour of dh_python2, as per
http://packages.qa.debian.org/p/python-support/news/20110627T204800Z.html

The attached patch adds two new warnings checking whether the python-support is
listed as build-dependency or dependency.



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils                       2.24.51.20140425-1
ii  bzip2                          1.0.6-5
ii  diffstat                       1.58-1
ii  file                           1:5.18-1
ii  gettext                        0.18.3.2-1
ii  hardening-includes             2.5
ii  intltool-debian                0.35.0+20060710.1
ii  libapt-pkg-perl                0.1.29+b1
ii  libarchive-zip-perl            1.37-2
ii  libclass-accessor-perl         0.34-1
ii  libclone-perl                  0.36-1
ii  libdpkg-perl                   1.17.9
ii  libemail-valid-perl            1.192-1
ii  libfile-basedir-perl           0.03-1
ii  libipc-run-perl                0.92-1
ii  liblist-moreutils-perl         0.33-2
ii  libparse-debianchangelog-perl  1.2.0-1
ii  libtext-levenshtein-perl       0.06~01-2
ii  libtimedate-perl               2.3000-2
ii  liburi-perl                    1.60-1
ii  man-db                         2.6.7.1-1
ii  patchutils                     0.3.3-1
ii  perl [libdigest-sha-perl]      5.18.2-2+b1
ii  t1utils                        1.37-2

Versions of packages lintian recommends:
ii  libautodie-perl                 2.25-1
ii  libperlio-gzip-perl             0.18-2
ii  perl-modules [libautodie-perl]  5.18.2-2

Versions of packages lintian suggests:
pn  binutils-multiarch     <none>
ii  dpkg-dev               1.17.9
ii  libhtml-parser-perl    3.71-1+b1
ii  libtext-template-perl  1.46-1
pn  libyaml-perl           <none>
ii  xz-utils               5.1.1alpha+20120614-2

-- no debconf information
diff -Nru lintian-2.5.22.1/checks/fields.desc lintian-2.5.22.2/checks/fields.desc
--- lintian-2.5.22.1/checks/fields.desc	2014-03-30 11:56:39.000000000 +0200
+++ lintian-2.5.22.2/checks/fields.desc	2014-05-01 14:34:08.000000000 +0200
@@ -1222,3 +1222,18 @@
  .
  Instead these permissions are granted via "dak-commands" files.
 Ref: https://lists.debian.org/debian-devel-announce/2012/09/msg00008.html
+
+Tag: build-depends-on-python-support
+Severity: normal
+Certainty: certain
+Info: This package build-depends on python-support.
+ python-support is deprecated and has been replaced by dh_python2.
+Ref: http://wiki.debian.org/Python/TransitionToDHPython2
+
+Tag: depends-on-python-support
+Severity: normal
+Certainty: certain
+Info: This package depends on python-support.
+ python-support is deprecated and has been replaced by dh_python2.
+Ref: http://wiki.debian.org/Python/TransitionToDHPython2
+
diff -Nru lintian-2.5.22.1/checks/fields.pm lintian-2.5.22.2/checks/fields.pm
--- lintian-2.5.22.1/checks/fields.pm	2014-03-30 11:56:39.000000000 +0200
+++ lintian-2.5.22.2/checks/fields.pm	2014-05-01 14:39:27.000000000 +0200
@@ -843,6 +843,10 @@
                         && $pkg !~ m/-(?:dev|docs?|tools|bin)$/
                         && $part_d_orig =~ m/-docs?$/);
 
+                    tag 'depends-on-python-support'
+                      if ( ($field eq 'depends' || $field eq 'pre-depends')
+                        && $d_pkg eq 'python-support');
+
                     # default-jdk-doc must depend on openjdk-X-doc (or
                     # classpath-doc) to be useful; other packages
                     # should depend on default-jdk-doc if they want
@@ -1033,6 +1037,9 @@
                         tag 'build-depends-on-build-essential', $field
                           if ($d_pkg eq 'build-essential');
 
+                        tag 'build-depends-on-python-support'
+                          if ($d_pkg eq 'python-support');
+
                         #<<< no tidy, tag name too long
                         tag 'depends-on-build-essential-package-without-using-version',
                         #>>>


Reply to: