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/



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]



Bug#109642: debhelper: Simplify inclusion of lintian overrides

2006-01-20 Thread Raphael Hertzog
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.

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 ?

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?).

Cheers,

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-10-386
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages debhelper depends on:
ii  binutils 2.16.1cvs20051214-1 The GNU assembler, linker and bina
ii  coreutils [fileutils 5.93-5  The GNU core utilities
ii  debconf-utils1.4.67  debconf utilities
ii  dpkg-dev 1.13.11.1   package building tools for Debian
ii  file 4.15-2  Determines file type using magic
ii  html2text1.3.2a-3An advanced HTML to text converter
ii  perl 5.8.7-10Larry Wall's Practical Extraction 
ii  po-debconf   0.9.2   manage translated Debconf template

debhelper recommends no packages.

-- no debconf information


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