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

Bug#409096: lintian: Check non existing directories listed in debian/dirs



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

> Package: lintian
> Version: 1.23.27
> Severity: wishlist

> Suppose following:

>     [debian/dirs]:
>     usr/bin
>     usr/sbin

>     [dpkg --contents *.deb]
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./usr/
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./usr/bin/
>     -rwxr-xr-x root/root     39088 2007-01-21 01:30 ./usr/bin/foo
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./usr/sbin/
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./usr/share/
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./usr/share/doc/
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./usr/share/doc/foo/
>     -rw-r--r-- root/root      1199 2007-01-21 01:29 ./usr/share/doc/foo/copyright
>     -rw-r--r-- root/root       164 2007-01-21 01:29 ./usr/share/doc/foo/changelog.Debian.gz
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./usr/share/man/
>     drwxr-xr-x root/root         0 2007-01-21 01:30 ./usr/share/man/man1/
>     -rw-r--r-- root/root       810 2007-01-21 01:30 ./usr/share/man/man1/foo.1.gz

> Errors:

>     /usr/sbin/ contains no files, but is was put into *.deb

> SUGGESTION

> Lintian should warn (possibly raise error), for all directories listed in 
> debian/dirs that own no files in the generated *.deb

This check shouldn't be done against debian/dirs, which is an artifact of
one specific packaging system.  It should be done, though, in
checks/files.  It's sometimes correct to ship an empty directory, but not
one of the regular system directories like usr/bin or usr/sbin.  (Shipping
empty directories in /var is quite common, though, and not an error.)

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



Reply to: