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

Re: Bug#642033: lintian: false positive - dir-or-file-in-srv matches incorrectly full path



On 2011-09-18 20:40, Jari Aalto wrote:
> Package: lintian
> Version: 2.5.3
> Severity: normal
> 

Hi,

> SUMMARY
> 
>     Lintian is possibly using somewhere a loose regexp which causes
>     matching text against full path (word "srv") whereas it should
>     test only build structure paths under debian/ directory.
                                            ^^^^^^

That dir should only be in the source package...

> 
> SYMPTOMPS
> 
> While build lrzip in directory:
> 
>     /srv/deb/debian/lrzip/lrzip.git
> 
> Lintian informs:
> 
>     E: lrzip: dir-or-file-in-srv srv/deb/
>     E: lrzip: dir-or-file-in-srv srv/deb/debian/
>     E: lrzip: dir-or-file-in-srv srv/deb/debian/lrzip/
>     I: lrzip: package-contains-empty-directory srv/deb/debian/lrzip/
         ^^^^^

... where as this is a tag emitted on the binary package.  Furthermore,
it says "dir-or-file-in-srv", which makes the srv/, srv/deb/,
srv/deb/debian and srv/deb/debian/lrzip directories.  Furthermore
srv/deb/debian/lrzip is empty, so ...

>
> However, no "srv" directory exist in the actual build structure:
> 
>     $ find debian/lrzip -type f | sort
> [...]
                          ^^^^^^^

... this is very likely to not show the issue, since it only shows *files*.

Please check the output of "dpkg --contents lrzip_$v_$a.deb | grep srv".

~Niels


Reply to: