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

Bug#538867: lintian: please add additional Python / dh check

Package: lintian
Version: 2.2.13
Severity: wishlist

Hi Lintian maintainers,

since debhelper 7.3.5 dh is able to build extensions and debug packages,
so it makes sense to check for a proper dependency on debhelper to make
it more obvious that a specific version is needed. This makes
backporters' life a bit more easy at the end, I hope.

The new check should be implemented in the following way:

If the package builds public Python extentions
       [ `find /usr/lib/pyshared/ -type f -name '*.so' | wc -l` -gt 0 ]
    _or_ the package build-depends on python.*-dbg (needs to match
       pythonX.Y-dbg, python-dbg, python-all-dbg)
_and_ the package uses dh in debian/rules
_and_ setup.py exists in the sourcedirectory (check if dh is called with
   _or_ dh is called with --buildsystem=python_distutils

then we need debhelper >= 7.3.5.

Thanks and cheers,


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

Kernel: Linux 2.6.30-think (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils     The GNU assembler, linker and bina
ii  diffstat              1.47-1             produces graph of changes introduc
ii  dpkg-dev               Debian package development tools
ii  file                  5.03-1             Determines file type using "magic"
ii  gettext               0.17-6             GNU Internationalization utilities
ii  intltool-debian       0.35.0+20060710.1  Help i18n of RFC822 compliant conf
ii  libapt-pkg-perl       0.1.23             Perl interface to libapt-pkg
ii  libdigest-sha-perl    5.47-1             Perl extension for SHA-1/224/256/3
ii  libipc-run-perl       0.84-1             Perl module for running processes
ii  libparse-debianchange 1.1.1-2            parse Debian changelogs and output
ii  libtimedate-perl      1.1600-9           Time and date functions for Perl
ii  liburi-perl           1.37+dfsg-1        Manipulates and accesses URI strin
ii  man-db                2.5.5-3            on-line manual pager
ii  perl [libdigest-sha-p 5.10.0-24          Larry Wall's Practical Extraction 

lintian recommends no packages.

Versions of packages lintian suggests:
pn  binutils-multiarch            <none>     (no description available)
ii  libtext-template-perl         1.45-1     Text::Template perl module
ii  man-db                        2.5.5-3    on-line manual pager

-- no debconf information

Reply to: