Bug#521999: lintian: [checks/shared-libs] use pkgconfig files to check for missing -dev depends
Gustavo Noronha wrote:
> On Thu, 2009-04-02 at 18:58 -0300, Gustavo Noronha wrote:
>> Good catch! The attached patch takes care of that:
>>
>> kov@abacate /v/c/a/archives> lintian libcairo2-dev_1.8.6-2+b1_i386.deb
>> E: libcairo2-dev: pkgconfig-requirement-but-no-depends x11 -> libx11-dev
>> E: libcairo2-dev: pkgconfig-requirement-but-no-depends x11 -> libx11-dev
>
> Ping? =)
Hi,
You need to make it gracefully handle multiple packages providing the same
pkgconfig. Try this:
grep -v '^#' pkgconfig | cut -d\ -f1 | sort > pp1
grep -v '^#' pkgconfig | cut -d\ -f1 | sort -u > pp2
$ git diff pp1 pp2 | diffstat
pp2 | 47 -----------------------------------------------
1 file changed, 47 deletions(-)
The Lintian::Data object would only know about the latest package providing
each pkgconfig, which may result in false positives.
Cheers,
--
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net
Reply to: