Bug#555977: debian-policy: Constraints on binary package control files
Package: debian-policy
Version: 3.8.3.0
Severity: wishlist
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.
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
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
debian-policy depends on no packages.
debian-policy recommends no packages.
Versions of packages debian-policy suggests:
ii doc-base 0.9.5 utilities to manage online documen
-- no debconf information
Reply to: