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

Re: lintian for Emdebian



Neil Williams <codehelp@debian.org> writes:

> Hmmm, can't find any docs on a "global lintian override file" - where
> would that live and how would it cope with unknown/unbuilt packages?

Ah, hm, we may not have this functionality right now, now that I think
about it.  I think the current override format always requires the package
patch the file name.

We should support a global overrides file or directory.  I'd be happy to
add that functionality, but it does probably require code changes now that
I think about this some more.

> So far, I'm working with:
> Tags::add_override ("source-nmu-has-incorrect-version-number");
> Tags::add_override ("changelog-should-mention-nmu");
> Tags::add_override ("binary-or-shlib-defines-rpath");
> tag "binary-or-shlib-omits-rpath", "$file $RPATH{$file}";
> and others

Good idea and good workaround.

> However, I'm finding it impossible to override the manpage warnings
> without removing all the manpages checks with -X :
>
> Tags::add_override ("binary-without-manpage");
> Tags::add_override ("binary-without-manpage apt-cache");
> Tags::add_override ("apt", "binary-without-manpage apt-cache");
> Tags::add_override ("binary-without-manpage usr/bin/apt-cache");
> Tags::add_override ("apt", "binary-without-manpage usr/bin/apt-cache");
> Tags::add_override ("apt", "binary-without-manpage ./usr/bin/apt-cache");
> Tags::add_override ("binary-without-manpage apt-cache");
>
> Still, I get:
> W: apt: binary-without-manpage usr/bin/apt-cache
> W: apt: binary-without-manpage usr/bin/apt-cdrom
> W: apt: binary-without-manpage usr/bin/apt-config
> W: apt: binary-without-manpage usr/bin/apt-get
> W: apt: binary-without-manpage usr/bin/apt-key
> W: apt: binary-without-manpage usr/bin/apt-mark
> I: apt: unused-override binary-without-manpage
> I: apt: unused-override binary-without-manpage apt-cache
> I: apt: unused-override binary-without-manpage usr/bin/apt-cache
>
> I don't actually need the manpages checks but I would like to not have
> to alias lintian to lintian -X manpages.

Where are you adding the overrides?  Is it possible that the manpage check
script is happening before your overrides are added?

> Is there a way of implementing '-X' within the check scripts? (It would
> save time if I could drop entire scripts like manpages and replace with
> a simple check that /usr/share/man/ is empty).

You could divert the manpages file, but there isn't any way to skip an
entire check from within another check (in part because the order in which
the checks are run is not, I think, fully deterministic, although I could
be wrong -- I think it runs them in glob order).

I think the right approach may be to create a directory
/usr/share/lintian/overrides/global and load all files in that directory
in addition to the regular overrides.

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


Reply to: