Bug#534486: lintian: Warn about .desktop files installed in the wrong directory
Package: lintian
Version: 2.2.12
Severity: wishlist
When packaging games, one needs to give the '--datadir=/usr/share/games' option to configure. This makes it quite easy to also install *.desktop,
*-mime.xml, and icons in the wrong directory (e.g. /usr/share/games/applications instead of /usr/share/applications).
So it would be nice if lintian could check for such files installed in the wrong directory.
It could also suggest using $(datarootdir) rather than $(datadir) in Makefile.am.
Here's an example of error:
drwxr-xr-x root/root 0 2008-12-22 21:50 ./usr/share/games/applications/
-rw-r--r-- root/root 616 2008-12-22 21:50 ./usr/share/games/applications/freedink-dfarc.desktop
drwxr-xr-x root/root 0 2008-12-22 21:50 ./usr/share/games/mime/
drwxr-xr-x root/root 0 2008-12-22 21:50 ./usr/share/games/mime/packages/
-rw-r--r-- root/root 453 2008-12-22 21:50 ./usr/share/games/mime/packages/freedink-mime.xml
drwxr-xr-x root/root 0 2008-12-22 21:50 ./usr/share/games/icons/
drwxr-xr-x root/root 0 2008-12-22 21:50 ./usr/share/games/icons/hicolor/
drwxr-xr-x root/root 0 2008-12-22 21:50 ./usr/share/games/icons/hicolor/32x32/
drwxr-xr-x root/root 0 2008-12-22 21:50 ./usr/share/games/icons/hicolor/32x32/mimetypes/
-rw-r--r-- root/root 617 2008-12-22 21:50 ./usr/share/games/icons/hicolor/32x32/mimetypes/application-x-dmod.png
drwxr-xr-x root/root 0 2008-12-22 21:50 ./usr/share/games/pixmaps/
-rw-r--r-- root/root 617 2008-12-22 21:50 ./usr/share/games/pixmaps/dfarc.png
and when fixed:
drwxr-xr-x root/root 0 2009-06-24 19:01 ./usr/share/applications/
-rw-r--r-- root/root 616 2009-06-24 19:01 ./usr/share/applications/freedink-dfarc.desktop
drwxr-xr-x root/root 0 2009-06-24 19:01 ./usr/share/icons/
drwxr-xr-x root/root 0 2009-06-24 19:01 ./usr/share/icons/hicolor/
drwxr-xr-x root/root 0 2009-06-24 19:01 ./usr/share/icons/hicolor/32x32/
drwxr-xr-x root/root 0 2009-06-24 19:01 ./usr/share/icons/hicolor/32x32/mimetypes/
-rw-r--r-- root/root 617 2009-06-24 19:01 ./usr/share/icons/hicolor/32x32/mimetypes/application-x-dmod.png
drwxr-xr-x root/root 0 2009-06-24 19:01 ./usr/share/mime/
drwxr-xr-x root/root 0 2009-06-24 19:01 ./usr/share/mime/packages/
-rw-r--r-- root/root 453 2009-06-24 19:01 ./usr/share/mime/packages/freedink-mime.xml
drwxr-xr-x root/root 0 2009-06-24 19:01 ./usr/share/pixmaps/
-rw-r--r-- root/root 617 2009-06-24 19:01 ./usr/share/pixmaps/dfarc.png
-rw-r--r-- root/root 1326 2009-06-24 18:54 ./usr/share/pixmaps/dfarc.xpm
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-vserver-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lintian depends on:
ii binutils 2.19.1-1 The GNU assembler, linker and bina
ii diffstat 1.47-1 produces graph of changes introduc
ii dpkg-dev 1.15.2 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 libipc-run-perl 0.82-1 Perl module for running processes
ii libparse-debianchangel 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-2 on-line manual pager
ii perl [libdigest-sha-pe 5.10.0-23 Larry Wall's Practical Extraction
lintian recommends no packages.
Versions of packages lintian suggests:
pn binutils-multiarch <none> (no description available)
pn libtext-template-perl <none> (no description available)
ii man-db 2.5.5-2 on-line manual pager
-- no debconf information
Reply to: