Re: Bug#109642: debhelper: Simplify inclusion of lintian overrides

2006-01-22 Thread Raphael Hertzog
On Sat, 21 Jan 2006, Russ Allbery wrote:
  But IMHO, debian/package.lintian-overrides should automatically be
  installed in /usr/share/lintian/overrides/package by one of the dh_*
  script (maybe dh_lintian could be folded into a generic dh_ script?).
 
 Please make it just package.lintian; the directory listing of the debian
 directory is bad enough as is without adding more extra-wide filenames.

I was proposing this name in consistency with the filename needed by
lintian for source overrides which is source.lintian-overrides
according to the doc.

Howewer lintian could be changed to accept both the short and the long
version.

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/



Re: Bug#109642: debhelper: Simplify inclusion of lintian overrides

2006-01-21 Thread Russ Allbery
Raphael Hertzog [EMAIL PROTECTED] writes:

 Package: debhelper
 Version: 5.0.16
 Followup-For: Bug #109642

 I'm ccing the current maintainers of lintian so that they can give their
 opinion on this bug.

 Given the opinions voiced in this bug log here's what I suggest :

 Overrides should only be placed with care, that's right, that doesn't
 mean we shouldn't make it easy. Instead we should warn the maintainer
 that the override is meant as a temporay measure until lintian is fixed.

Er, well, except there are places where an override is simply needed and
probably will be needed indefinitely.  Examples from packages I maintain:

krb5-kdc: non-standard-dir-perm

Yes, that's the directory that contains the server's keys, and it
should indeed be mode 700.

krb5-user: setuid-binary

Yup, that's the whole point of ksu.

libkrb53: package-name-doesnt-match-sonames

And if it ever changes SONAMEs, we'll fix this, but changing the
package name of a Priority: standard package just to make the package
name match the SONAME isn't a particularly great idea.  :)

openafs-client: postinst-uses-db-input

In order to figure out whether we need to prompt or not, we have to
check if the local cell is already configured in the standard
CellServDB file, which we don't have access to until after the package
is installed.  Ugly, but I don't see a better alternative.

Another excellent example is a case where the man pages for a package are
in a different package that the first depends on, which is a long-standing
known limitation of lintian that probably won't be fixed (at least any
time soon).

I'm fairly careful about making sure that all my packages are
lintian-clean, and the above overrides are not just temporarily
workarounds for broken lintian checks.  They deal with cases where it
would be very hard for lintian to have enough information to understand
that this isn't the place for that diagnostic.

It's certainly not that difficult to install lintian overrides manually,
but I must admit I would like to see a debhelper tool to make it simpler
and more like the other control files of the package.

 Maybe the dh_lintian script should systematically print a prominent
 warning in the build log asking the maintainer to check wether the
 lintian override is still needed ?

Ew.

 But IMHO, debian/package.lintian-overrides should automatically be
 installed in /usr/share/lintian/overrides/package by one of the dh_*
 script (maybe dh_lintian could be folded into a generic dh_ script?).

Please make it just package.lintian; the directory listing of the debian
directory is bad enough as is without adding more extra-wide filenames.

-- 
Russ Allbery ([EMAIL PROTECTED])   http://www.eyrie.org/~eagle/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]