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

Bug#582769: lintian: issue error if both cdbs and debhelper is listed



severity 582769 wishlist
thanks

Jari Aalto <jari.aalto@cante.net> writes:

> Package: lintian
> Version: 2.4.1
> Severity: normal

Requests for new Lintian checks are always wishlist.  False negatives are
nearly always wishlist.

>   $ grep Depends: debian/control
>   Build-Depends: debhelper (>= 7.1), cdbs

> in this case the CDBS package was converted into debhelper dh(1) format,
> but the cdbs dependency was not reoved from the Build-Depends.

> Perhaps "multiple packaging systems" error could be issued to notice this?

It's a bit more complicated than that, since it's perfectly legitimate to
invoke a dh script directly inside a supplemental CDBS rule, in which case
the package should also build-depend on debhelper directly.

However, we should be able to detect whether CDBS is in use by looking for
includes in debian/rules that reference CDBS and warn that the CDBS
dependency may be unused in that case.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: