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

Re: Bug#398658: lintian: Please detect unconditional use of some nonessential pkgs during purge



Justin Pryzby <justinpryzby@users.sourceforge.net> writes:

> Please detect the unconditional use of debconf, adduser, update-inetd,
> etc inside "purge" conditional or case, or at the top of a script,
> before conditionals or cases.

"etc." is going to be read as if it wasn't present unless someone spells
it out for me, I'm afraid.  I don't know what is supposed to go into
"etc." that is causing problems in practice.  If anyone has a specific
list of additional programs for which this is a problem, appending them to
the lintian bug would be nice.  (Bug#398658)

> Please also detect this:
>> 
>>    . /usr/share/debconf/confmodule || true

>> They should really use 
>> 
>>    f=/usr/share/debconf/confmodule
>>    [ ! -e $f ] || . $f;

Please don't combine multiple issues in a single bug report.  (Although
you already reported this a while back as Bug#376183.)

These and several other requests for lintian (such as Bug#397785) are
currently not being worked on largely because lintian does not have good
facilities for doing complex analysis of maintainer scripts and most of
these requests ideally require a fair amount of state tracking and context
awareness to avoid false positives and false negatives.  Any suggestions
and (ideally) contributions towards solving this would be greatly
appreciated.  I'm starting to think that in order to do a good job with
these sorts of problems, lintian is going to have to acquire at least a
minimalist understanding of Bourne shell syntax so that it can do lexical
analysis of maintainer scripts.

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



Reply to: