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

Bug#555977: debian-policy: Constraints on binary package control files



On Thu, Nov 12, 2009 at 04:17:33PM -0800, Russ Allbery wrote:
> Lintian has several checks for the control files included in a binary
> package, but so far as I can tell, there is no general discussion in
> Policy right now about these files or any restrictions on them.  This
> seems like something that should be discussed in Policy.  The Lintian
> tags which are used for rejects by ftpmaster are:

> Tag: not-allowed-control-file
> Severity: serious
> Certainty: certain
> Info: The package contains a control file that is not allowed in this
>  type of package. Some control files are only allowed in either .deb
>  or .udeb packages and must not be included in packages of the other
>  type. You should probably just remove the file.

> (This triggers on inclusion of an insinstallable or menutest control file
> in a non-udeb package.)

> Tag: control-file-has-bad-permissions
> Severity: serious
> Certainty: certain
> Info: The <tt>config</tt>, <tt>postinst</tt>, <tt>postrm</tt>,
>  <tt>preinst</tt>, and <tt>prerm</tt> control files should use mode 0755;
>  all other control files should use 0644.

> Tag: control-file-has-bad-owner
> Severity: serious
> Certainty: certain
> Info: All control files should be owned by root/root.

I agree that these should be covered by policy, and will be happy to second
language that spells this out.

> In addition, Lintian also warns if a control file is empty or if it's not
> one of the known set of control files, which at present is:

>     clilibs config control conffiles md5sums postinst preinst postrm
>     prerm shlibs symbols templates triggers

I think it's appropriate for lintian to warn about unknown files since this
may point to a misspelling or other error, but I don't think there's
anything about this that belongs in Policy except where individual control
files will have their syntax and/or usage defined there.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature


Reply to: