chiark / gitweb /
use changelog date for SGML timestamping, not current date
[developers-reference.git] / developers-reference.sgml
index 867204ba801d38ab22b63f2289df3b1dbe664de6..87d1cfefdaad9c29b99daf7e7b0c395f51c27469 100644 (file)
@@ -7,22 +7,24 @@
 <!--
  TODO:
   - bugs in upstream versions should be reported upstream!
-  - fill in ftp and www server discussion
-  - porter instructions - - volunteers needed for this x86-centric maintainer!
-  - talk about CVS access
+  - add information on how to get accounts on different architectures
+  - talk about CVS access, other ways to submit problems
+  - add information on how you can contribute w/o being an official
+    developer
  -->
 
   <book>
 
       <title>Debian Developer's Reference
-      <author>Adam P. Harris, current maintainer <email/aph@debian.org/
+      <author>Adam Di Carlo, current maintainer <email/aph@debian.org/
       <author>Christian Schwarz <email/schwarz@debian.org/
       <author>Ian Jackson <email/ijackson@gnu.ai.mit.edu/
-      <version>version &version;, &date;
+      <version>ver. &version;, &date;
 
       <copyright>
-Copyright &copy;1998 Adam P. Harris.  Copyright &copy;1997,1998
-Christian Schwarz.
+       <copyrightsummary><!-- this tag not working right -->
+copyright &copy;1998 Adam Di Carlo, &copy;1997,1998
+Christian Schwarz</copyrightsummary>
        <p>
 This manual is free software; you may redistribute it and/or modify it
 under the terms of the GNU General Public License as published by the
@@ -46,9 +48,10 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     <chapt id="scope">Scope of This Document
       <p>
 The purpose of this document is to provide an overview of the
-processes and resources used by Debian developers.
+recommended procedures and the available resources for Debian
+developers.
       <p>
-The processes discussed within include how to become a maintainer
+The procedures discussed within include how to become a maintainer
 (<ref id="new-maintainer">); how to upload new packages (<ref
 id="upload">); how and when to do interim releases of other
 maintainer's packages (<ref id="nmu">); how to move, remove, or orphan
@@ -62,15 +65,14 @@ servers which accept package uploads (<ref id="upload-master">); and a
 discussion of resources which an help maintainers with the quality of
 their packages (<ref id="tools">).
       <p>
-It should be clear that this reference does not discuss the details of
-the Debian package or how to generate Debian packages; that is
-discussed in the <url
+It should be clear that this reference does not discuss the technical
+details of the Debian package nor how to generate Debian packages;
+that information is discussed in the <url
 id="http://www.debian.org/doc/packaging-manuals/packaging.html/"
-name="Debian Packaging Manual">.  Nor is this reference intended to
-give details on standards for how Debian software must behave, which
-is documented in the <url
-id="http://www.debian.org/doc/debian-policy/" name="Debian Policy
-Manual">.
+name="Debian Packaging Manual">.  Nor does this reference detail the
+standards to which Debian software must comply; that information can
+be found in the <url id="http://www.debian.org/doc/debian-policy/"
+name="Debian Policy Manual">.
 
 
     <chapt id="new-maintainer">Applying to Become a Maintainer
@@ -85,7 +87,7 @@ the Project?
        <p>
 Firstly, subscribe to <email/debian-devel@lists.debian.org/ if you
 haven't already.  Send the word <tt/subscribe/ in the <em/Subject/ of
-a mail to <email/debian-devel-REQUEST@lists.debian.org/.  In case of
+an email to <email/debian-devel-REQUEST@lists.debian.org/.  In case of
 problems, contact the list administrator at
 <email/listmaster@lists.debian.org/.  More information on available
 mailing lists can be found in <ref id="mailing-lists">.
@@ -127,13 +129,17 @@ application:
 Your name.
            <item>
 Your preferred login name on <tt/master/ (seven characters or
-less<footnote>Can anyone clarify for me why logins on <tt>master</tt>
-cannot be eight characters?</footnote> ), as well as the email address
-at which you'd prefer to be subscribed to
+less<footnote>It is not clear to the author why logins on
+<tt>master</tt> cannot be eight characters or greater.  If anyone can
+clarify why, I would appreciate it.</footnote>), as well as the email
+address at which you'd prefer to be subscribed to
 <email/debian-private@lists.debian.org/ (typically this will be either
 your primary mail address or your new <tt>debian.org</tt> address).
            <item>
-A phone number where we can call you.
+A phone number where we can call you.  Remember that the new
+maintainer team usually calls during evening hours to save on long
+distance tolls.  Please do not give a work number, unless you are
+generally there in the evening.
            <item>
 A statement of intention, that is, what package(s) you intend to work
 on, which Debian port you will be assisting, or how you intend to
@@ -149,9 +155,9 @@ example, any of the following mechanisms would suffice:
                  <item>
 A PGP key signed by any well-known signature, such as:
 <list>
-                 <item>
+                       <item>
 Any current Debian developer you have met <em/in real life/.
-                 <item>
+                       <item>
 Any formal certification service (such as Verisign, etc.) that
 verifies your identity.  A certification that verifies your email
 address, and not you identity, is not sufficient.
@@ -163,17 +169,23 @@ a birth certificate, national ID card, U.S. Driver's License, etc.).
 If emailed, please sign the mail with your PGP key.
                </list>
          </list>
+       <p>
 If you do not have a PGP key yet, generate one. Every developer needs
 a PGP key in order to sign and verify package uploads. You should read
 the PGP manual, since it has much important information which is
 critical to its security.  Many more security failures are due to
 human error than to software failure or high-powered spy techniques.
        <p>
+Our standard is to use <prgn>pgp</prgn> version 2.x.  You can use
+<prgn/pgp/ version 5, if and only if you make an RSA key.  Note that
+we are also working with the <prgn/gpg/ team so that we can have a
+free alternative to PGP; however, this may take a little bit of time.
+       <p>
 Your PGP key must be at least 1024 bits long.  There is no reason to
 use a smaller key, and doing so would be much less secure.  Your key
 must be signed with at least your own user ID.  This prevents user ID
-tampering.  You can do it by executing `<tt>pgp -ks
-<var/your_userid/</tt>'.
+tampering.  You can do it by executing <tt>pgp -ks
+<var/your_userid/</tt>.
        <p>
 If your PGP key isn't on public PGP key servers such as
 <tt>pgp.net</tt>, please read the documentation available locally
@@ -199,31 +211,33 @@ Once you have all your information ready, and your public key is
 available on public key servers, send a message to
 <email/new-maintainer@debian.org/ to register as an offical Debian
 developer so that you will be able to upload your packages.  This
-message must all the information discussed above.  The message must
-also contain your PGP or RSA public key (extracted using <tt>pgp
--kxa</tt> in the case of PGP; note that <tt/gpg/ integration is
-underway) for the database of keys which is distributed from
-<ftpsite/ftp.debian.org/ in
+message must contain all the information discussed above.  The message
+must also contain your PGP or RSA public key (extracted using <tt>pgp
+-kxa</tt> in the case of PGP) for the database of keys which is
+distributed from <ftpsite/ftp.debian.org/ in
 <ftppath>/pub/debian/doc/debian-keyring.tar.gz</ftppath>, or the
-<package/debian-keyring/ package).  Please be sure to sign your
+<package/debian-keyring/ package.  Please be sure to sign your
 request message with your chosen PGP or RSA key.
        <p>
 Once this information is received and processed, you should be
 contacted with information about your new Debian maintainer account.
-If you don't hear anything within 7-14 days, please re-send your
-original message--the new-maintainer volunteers are typically
-overworked, and mistakes do occasionally happen.
+If you don't hear anything within 7-14 days, please send a followup
+message asking if your original application was received.  Do not
+re-send your original application, that will just confuse the
+new-maintainer team. Please be patient, especially near release
+points; mistakes do occasionally happen, and people do sometimes run
+out of volunteer time.
 
 
       <sect id="mentors">Debian Mentors
        <p>
-There is a mailing list called <email/debian-mentors@lists.debian.org/
-which has been set up for novice maintainers who seek help with
-initial packaging and other developer-related issues.  Every new
-developer is invited to subscribe to that list (see <ref
-id="mailing-lists"> for details).
+A mailing list called <email/debian-mentors@lists.debian.org/ which
+has been set up for novice maintainers who seek help with initial
+packaging and other developer-related issues.  Every new developer is
+invited to subscribe to that list (see <ref id="mailing-lists"> for
+details).
        <p>
-Those who prefer one-on-one help (e.g., via private emails) should
+Those who prefer one-on-one help (e.g., via private email) should
 also post to that list and an experienced developer will volunteer to
 help.
 
@@ -235,19 +249,18 @@ help.
 The mailing list server is at <tt/lists.debian.org/.  Mail
 <tt/debian-<var/foo/-REQUEST@lists.debian.org/, where
 <tt/debian-<var/foo// is the name of the list, with the word
-<tt/subscribe/ in the <em/Subject/ to subscribe or <tt/unsubscribe/ to
-unsubscribe.  More detailed instructions on how to subscribe and
-unsubscribe to the mailing lists can be found at <url
+<tt/subscribe/ in the <em/Subject/ to subscribe to the list or
+<tt/unsubscribe/ to unsubscribe.  More detailed instructions on how to
+subscribe and unsubscribe to the mailing lists can be found at <url
 id="http://www.debian.org/MailingLists/subscribe">, <url
 id="ftp://ftp.debian.org/debian/doc/mailing-lists.txt"> or locally in
 <tt>/usr/doc/debian/mailing-lists.txt</tt> if you have the
 <package>doc-debian</package> package installed.
        <p>
-When replying to messages on the mailing list, please do not send
-a carbon copy (<tt/CC/--this does not mean `courtesy copy') to
-the original poster unless they explicitly request that this be
-done.  Anyone who posts to a mailing list should read it to see the
-responses.
+When replying to messages on the mailing list, please do not send a
+carbon copy (<tt/CC/) to the original poster unless they explicitly
+request to be copied.  Anyone who posts to a mailing list should read
+it to see the responses.
        <p>
 In addition, all messages should usually only be sent to one of the
 following mailing lists: <email/debian-devel@lists.debian.org/,
@@ -275,19 +288,96 @@ Online archives of mailing lists are available at <url
 id="http://www.debian.org/Lists-Archives/">.
 
 
-      <sect>The master server
-       <p>
-The master server, <tt/master.debian.org/, holds the cannonical copy
-of the Debian archive (excluding the non-U.S. packages).  Generally,
-package uploads go to this server; cf. <ref id="upload">.  All Debian
-developers have accounts on this machine.
-
-      <sect>The FTP servers
-       <p>
-
-      <sect>The WWW servers
-       <p>
-
+      <sect id="servers-master">The master server
+       <p>
+The master server, <tt/master.debian.org/, holds the canonical copy
+of the Debian archive (excluding the non-U.S. packages). Generally,
+package uploads go to this server; see <ref id="upload">. 
+       <p>
+<tt/master.debian.org/ is the canonical location for the Bug Tracking
+System (BTS).  If you plan on doing some statistical analysis or
+processing of Debian bugs, this would be the place to do it.  Please
+describe your plans on <email/debian-devel@lists.debian.org/ before
+implementing anything, however, to reduce unnecessary duplication of
+effort or wasted processing time.
+       <p>
+All Debian developers have accounts on <tt/master.debian.org/.  Please
+take care to protect your password to this machine.  Try to avoid
+login or upload methods which send passwords over the Internet in the
+clear.
+       <p>
+If you find a problem with <tt/master.debian.org/ such as disk full,
+suspicious activity, or whatever, send an email to
+<email>debian-admin@debian.org</email>.
+
+      <sect id="servers-ftp">The FTP servers
+       <p>
+
+      <sect id="servers-www">The WWW servers
+       <p>
+The main web server, <tt/www.debian.org/, is also known as
+<tt/va.debian.org/.  All developers are given accounts on this
+machine.
+       <p>
+If you have some Debian-specific information which you want to serve
+up on the web, you can do do this by putting material in the
+<tt>public_html</tt> directory under your home directory.  You can do
+this on either <tt/va.debian.org/ or <tt/master.debian.org/.  Any
+material you put in those areas are accessible via the URLs
+<tt>http://www.debian.org/~<var>user-id</var>/</tt> and
+<tt>http://master.debian.org/~<var>user-id</var>/</tt>, respectively.
+Generally, you'll want to use <tt/va/, for the <tt/www.debian.org/
+address, although in some cases you may need to put it on <tt/master/.
+Please do not put any material on Debian servers not relating to
+Debian, unless you have prior permission. Send mail to
+<email/debian-devel@lists.debian.org/ if you have any questions.
+       <p>
+If you find a problem with the Debian web server, you should generally
+submit a bug against the pseudo-package,
+<package>www.debian.org</package>.  First check whether or not someone
+else has already reported the problem on the <url
+id="http://www.debian.org/Bugs/db/pa/lwww.debian.org.html" name="Bug
+Tracking System">.
+
+      <sect id="servers-cvs">The CVS server
+       <p>
+<tt/cvs.debian.org/ is also known as <tt/va.debian.org/, discussed
+above.  If you need the use of a publically accessible CVS server, for
+instance, to help coordinate work on a package between many different
+developers, you can request a CVS area on the server.  Generally,
+<tt/cvs.debian.org/ offers a combination of local CVS access,
+anonymous client-server read-only access, and full client-server
+access through <prgn>ssh</prgn>.
+       <p>
+To request a CVS area, send a request via email to
+<email>debian-admin@debian.org</email>.
+
+
+      <sect id="servers-mirrors">Mirrors of Debian servers
+       <p>
+The web and FTP servers have several mirrors available.  Please do not
+put heavy load on the canonical FTP or web servers.  Ideally, the
+canonical servers only mirror out to a first tier of mirrors, and all
+user access is to the mirrors.  This allows Debian to better spread
+its bandwidth requirements over several servers and networks.  Note
+that newer push mirroring techniques ensure that mirrors are as
+up-to-date as they can be.
+       <p>
+The main web page listing the available public FTP (and, usually,
+HTTP) servers can be found at <url
+id="http://www.debian.org/distrib/ftplist">.  More information
+concerning Debian mirrors can be found at <url
+id="http://www.debian.org/mirror">.  This useful page includes
+information and tools which can be helpful if you are interested in
+setting up your own mirror, either for internal or public access.
+       <p>
+Note that mirrors are generally run by third-parties who are
+interested in helping Debian.  As such, developers generally do not
+have accounts on these machines.
+       <p>
+Please do not mirror off of <tt/master.debian.org/.  This host already
+has too much load.  Check the sites above for information, or email
+<email/debian-devel@lists.debian.org/.
 
     <chapt id="archive">The Debian Archive
 
@@ -298,6 +388,7 @@ The Debian GNU/Linux distribution consists of a lot of Debian packages
 (documentation, installation disk images, etc.).
        <p>
 Here is an example directory tree of a complete Debian distribution:
+       <p>
 <example>
 main/
 main/binary-all/
@@ -310,9 +401,9 @@ main/binary-i386/
 main/binary-i386/admin/
 main/binary-i386/base/
      ...
-main/binary-m86k
-main/binary-m86k/admin/
-main/binary-m86k/base/
+main/binary-m68k
+main/binary-m68k/admin/
+main/binary-m68k/base/
      ...
 main/source/
 main/source/admin/
@@ -325,14 +416,14 @@ main/disks-m68k/
 contrib/
 contrib/binary-all/
 contrib/binary-i386/
-contrib/binary-m86k/
+contrib/binary-m68k/
      ...
 contrib/source/
 
 non-free/
 non-free/binary-all/
 non-free/binary-i386/
-non-free/binary-m86k/
+non-free/binary-m68k/
          ...
 non-free/source/
 </example>
@@ -342,14 +433,14 @@ three directories, namely <em>main</>, <em>contrib</>, and
 <em>non-free</>. These directories are called <em>sections</>.
        <p>
 In each section, there is a directory with the source packages
-(source), a directory for each supported architecture (binary-i386,
-binary-m86k, etc.), and a directory for architecture independent
-packages (binary-all).
+(source), a directory for each supported architecture
+(<tt/binary-i386/, <tt/binary-m68k/, etc.), and a directory for
+architecture independent packages (<tt/binary-all/).
        <p>
 The <em/main/ section contains additional directories which holds the
 disk images and some essential pieces of documentation required for
 installing the Debian distribution on a specific architecture
-(disks-i386, disks-m68k, etc.).
+(<tt/disks-i386/, <tt/disks-m68k/, etc.).
        <p>
 The <em/binary/ and <em/source/ directories are divided further into
 <em/subsections/.
@@ -358,17 +449,20 @@ The <em/binary/ and <em/source/ directories are divided further into
       <sect>Sections
        <p>
 The <em>main</em> section is what makes up the <em>official Debian
-GNU/Linux distribution</>. This is because the packages in the other
-two sections do not fully comply with all our guidelines.  As such,
-they are not officially part of Debian.
-       <p>
-For example, every package in the main section must fully comply
-with the <url id="http://www.debian.org/social_contract#guidelines"
-name="Debian Free Software Guidelines"> (DFSG) and with all other
-policy requirements as described in the <url
-id="http://www.debian.org/doc/debian-policy/" name="Debian Policy
-Manual">. (The DFSG is our definition of ``free software.'' Check out
-the Debian Policy Manual for details.)
+GNU/Linux distribution</>.  The <em/main/ section is official because
+it fully complies with all our guidelines.  The other two sections do
+not, to different degrees; as such, they are not officially part of
+Debian.
+       <p>
+Every package in the main section must fully comply with the <!-- work
+around quoting of fragment idendifiers bug <url
+id="http://www.debian.org/social_contract#guidelines" name="Debian
+Free Software Guidelines"> --> <url
+id="http://www.debian.org/social_contract" name="Debian Free Software
+Guidelines"> (DFSG) and with all other policy requirements as
+described in the <url id="http://www.debian.org/doc/debian-policy/"
+name="Debian Policy Manual">.  The DFSG is our definition of ``free
+software.'' Check out the Debian Policy Manual for details.
        <p>
 The packages which do not apply to the DFSG are placed in the
 <em/non-free/ section. These packages are not considered as part of
@@ -376,13 +470,13 @@ the Debian distribution, though we support their use, and we provide
 infrastructure (such as our bug-tracking system and mailing lists) for
 non-free software packages.
        <p>
-Packages in the <em/contrib/ section have to apply to the DFSG, but
-fail other requirements.  For instance, they might depend on non-free
-packages.
+Packages in the <em/contrib/ section have to comply with the DFSG, but
+may fail other requirements.  For instance, they may depend on
+non-free packages.
        <p>
-(The <url id="http://www.debian.org/doc/debian-policy/" name="Debian
+The <url id="http://www.debian.org/doc/debian-policy/" name="Debian
 Policy Manual"> contains a more exact definition of the three
-sections. The above discussion is just an introduction.)
+sections. The above discussion is just an introduction.
        <p>
 The separation of the three sections at the top-level of the archive
 is important for all people who want to distribute Debian, either via
@@ -404,26 +498,33 @@ i386 (or greater) platforms, and so was Debian. But when Linux became
 more and more popular, the kernel was ported to other architectures,
 too.
        <p>
-The Linux 2.0 kernel supports Intel, DEC Alphas, SUN Sparcs, M68000
-(a.k.a. m68k) machines (like Atari and Amiga), MIPS, and PowerPC
-(a.k.a. ppc).
+The Linux 2.0 kernel supports Intel x86, DEC Alpha, Sparc, M68000
+machines (like Atari and Amiga), MIPS, and PowerPC.  Newer kernels
+support more architectures, including ARM, UltraSparc, and MIPS.
+Since Linux supports these platforms, Debian decided that it should,
+too.  Therefore, Debian has ports underway.  Aside from <em>i386</em>
+(our name for Intel x86), there is <em>m68k</em>, <em>alpha</em>,
+<em>ppc</em>, <em>sparc</em>, <em>hurd-i386</em>, and <em>arm</em> as
+of this writing.
+
        <p>
-Debian GNU/Linux 1.3 is only available for Intel platforms.  Debian
-2.0 supports Intel and m68k architectures.  The next version of Debian
-is likely to also support Alpha, PPC, and Sparc architectures, if not
-more.
+Debian GNU/Linux 1.3 is only available as <em>i386</em>.  Debian 2.0
+supports <em>i386</em> and <em>m68k</em> architectures.  The next
+version of Debian is likely to support <em>i386</em>, <em>m68k</em>,
+<em>alpha</em>, and possibly <em>ppc</em> and <em>sparc</em>
+architectures.
 
 
       <sect>Subsections
        <p>
 The sections <em/main/, <em/contrib/, and <em/non-free/ are split into
 <em/subsections/ to simplify the installation process and the
-maintainance of the archive.  Subections are not formally defined,
-excepting perhaps for the "base" subsection.  Subsections exist simply
-to simpilfy the organization and browsing of available packages.
+maintainance of the archive.  Subsections are not formally defined,
+excepting perhaps the `base' subsection.  Subsections exist simply
+to simplify the organization and browsing of available packages.
 Please check the current Debian distribution to see which sections are
 available.
-
+<p>
 
 
       <sect>Packages
@@ -432,18 +533,17 @@ There are two types of Debian packages, namely <em/source/ and
 <em/binary/ packages.
        <p>
 Source packages consist of either two or three files: a <tt/.dsc/
-file, and either one <tt/.tar.gz/ file or an <tt/.orig.tar.gz/ and a
-<tt/.diff.gz/ file.
+file, and either a <tt/.tar.gz/ file or both an <tt/.orig.tar.gz/ and
+<tt/.diff.gz/ file.
        <p>
 If a package is developed specially for Debian and is not distributed
 outside of Debian, there is just one <tt/.tar.gz/ file which contains
-the sources of the program.
-       <p>
-If a package is distributed elsewhere too, the <tt/.orig.tar.gz/ file
-stores the so-called <em/upstream source code/, that is the source
-code that's distributed from the <em/upstream maintainer/ (often the
-author of the software). In this case, the <tt/.diff.gz/ contains the
-changes made by the Debian maintainer.
+the sources of the program.  If a package is distributed elsewhere
+too, the <tt/.orig.tar.gz/ file stores the so-called <em/upstream
+source code/, that is the source code that's distributed from the
+<em/upstream maintainer/ (often the author of the software). In this
+case, the <tt/.diff.gz/ contains the changes made by the Debian
+maintainer.
        <p>
 The <tt/.dsc/ lists all the files in the source package together with
 checksums (md5sums) and some additional info about the package
@@ -452,28 +552,43 @@ checksums (md5sums) and some additional info about the package
 
       <sect>Distribution directories
        <p>
-If you have a look at the Debian FTP server or one of its mirrors,
-you'll discover that there is one additional directory level on top of
-the directory tree, as described in the previous chapter. These
-directories are the <em/distribution directories/.  All distributions
-are contained in the <tt/dists/ directory in the top-level of the
-Debian archive (the symlinks from the top-level directory to the
-distributions themselves is for backwards compatability and
+The directory system described in the previous chapter, are themselves
+contained within <em/distribution directories/.  Every distribution is
+contained in the <tt/dists/ directory in the top-level of the Debian
+archive itself (the symlinks from the top-level directory to the
+distributions themselves are for backwards compatability and are
 deprecated).
+       <p>
+To summarize, the Debian archive has a root directory within an FTP
+server.  For instance, at the mirror site,
+<ftpsite>ftp.us.debian.org</ftpsite>, the Debian archive itself is
+contained in <ftppath>/debian</ftppath>, which is a common location
+(another is <ftppath>/pub/debian</ftppath>).
+       <p>
+Within that archive root, the actual distributions are contained in
+the <tt/dists/ directory.  Here is an overview of the layout:
+       <p>
+<example>
+<var>archive root</var>/dists/<var>distribution</var>/<var>section</var>/<var>architecture</var>/<var>subsection</var>/<var>packages</var>
+</example>
+
+Extrapolating from this layout, you know that to find the i386 base
+packages for the distribution <em/slink/, you would look in
+<ftppath>/debian/dists/slink/main/binary-i386/base/</ftppath>.
 
        <sect1>Stable, unstable, and sometimes frozen
        <p>
 There is always a distribution called <em/stable/ (residing in
 <tt>dists/stable</tt>) and one called <em/unstable/ (residing in
-<tt>dists/unstable</tt>. This reflects the development process of the
+<tt>dists/unstable</tt>). This reflects the development process of the
 Debian project.
        <p>
-The ``development'' is done in the <em/unstable/ distribution (that's
+Active development is done in the <em/unstable/ distribution (that's
 why this distribution is sometimes called the <em/development
-distribution/). Every Debian developer can update his or her packages in
-this distribution at any time. Thus, the contents of this distribution
-change from day to day and since no special effort is done to test
-this distribution it's sometimes ``unstable.''
+distribution/). Every Debian developer can update his or her packages
+in this distribution at any time. Thus, the contents of this
+distribution change from day-to-day. Since no special effort is done
+to test this distribution, it is sometimes ``unstable.''
        <p>
 After a period of development, the <em/unstable/ distribution is
 copied in a new distribution directory, called <em/frozen/. When that
@@ -485,8 +600,8 @@ time.
        <p>
 This development cycle is based on the assumption that the
 <em/unstable/ distribution becomes <em/stable/ after passing a period
-of testing as <em/frozen/. Unfortunately, even once a distribution is
-considered stable, a few bugs inevitably remain--that's why the stable
+of testing as <em/frozen/.  Even once a distribution is considered
+stable, a few bugs inevitably remain--that's why the stable
 distribution is updated every now and then. However, these updates are
 tested very carefully and have to be introduced into the archive
 individually to reduce the risk of introducing new bugs.  You can find
@@ -496,9 +611,13 @@ are periodically moved as a batch into the stable distribution and the
 revision level of the stable distribution is incremented (e.g., `1.3'
 becomes `1.3r1', `2.0r2' becomes `2.0r3', and so forth).
        <p>
-Note that development is continued during the ``freeze'' period, since
-a new <em/unstable/ distribution is be created when the older
-<em/unstable/ is moved to <em/frozen/.
+Note that development under <em/unstable/ is continued during the
+``freeze'' period, since a new <em/unstable/ distribution is be
+created when the older <em/unstable/ is moved to <em/frozen/.
+Another wrinkle is that when the <em/frozen/ distribution is offically 
+released, the old stable distribution is completely removed from the
+Debian archives (although you can still find it from servers which
+serve up older, obsolete distributions).
        <p>
 In summary, there is always a <em/stable/ and an <em/unstable/
 distribution available, and the <em/frozen/ distribution shows up for
@@ -508,7 +627,7 @@ a month or so from time to time.
        <sect1>Experimental
          <p>
 The <em/experimental/ distribution is a specialty distribution.  It is
-not a full distribution in the same sense that 'stable' and 'unstable'
+not a full distribution in the same sense that `stable' and `unstable'
 are.  Instead, it is meant to be a temporary staging area for highly
 experimental software where there's a good chance that the software
 could break your system.  Users who download and install packages from
@@ -532,37 +651,37 @@ your system can go into <em/unstable/.
       <sect id="codenames">Release code names
        <p>
 Every released Debian distribution has a <em/code name/: Debian 1.1 is
-called <em/buzz/; Debian 1.2, <em/rex/; Debian 1.3, <em/bo/; Debian
-2.0, <em/hamm/; Debian 2.1, <em/slink/.  There is also a
-"pseudo-distribution", called <em/sid/, which is contains packages for
-architectures which are not yet officially supported or released by
-Debian.  These architectures are planned to be integrated into the
-mainstream distribution at some future date.
+called `buzz'; Debian 1.2, `rex'; Debian 1.3, `bo'; Debian 2.0,
+`hamm'; Debian 2.1, `slink'; and Debian 2.2, `potato'.  There is
+also a ``pseudo-distribution'', called `sid' which is contains
+packages for architectures which are not yet officially supported or
+released by Debian.  These architectures are planned to be integrated
+into the mainstream distribution at some future date.
        <p>
 Since the Debian has an open development model (i.e., everyone can
-participate and follow the development) even the ``development
-versions'' (unstable) are distributed via the Internet on the Debian
-FTP server. This FTP server is mirrored by lots of other
-systems. Thus, if we'd call the directory which contains the
-development version simply `unstable', then we would have to rename it
+participate and follow the development) even the unstable distribution
+is distributed via the Internet on the Debian FTP and HTTP server
+network. Thus, if we had called the directory which contains the
+development version `unstable', then we would have to rename it
 to `stable' when the version is released, which would cause all FTP
-mirrors to re-get the whole distribution (which is already very
+mirrors to re-retrieve the whole distribution (which is already very
 large!).
        <p>
-On the other hand, if we would call the distribution directories
+On the other hand, if we called the distribution directories
 <em>Debian-x.y</em> from the beginning, people would think that Debian
 release <em>x.y</> is available. (This happened in the past, where a
 CD-ROM vendor built a Debian 1.0 CD-ROM based on a pre-1.0 development
 version. That's the reason why the first official Debian release was
 1.1, and not 1.0.)
        <p>
-Thus, the names of the distribution directories in the archive should
-stay the same during the development period and after the release but
-there may be symbolic links, which can be changed.
-       <p>
-That's why the distribution directories use the <em/code names/ and
-there are symbolic links <em/stable/, <em/unstable/, <em/frozen/,
-etc., which point to the appriopriate release directories.
+Thus, the names of the distribution directories in the archive are
+determined by their code names and not their release status (i.e.,
+`slink').  These names stay the same during the development period
+and after the release; symbolic links, which can be changed, are made
+to indicate the currently released stable distribution.  That's why
+the real distribution directories use the <em/code names/ and symbolic
+links for <em/stable/, <em/unstable/, and <em/frozen/ point to the
+appropriate release directories.
 
 
     <chapt id="upload">Package uploads
@@ -572,50 +691,38 @@ etc., which point to the appriopriate release directories.
 If you want to create a new package for the Debian distribution, you
 should first check the <url
 id="http://www.debian.org/doc/prospective-packages.html"
-name="Work-Needing and Prospective Packages (WNPP)"> page.  Checking
+name="Work-Needing and Prospective Packages (WNPP)"> list.  Checking
 the WNPP ensures that no one is already working on packaging that
 software, and that effort is not duplicated. Assuming no one else is
 already working on your prospective package, you must then send a
 short email to <email/debian-devel@lists.debian.org/ describing your
 plan to create a new package.  You should set the subject of the email
-to "intent to package <var/foobar/", substituting the name of the new
+to ``intent to package <var/foobar/'', substituting the name of the new
 package for <var/foobar/.
        <p>
 There are a number of reasons why we ask maintainers to follow these
-steps.
+steps:
          <list compact>
            <item>
 It helps the (potentially new) maintainer to tap into the experience
 of people on the list, and lets them know if any one else is working
 on it already.
-
            <item>
 It lets other people thinking about working on the package know that
-there already is a volunteer, and efforts may be shared.  The "intent
-to package" message to <email/debian-devel@lists.debian.org/ will be
+there already is a volunteer, and efforts may be shared.  The ``intent
+to package'' message to <email/debian-devel@lists.debian.org/ will be
 picked up the the WNPP maintainer, and your intention will be
 published in subsequent versions of the WNPP document.
-
            <item>
 It lets the rest of the maintainers know more about the package than
-the one line description and the changelog entry "Initial version"
+the one line description and the changelog entry ``Initial version''
 that generally gets posted to <tt/debian-devel-changes/ by default.
-
            <item>
 It is helpful to the people who live off unstable (and form our first
 line of testers); we should encourage these people.
-
            <item>
 The announcements give maintainers and other interested parties a
 better feel of what is going on, and what is new, in the project.
-
-
-           <item>
-We should not dismiss anybody who installs from unstable and helps us
-debug our packages as "fools, fools, you installed from unstable; you
-deserve what you get"--we derive a certain benefit from the alpha
-testers.
-
          </list>
 
 
@@ -624,10 +731,12 @@ testers.
        <sect1>Generating the changes file
          <p>
 When a package is uploaded to the Debian FTP archive, it must be
-accompanied by a <tt/.changes/ file which gives directions for its
-handling.  This is usually generated by <prgn/dpkg-genchanges/.
+accompanied by a <tt/.changes/ file, which gives directions to the
+archive maintainers for its handling.  This is usually generated by
+<prgn/dpkg-genchanges/ during the normal package build process.
+         <p>
+The changes file is a control file with the following fields:
          <p>
-This file is a control file with the following fields:
 <list compact>
              <item><tt/Format/
              <item><tt/Date/
@@ -643,27 +752,31 @@ This file is a control file with the following fields:
              <item><tt/Files/
            </list>
          <p>
-All of them are mandatory for a Debian upload.  See the list of
-control fields in the <url
+All of these fields are mandatory for a Debian upload.  See the list
+of control fields in the <url
 id="http://www.debian.org/doc/packaging-manuals/packaging.html/"
 name="Debian Packaging Manual"> for the contents of these fields.
+Only the <tt/Distribution/ field is discussed here, since it relates
+to the archive maintenance policies.
+
+       <sect1 id="upload-dist">Picking a distribution
          <p>
 Notably, the <tt/Distribution/ field, which originates from the
-<tt>debian/changelog</tt> file, should indicate which distribution the
+<tt>debian/changelog</tt> file, indicates which distribution the
 package is intended for.  There are four possible values for this
-field: <em/stable/, <em/unstable/, <em/frozen/, or <em/experimental/;
-these values can also be combined.  For instance, if you have a
-crucial security fix release of a package, and the package has not
-diverged between the <em/stable/ and <em/unstable/ distributions, then
-you might put <tt/stable unstable/ in the <tt>debian/changelog</tt>'s
-distribution field.  Or, if Debian has been frozen, and you want to
-get a bug-fix release into <em/frozen/, you would set the distribution
-to <tt/frozen unstable/.  Note that setting the distribution to
-<tt/stable/ means that the pacakge will be placed into the
-<tt>proposed-updates</tt> directory of the Debian archive for further
-testing, before it is actually included in <em/stable/.  Also note
-that it never makes sense to combine the <em/experimental/
-distribution with anything else.
+field: `stable', `unstable', `frozen', or `experimental'; these values
+can also be combined.  For instance, if you have a crucial security
+fix release of a package, and the package has not diverged between the
+<em/stable/ and <em/unstable/ distributions, then you might put
+`stable unstable' in the <tt>changelog</tt>'s <tt/Distribution/ field.
+Or, if Debian has been frozen, and you want to get a bug-fix release
+into <em/frozen/, you would set the distribution to `frozen unstable'.
+(See <ref id="upload-frozen"> for more information on when to upload to
+<em/frozen/.)  Note that setting the distribution to `stable' means
+that the package will be placed into the <tt>proposed-updates</tt>
+directory of the Debian archive for further testing before it is
+actually included in <em/stable/.  Also note that it never makes sense
+to combine the <em/experimental/ distribution with anything else.
          <p>
 The first time a version is uploaded which corresponds to a particular
 upstream version the original source tar file should be uploaded and
@@ -685,6 +798,45 @@ identical with the one already in the archive.  If there is some
 reason why this is not the case then the new version of the original
 source should be uploaded, possibly by using the <tt/-sa/ flag.
 
+         <sect2 id="upload-frozen">Uploading to <em/frozen/
+           <p>
+The Debian freeze is a crucial time for Debian.  It is our chance to
+synchronize and stabilize our distribution as a whole.  Therefore,
+care must be taken when uploading to <em/frozen/.
+           <p>
+It is tempting to always try to get the newest release of software
+into the release.  However, it's much more important that the system
+as a whole is stable and works as expected.
+           <p>
+The watchword for uploading to <em/frozen/ is <strong>no new
+code</strong>.  This is a difficult thing to quantify, so here are
+some guidelines:
+           <p>
+<list>
+               <item>
+Fixes for bugs of severity <em/critical/, <em/grave/, or
+<em/important/ severity are always allowed for those packages that
+must exist in the final release
+               <item>
+<em/critical/, <em/grave/, and <em/important/ bug fixes are only
+allowed for non-necessary packages if they don't add any new features
+               <item>
+normal bug fixes are allowed (though discouraged) on all packages if
+and only if there are no new features
+               <item>
+wishlist fixes are not allowed (they are, after all, not really bugs)
+               <item>
+documentation bug fixes are allowed, since good documentation is
+important
+             </list>
+           <p>
+Remember, there is statistically a 15% chance that every bug fix will
+introduce a new bug.  The introduction and discovery of new bugs
+either delays release or weakens the final product.  There is little
+correlation between the severity of the original bug and the severity
+of the introduced bug.
+
+
 
        <sect1 id="upload-checking">Checking the package prior to upload
          <p>
@@ -696,7 +848,6 @@ older version of the Debian package around).
 Install the package and make sure the software works, or upgrade the
 package from an older version to your new version if a Debian package
 for it already exists.
-
              <item>
 Run <prgn/lintian/ over the package.  You can run <prgn/lintian/ as
 follows: <tt>lintian -v <var>package-NN</var>.changes</tt>. This will
@@ -712,31 +863,32 @@ For more information on <prgn/lintian/, see <ref id="lintian">.
              <item>
 Downgrade the package to the previous version (if one exists) -- this
 tests the <tt/postrm/ and <tt/prerm/ scripts.
-
              <item>
 Remove the package, then reinstall it.
-
            </list>
 
 
-       <sect1 id="upload-master">Transferring the files to master
+       <sect1 id="upload-master">Uploading to <tt/master/
          <p>
 To upload a package, you need a personal account on
 <ftpsite>master.debian.org</ftpsite>.  All maintainers should already
-have this account.  You can use either <prgn/ssh/ or <prgn/ftp/ to
-transfer the files.  In either case, the files need to be placed into
+have this account, see <ref id="servers-master">.  You can use either
+<prgn/ssh/ or <prgn/ftp/ to transfer the files.  In either case, the
+files need to be placed into
 <ftppath>/home/Debian/ftp/private/project/Incoming</ftppath>.  (You
-cannot upload to Incoming on master using anonymous FTP -- you must use
-your username and password.)
+cannot upload to Incoming on master using anonymous FTP -- you must
+use your user-name and password.)
           <p>
 <em/Note:/ Do not upload packages containing software that is
-export-controlled by the United States government to <tt/master/.
-This includes almost all cryptographic software, and even software
-that contains "hooks" to cryptographic software, such as electronic
-mail readers that support PGP encryption and authentication.  Uploads
-of such software should go to <tt/non-us/ (see below).  If you are
-not sure whether U.S. export controls apply to your package, post a
-message to <email/debian-devel@lists.debian.org/ and ask.
+export-controlled by the United States government to <tt/master/, or
+to the overseas upload queues on <tt/chiark/ or <tt/erlangen/.  This
+prohibition covers almost all cryptographic software, and even
+sometimes software that contains ``hooks'' to cryptographic software,
+such as electronic mail readers that support PGP encryption and
+authentication.  Uploads of such software should go to <tt/non-us/
+(see below).  If you are not sure whether U.S. export controls apply
+to your package, post a message to
+<email/debian-devel@lists.debian.org/ and ask.
          <p>
 You may also find the Debian package <package/dupload/ useful when
 uploading packages.  This handy program is distributed with defaults
@@ -746,41 +898,51 @@ for uploading via <prgn/ftp/ to <tt/master/, <tt/chiark/, and
 section="5"> for more information.
 
 
-       <sect1>Uploads via Chiark
+       <sect1>Uploads via <tt/chiark/
          <p>
-If you have a slow network connection to <tt/master/, there are two
-alternatives: You can upload files to Incoming via a cron-driven
-upload queue in Europe on <tt/chiark/. For details connect to
-<ftpsite>ftp.chiark.greenend.org.uk</ftpsite> using anonymous FTP and
-read
+If you have a slow network connection to <tt/master/, there are
+alternatives.  One is to upload files to <tt/Incoming/ via a
+cron-driven upload queue in Europe on <tt/chiark/. For details connect
+to <ftpsite>ftp.chiark.greenend.org.uk</ftpsite> using anonymous FTP
+and read
 <ftppath>/pub/debian/private/project/README.how-to-upload</ftppath>.
          <p>
-The program <tt/dupload/ supports uploads to chiark, please refer to
-the documentation that comes with the program for details.
+<em/Note:/ Do not upload packages containing software that is
+export-controlled by the United States government to the queue on
+<tt/chiark/.  Since this upload queue goes to <tt/master/, the
+prescription found in <ref id="upload-master"> applies here as well.
+         <p>
+The program <tt/dupload/ supports uploads to <tt/chiark/; please refer
+to the documentation that comes with the program for details.
 
 
-       <sect1>Uploads via Erlangen
+       <sect1>Uploads via <tt/erlangen/
          <p>
 Another cron-driven upload queue is available in Germany: just upload
 the files via anonymous FTP to <url
 id="ftp://ftp.uni-erlangen.de/pub/Linux/debian/UploadQueue">.
          <p>
 The upload must be a complete Debian upload, as you would put it into
-master's <tt/Incoming/, i.e., a <tt/.changes/ files along with the
+<tt/master/'s <tt/Incoming/, i.e., a <tt/.changes/ files along with the
 other files mentioned in the <tt/.changes/. The queue daemon also
 checks that the <tt/.changes/ is correctly PGP-signed by a Debian
-developer, so that no bogus files can find their way to master via the
-queue. Please also make sure that the <tt/Maintainer:/ field in the
-<tt/.changes/ contains <em/your/ e-mail address. The address found
-there is used for all replies, just as on master.
+developer, so that no bogus files can find their way to <tt/master/
+via the queue. Please also make sure that the <tt/Maintainer/ field
+in the <tt/.changes/ contains <em/your/ e-mail address. The address
+found there is used for all replies, just as on <tt/master/.
          <p>
 There's no need to move your files into a second directory after the
-upload as on chiark. And, in any case, you should get some mail reply
-from the queue daemon what happened to your upload. Hopefully it
-should have been moved to master, but in case of errors you're
+upload as on <tt/chiark/. And, in any case, you should get some mail
+reply from the queue daemon what happened to your upload. Hopefully it
+should have been moved to <tt/master/, but in case of errors you're
 notified, too.
          <p>
-The program <prgn/dupload/ supports uploads to erlangen, please refer
+<em/Note:/ Do not upload packages containing software that is
+export-controlled by the United States government to the queue on
+<tt/erlangen/.  Since this upload queue goes to <tt/master/, the
+prescription found in <ref id="upload-master"> applies here as well.
+         <p>
+The program <prgn/dupload/ supports uploads to <tt/erlangen/; please refer
 to the documentation that comes with the program for details.
 
 
@@ -793,34 +955,32 @@ the <tt>.changes</tt> file must have a valid PGP signature from one of
 the keys of the developers key-ring.
 
 
-      <sect>Announcing package uploads
+      <sect id="upload-announce">Announcing package uploads
        <p>
 When a package is uploaded an announcement should be posted to one of
-the debian-changes lists. The announcement should give the (source)
+the ``debian-changes'' lists. The announcement should give the (source)
 package name and version number, and a very short summary of the
 changes, in the <em/Subject/ field, and should contain the PGP-signed
 <tt/.changes/ file.  Some additional explanatory text may be added
 before the start of the <tt/.changes/ file.
        <p>
 If a package is released with the <tt/Distribution:/ set to
-<tt/stable/, the announcement is sent to
-<email/debian-changes@lists.debian.org/.
-        <p>
-If a package is released with <tt/Distribution:/ set to <tt/unstable/,
-<tt/experimental/, or <tt/frozen/ (when present), the announcement
-should be posted to <email/debian-devel-changes@lists.debian.org/
-instead.
-       <p>
-On occasion, it is necessary to upload a package to both the <tt/stable/
-and <tt/unstable/ distributions; this is done by putting both distributions
-in the <tt/Distribution:/ line.  In such a case the upload announcement
-should go to both of the above mailing lists.
+`stable', the announcement is sent to
+<email/debian-changes@lists.debian.org/.  If a package is released
+with <tt/Distribution:/ set to `unstable', `experimental', or
+`frozen' (when present), the announcement should be posted to
+<email/debian-devel-changes@lists.debian.org/ instead.
+       <p>
+On occasion, it is necessary to upload a package to both the
+<em/stable/ and <em/unstable/ distributions; this is done by putting
+both distributions in the <tt/Distribution:/ line.  In such a case the
+upload announcement should go to both of the above mailing lists.
        <p>
 The <prgn/dupload/ program is clever enough to determine for itself
 where the announcement should go, and will automatically mail the
-announcement.  See <ref id="dupload">.
+announcement to the right list.  See <ref id="dupload">.
 
-      <sect>Notification that a new package has been installed
+      <sect id="upload-notification">Notification that a new package has been installed
        <p>
 The Debian archive maintainers are responsible for handling package
 uploads.  For the most part, uploads are automatically handled on a
@@ -833,21 +993,56 @@ archive may take up to a week to occur (please be patient).
        <p>
 In any case, you will receive notification indicating that the package
 has been uploaded via email.  Please examine this notification
-carefully.  Sometimes the "override" file which the archive
-maintainers use to indicate where packages go, is incorrect or
-out-of-sync with your control file.  In these cases, you should either
-correct your control file or file a bug against <tt/ftp.debian.org/
-using the BTS.
+carefully.  You may notice that the package didn't go into the section
+you thought you set it to go into.  Read on for why.
 
-      <sect id="nmu">Interim releases
-       <p>
+       <sect1 id="override-file">The override file
+         <p>
+The <tt>debian/control</tt> file's <tt/Section/ and <tt/Priority/
+fields do not actually specify where the file will be placed in the
+archive, nor its priority.  In order to retain the overall integrity
+of the archive, it is the archive maintainers who have control over
+these fields.  The values in the <tt>debian/control</tt> file are
+actually just hints.
+         <p>
+The archive maintainers keep track of the cannonical sections and
+priorities for packages in the <em/override file/.  Sometimes the
+<em/override file/ needs correcting.  Simply changing the pacakge's
+<tt>control</tt> file is not going to work.  Instead, you should email
+<email/override-change@debian.org/ or submit a bug against
+<package/ftp.debian.org/.
+         <p>
+For more information about <em/override files/, see
+<manref name="dpkg-scanpackages" section="8"/>,
+<tt>/usr/doc/debian/bug-log-mailserver.txt</tt>, and
+<tt>/usr/doc/debian/bug-maint-info.txt</tt>.
+
+
+
+    <chapt id="nmu">Non-Maintainer Uploads (NMUs) and Porters
+
+       <p>
 Under certain circumstances it is necessary for someone other than the
-usual package maintainer to make a release of a package.  For example,
-a porter for another architecture may have to make some small changes
-to the source package and does not wish to wait with uploading their
-release until the main maintainer has incorporated the patch, or a
-serious security problem or bug may have come to light requiring
-immediate attention.
+usual package maintainer to make a release of a package.  This is
+called a non-maintainer upload, or NMU.
+       <p>
+Debian porters, who compile packages for different architectures, do
+binary NMUs as part of their normal porting activity.  Sometimes,
+Debian developers do NMUs in order to fix a serious security problem
+or a crippling bug, especially when the package maintainer is unable
+to release a fix in a timely fashion.
+       <p>
+This chapter contains information providing guidelines for when and
+how NMUs should be done.
+
+
+<sect id="nmu-who">Who can do an NMU
+       <p>
+Only an official Debian developers can do an NMU.
+<!-- TODO: link to section talking about how non-maintainers can still
+            contribute -->
+
+<sect id="nmu-when">When to do an NMU
        <p>
 When a security bug is detected a fixed package should be uploaded as
 soon as possible. In this case, the Debian Security Managers should
@@ -857,34 +1052,117 @@ the package maintainer cannot provide a fixed package fast enough or
 if he/she cannot be reached in time, the Security Manager may upload a
 fixed package.
        <p>
-When someone other than the usual maintainer releases a package they
-should add a new component to the <var/debian-revision/ component of
-the version number--that is, the portion after the (last) hyphen.
-This extra component will start at <tt/1/.  This is to avoid
-`stealing' one of the usual maintainer's version numbers, possibly
-disrupting their work.  If there is no <var/debian-revision/ component
-in the version number then one should be created, starting at <tt/1/.
+During the release freeze (see <ref id="upload-frozen">), NMUs which
+fix important or higher severity bugs are encouraged and accepted.
+Even during this window, however, you should endeavor to reach the
+current maintainer of the package; they might be just about to upload
+a fix for the problem.
+       <p>
+Bug fixes to unstable by non-maintainers are also acceptable, but only
+as a last resort.  Try the following steps first, and if they don't
+work, it is ok to do an NMU:
        <p>
+<list>
+       <item>
+Make sure that the package bug is in the Debian BTS.  If not, submit a
+bug.
+       <item>
+Email the maintainer, and offer to help fix the package bug.  Give it a 
+few days.
+       <item>
+Go ahead and fix the bug, submitting a patch to the right bug in
+the Bug Tracking System.
+       <item>
+Wait a couple of weeks for a response.
+        <item>
+Email the maintainer, asking if it is ok to do an NMU.
+        <item>
+Wait a couple of weeks for a response.
+        <item>
+Double check that your patch doesn't have any unexpected side effects.
+Build the package and test it as discussed in <ref id="upload-checking">.
+      </list>
+
+      <sect1>When to do an NMU if you are a porter
+       <p>
+Porters who have to patch the source package in order to get the 
+package to compile need to follow these steps as well, although their 
+window of time that they should wait is smaller, since they deal with
+a high quantity of packages.
+       <p>
+Again, the situation will vary depending on the distribution they are
+uploading to.  Crucial fixes (i.e., changes need to get a source package
+to compile) can be uploaded with <em/no/ waiting period for the `frozen'
+distribution.
+       <p>
+However, if you are a porter doing an NMU for `unstable', the above
+guidelines for porting should be followed, with one variation.
+If you need to alter the source of a package in order to get a 
+released port of Debian to compile, the bug you submit to the BTS
+should be of severity `important' or greater.  This ensures that a 
+single source package can be used to compile every supported Debian
+architecture.
+       <p>
+An acceptable waiting period -- the time between when the bug is 
+submitted to the BTS and when it is ok to do an NMU -- is ten days 
+for porters working on the unstable distribution.
+       <p>
+Try to avoid patches which simply kluge around bugs in the current
+version of the compile environment, kernel, or libc.  Sometimes
+that can't be helped.  If you have to kluge around compilers bugs and
+the like, make sure you <tt>#ifdef</tt> your work properly; also,
+document your kluge so that people know to remove it once the external
+problems have been fixed.
+       <p>
+Porters may also have an unofficial location where they can put the results
+of their work during the waiting period.  This helps others running
+the port have the benefit of the porter's work, even during the waiting
+period.
+
+
+<sect id="nmu-guidelines">How to do an NMU
+       <p>
+When someone other than the usual maintainer releases a package they
+should add a new minor version number to the <var/debian-revision/ part of
+the version number (the portion after the last hyphen).
+This extra minor number will start at `1'.  For example, consider
+the package `foo', which is at version 1.1-3.  In the archive, the source
+package control file would be <tt>foo_1.1-3.dsc</tt>.  The upstream 
+version is `1.1' and the Debian revision is `3'.  The next NMU would
+add a new minor number `.1' to the Debian revision; the new source
+control file would be <tt>foo_1.1-3.1.dsc</tt>.
+       <p>
+The Debian revision minor number is needed to avoid
+`stealing' one of the package maintainer's version numbers, which might
+disrupt their work.  It also has the benefit of making it visually 
+clear that a package in the archive was made by an NMU.
+       <p>
+If there is no <var/debian-revision/ component
+in the version number then one should be created, starting at `0.1'.
 If it is absolutely necessary for someone other than the usual
 maintainer to make a release based on a new upstream version then the
 person making the release should start with the <var/debian-revision/
-value <tt/0.1/.  The usual maintainer of a package should start their
-<var/debian-revision/ numbering at <tt/1/.
+value `0.1'.  The usual maintainer of a package should start their
+<var/debian-revision/ numbering at `1'.  Note that if you do this,
+you'll have to invoke <prgn>dpkg-buildpackage</prgn> with the <tt/-sa/
+switch to force the build system to pick up the new source package
+(normally it only looks for Debian revisions of '0' or '1').
        <p>
+<!-- HERE -->
 Maintainers other than the usual package maintainer should make as few
 changes to the package as possible, and they should always send a
 unified context diff (<tt/diff -u/) detailing their changes to the bug
-tracking system properly flagged with the correct package so that the
+tracking system.   properly flagged with the correct package so that the
 usual maintainer is kept aware of the situation.
        <p>
-If the non-maintainer upload (as known as an "NMU") fixes some
+If the non-maintainer upload (as known as an ``NMU'') fixes some
 existing bugs, the bug reports should not be closed.  Technically,
 only the official package maintainer or the original bug submitter are
 allowed to close bugs. However, the person making the non-maintainer
 release should send a short message to the bug tracking system to all
 the fixed bugs explaining that they have been fixed.  Using
 <email/control@bugs.debian.org/, the party doing the NMU should also
-set the severity of the bugs fixed in the NMU to "fixed".  This
+set the severity of the bugs fixed in the NMU to `fixed'.  This
 ensures that everyone knows that the bug was fixed in an NMU; however
 the bug is left open until the changes in the NMU are incorporated
 "officially" into the package by the official package maintainer.
@@ -906,29 +1184,7 @@ In addition, the normal maintainer should <em/always/ include an entry
 in the changelog file documenting the non-maintainer upload.
 
 
-      <sect>Maintainer changes
-       <p>
-Periodically, a listing of packages in need of new maintainers will be
-sent to <email/debian-devel@lists.debian.org</email> list. This list
-is also available at in the Work-Needing and Prospective Packages
-document (WNPP), <url
-id="ftp://ftp.debian.org/debian/doc/package-developer/prospective-packages.html">
-and at <url id="http://www.debian.org/doc/prospective-packages.html">.
-If you wish to take over maintenance of any of the packages listed in
-the WNPP, or if you can no longer maintain a packages you have, or you
-simply want to know if any one is working on a new package, send a
-message to <email/wnpp@debian.org/.
-
-       <p>
-If you take over an old package, you probably want to be listed as the
-package's official maintainer in the bug system. This will happen
-automatically once you upload a new version with an updated
-<tt/Maintainer:/ field. If you do not expect to upload a new version
-for a while, send an email to <email/override-change@debian.org/ so
-that bug reports will go to you.
-
-
-    <chapt id="archive-manip">Moving, Removing, Renaming, and Orphaning Packages
+    <chapt id="archive-manip">Moving, Removing, Renaming, Adopting, and Orphaning Packages
       <p>
 Some archive manipulation operation are not automated in the Debian
 upload process.  This chapter gives guidelines in what to do in these
@@ -979,6 +1235,7 @@ against <tt/ftp.debian.org/ asking to remove the package with the
 obsolete name.
 
 
+
       <sect>Orphaning a package
        <p>
 If you can no longer maintain a package, then you should set the
@@ -990,6 +1247,30 @@ email <email/debian-devel@lists.debian.org/ asking for a new
 maintainer.
 
 
+      <sect>Adopting a package
+       <p>
+Periodically, a listing of packages in need of new maintainers will be
+sent to <email/debian-devel@lists.debian.org</email> list. This list
+is also available at in the Work-Needing and Prospective Packages
+document (WNPP), <url
+id="ftp://ftp.debian.org/debian/doc/package-developer/prospective-packages.html">
+and at <url id="http://www.debian.org/doc/prospective-packages.html">.
+If you wish to take over maintenance of any of the packages listed in
+the WNPP, or if you can no longer maintain a packages you have, or you
+simply want to know if any one is working on a new package, send a
+message to <email/wnpp@debian.org/.
+
+       <p>
+If you take over an old package, you probably want to be listed as the
+package's official maintainer in the bug system. This will happen
+automatically once you upload a new version with an updated
+<tt/Maintainer:/ field. If you do not expect to upload a new version
+for a while, send an email to <email/override-change@debian.org/ so
+that bug reports will go to you.
+
+
+
+
     <chapt id="bug-handling">Handling Bug Reports
 
       <sect>Monitoring bugs
@@ -1011,7 +1292,7 @@ BTS instructions can tell you how to do this.  Make sure the bug is
 not already filed against a package.  Try to do a good job reporting a
 bug and redirecting it to the proper location.  For extra credit, you
 can go through other packages, merging bugs which are reported more
-than once, or setting bug severities to "fixed" when they have already
+than once, or setting bug severities to `fixed'when they have already
 been fixed.  Note that when you are neither the bug submitter nor the
 package maintainer, you are not empowered to actually close the bug
 (unless you secure permission from the maintainer).
@@ -1027,7 +1308,7 @@ notification that your updated package has been installed into the
 archive, you can and should close the bug in the BTS.
        <p>
 Again, see the BTS documentation for details on how to do this.
-Often, it's sufficient to mail the <tt/.changes file to
+Often, it is sufficient to mail the <tt/.changes file to
 <email/<var/XXX/-done@bugs.debian.org/, where <var/XXX/ is your bug
 number.