Russ Allbery [Wed, 16 Jun 2010 18:00:04 +0000 (11:00 -0700)]
Significantly rework the discussion of Breaks and Conflicts
Recommend Breaks over Conflicts for most purposes. List the places
Breaks should be used and the places Conflicts should be used. Add
Breaks to the example in Replaces, and add a footnote explaining
why Breaks is normally required along with Replaces when files are
moving between packages. Add additional discussion of conflicting
with a virtual package.
Russ Allbery [Sun, 13 Jun 2010 20:14:43 +0000 (13:14 -0700)]
Tighten requirements for maintainer-like fields
The syntax of Maintainer is a must, not a should. The comma
separator in Uploaders is a must, not a should. Now allow people
to use multi-line Uploaders fields freely. Be explicit that the
Changed-By field has the same syntax as Maintainer and be clearer
about what identity goes here.
Russ Allbery [Sat, 12 Jun 2010 20:26:28 +0000 (13:26 -0700)]
Document Checksums-Sha1 and Checksums-Sha256
Add documentation for the Checksums-Sha1 and Checksums-Sha256 fields
and mark them as recommended for both source and changes files. Also
reorder the field listing in source and changes files to match the
order in which dpkg-dev writes the fields.
Russ Allbery [Sat, 12 Jun 2010 19:57:40 +0000 (12:57 -0700)]
Relax requirement that library development files be in one package
Say instead that installing the library development package must
result in installation of all the required files, which allows for
further splits with appropriate Depends.
Russ Allbery [Sat, 12 Jun 2010 19:32:47 +0000 (12:32 -0700)]
Explicitly allow cgi-bin programs in a subdirectory
The current wording could be read to imply that subdirectories of
/usr/lib/cgi-bin aren't allowed. Explicitly permit installation of
CGI programs in a subdirectory of that directory.
Russ Allbery [Sat, 12 Jun 2010 19:25:02 +0000 (12:25 -0700)]
Clarify the wording about which build dependencies must be satisfied
* Clarify the wording around which build dependencies must be satisfied
for different debian/rules targets and add a footnote to the
description of the build-arch and build-indep targets explaining why
this split does not currently work as desired. (Closes: #328951)
Russ Allbery [Thu, 10 Jun 2010 20:10:26 +0000 (13:10 -0700)]
Do not tell packagers to reference /usr/share/common-licenses/BSD
Remove the University of California BSD license from the list of
licenses that should be represented by references to
/usr/share/common-licenses and explain in the footnote why packages
should copy the license text instead.
Russ Allbery [Wed, 9 Jun 2010 18:34:41 +0000 (11:34 -0700)]
Some additional fixes to the license classification script
Add counts for any version of the GFDL, GPL, or LGPL. Clarify which
version of the LaTeX PPL this is checking. Add a total package count
to the bottom.
Russ Allbery [Wed, 9 Jun 2010 18:25:25 +0000 (11:25 -0700)]
Add a script to count license usage in Debian
Add tools/license-count, which takes the path to a Lintian lab and
counts license usage in Debian using regular expression matches
against the text of the debian/copyright file.
Charles Plessy [Tue, 1 Jun 2010 01:27:39 +0000 (10:27 +0900)]
Specification of date format -- bug #569174.
RFC 822 dates use only two digits for the years, but Debian changelogs
described by this paragraph (§4.4 in Policy 3.8.4) use four digits.
This patch replaces the reference to the RFC 822 by a specification that is
compatible with its successors, RFC 2822 and RFC 5322, but does not use their
full range of options.
Russ Allbery [Fri, 4 Jun 2010 16:43:00 +0000 (09:43 -0700)]
Reletter Process and update HTML style for *.org files
Reletter the process steps to not skip State C and use more
traditional foreground and background colors for Process.html and
README.html. (Closes: #584521)
Russ Allbery [Fri, 4 Jun 2010 16:24:20 +0000 (09:24 -0700)]
Perl: Recommend DESTDIR instead of PREFIX with Makefile.PL
Packages using Makefile.PL should use DESTDIR rather than PREFIX
to install into the package staging area. PREFIX only worked due
to a Debian-local patch.
Russ Allbery [Fri, 4 Jun 2010 05:44:14 +0000 (22:44 -0700)]
Remove footnote listing all known architectures
Remove the footnote listing every architecture known to dpkg. This
list can be trivially produced by dpkg-architecture -L (already
noted), is very long, and quickly becomes out-of-date.
Russ Allbery [Fri, 4 Jun 2010 05:20:44 +0000 (22:20 -0700)]
Move Architecture Wildcards to a subsection
Make Architecture Wildcards a subsection of Architecture specification
strings so that we don't renumber all the subsequent sections (and
because it seems to make slightly more sense).
Russ Allbery [Thu, 3 Jun 2010 17:04:11 +0000 (10:04 -0700)]
Perl Policy: Change perlapi provides to use an ABI version
Perl now provides perlapi-<abiversion> where <abiversion> may be
more than just the version of Perl. Packages must update their
dependencies accordingly, using $Config{debian_abi} to form the
package dependency if set and falling back on $Config{version}
otherwise.
Reorganize and rephrase the description of architecture wildcards
to combine related paragraphs and to ensure consistency of wording
between the source control section and the *.dsc section.
Russ Allbery [Wed, 2 Jun 2010 17:02:43 +0000 (10:02 -0700)]
Document debian-installer section and link to section list
Document the special debian-installer section in the list of current
sections and add a link to the list of sections in unstable, which
contains longer descriptions. (Closes: #577666)
Russ Allbery [Wed, 2 Jun 2010 16:37:39 +0000 (09:37 -0700)]
Remove documentation of alternative changelog formats
Remove documentation of alternative changelog formats. This feature
is not allowed in the Debian archive and will be documented in the
dpkg-dev documentation instead. The documentation that was in Policy
was also somewhat outdated. (Closes: #555009, see #584141)
Russ Allbery [Tue, 1 Jun 2010 22:47:48 +0000 (15:47 -0700)]
Further fixes to the architecture wildcard patch
Based on feedback from Kurt Roeckx. Be explicit about what happens with
*.dsc and *.changes files, reorder the discussion somewhat, and remove
some duplicate text.
Russ Allbery [Tue, 1 Jun 2010 17:40:41 +0000 (10:40 -0700)]
Except init.d scripts from the normal set -e requirement
Mention init.d scripts as a special exception from the normal advise
to always use set -e in all shell scripts, and add a new paragraph to
the section on init.d scripts advising caution in using set -e and
explaining some of the issues.
Russ Allbery [Mon, 31 May 2010 17:11:43 +0000 (10:11 -0700)]
Treat any as just another architecture wildcard
Now that we describe architecture wildcards, any is just another
wildcard. This mostly reverts to the state of Manoj's previous
wording proposal but also updates the list of possible values at
the start of the Architecture section.
Russ Allbery [Mon, 31 May 2010 17:04:17 +0000 (10:04 -0700)]
Additional wording improvements for arch wildcards
Keep the previous wording discussing use of any and all in the
Architecture control field. Try to further clarify how wildcard
matching is done to decide whether a binary package is built on the
current architecture. Explain how the first component of the
Debian architecture triplet is derived.
Bill Allombert [Mon, 25 Jan 2010 20:43:39 +0000 (21:43 +0100)]
Clean up references in upgrading-checklist.
The old upgrading-checklist assumed references were after the message instead
of before. Adjust to reflect that.
Fix /etc/init.d/*SK]* to /etc/init.d/[SK]*.
Manoj Srivastava [Sat, 21 Nov 2009 07:33:13 +0000 (01:33 -0600)]
New virtual package: cron-daemon
Create a virtual cron daemon package that:
- Has to provide /usr/bin/crontab and support crontab entries
- Correct execution of /etc/cron.d
- Correct support of /etc/crontab
- Support of crontab entries with names for days and months,
ranges, step values
- Correct execution of /etc/cron.{hourly,daily,weekly,monthly}
Signed-off-by: Javier Fernández-Sanguino Peña <jfs@computer.org> Signed-off-by: Manoj Srivastava <srivasta@debian.org>
Manoj Srivastava [Sat, 21 Nov 2009 06:32:10 +0000 (00:32 -0600)]
Use the "Failed-Config" state instead of the synonymous halfconfigured
These terms are synonyms. dpkg and dselect use halfconfigured
internally and Failed-config when talking to the user. This patch
ensures that policy uses the same term as dpkg does when talking to
the user ("Failed-Config") for consistency.
Manoj Srivastava [Sat, 21 Nov 2009 06:03:12 +0000 (00:03 -0600)]
Clarify rule for debian/rules shebang line
Explicitly state that "make -f debian/rules" and "./debian/rules"
must behave identically, to prevent confusion, and to promote
reproducibility, and conform to the principle of least surprise.
Signed-off-by: Ben Finney <ben+debian@benfinney.id.au> Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Signed-off-by: Russ Allbery <rra@debian.org> Signed-off-by: Manoj Srivastava <srivasta@debian.org>
Manoj Srivastava [Fri, 20 Nov 2009 18:26:21 +0000 (12:26 -0600)]
[bug556972-srivasta]: Explicitly allow /selinux and /sys as FHS exceptions
1) There are a lot of instances of programs looking things up in
selinuxfs (indirectly through libselinux). Most of these instances
look through /proc/mounts to discover where selinuxfs is mounted,
and thus do not care about the actual location
2) sysvinit (and upstart, if the patch is accepted) load the security
policy for machines where SELinux is enabled, and need to mount
selinuxfs to get details of the state of selinux in the
kernel. Since /proc is not around when this happens, this is the one
place where the distribution default od the selinuxfs mount point is
hard coded.
3) The default for fedora, gentoo, and Debian has been /selinux
4) Lots of people have also setup /etc/fstab to mount selinuxfs on
/selinux
5) there are user scripts that assume they can look into /selinux on
SELinux enabled machines, and this is a lot of things to change
This patch explicitly allows /sys and /selinux as additional
directories int he root file system allowed under the policy.
Russ Allbery [Thu, 12 Nov 2009 21:26:50 +0000 (13:26 -0800)]
Clarify policy on named pipes in packages
Make explicit the requirement that packages not include named pipes in
addition to device files. State that named pipes must be created in
postinst and removed in prerm or postrm as appropriate. Suggest in a
footnote using mkfifo rather than mknod to avoid false positives from
package checkers.