chiark / gitweb /
<chapt id="scope">Scope of This Document -- typo correction
[developers-reference.git] / developers-reference.sgml
1 <!doctype debiandoc system [
2 <!-- include version information so we don't have to hard code it
3      within the document -->
4 <!entity % versiondata SYSTEM "version.ent"> %versiondata;
5 <!entity number-of-pkgs "2250">
6 <!entity number-of-maintainers "400">
7 ]>
8 <debiandoc>
9 <!--
10  TODO:
11   - bugs in upstream versions should be reported upstream!
12   - add information on how to get accounts on different architectures
13   - talk about CVS access, other ways to submit problems
14   - add information on how you can contribute w/o being an official
15     developer
16   - "official port maintainer" ? (cf. glibc-pre2.1)
17  -->
18
19   <book>
20
21       <title>Debian Developer's Reference
22       <author>Adam Di Carlo, current maintainer <email/aph@debian.org/
23       <author>Christian Schwarz <email/schwarz@debian.org/
24       <author>Ian Jackson <email/ijackson@gnu.ai.mit.edu/
25       <version>ver. &version;, &date;
26
27       <copyright>
28         <copyrightsummary>
29 copyright &copy;1998, 1999 Adam Di Carlo</copyrightsummary>
30         <copyrightsummary>
31 copyright &copy;1997, 1998 Christian Schwarz</copyrightsummary>
32         <p>
33 This manual is free software; you may redistribute it and/or modify it
34 under the terms of the GNU General Public License as published by the
35 Free Software Foundation; either version 2, or (at your option) any
36 later version.
37         <p>
38 This is distributed in the hope that it will be useful, but
39 <em>without any warranty</em>; without even the implied warranty of
40 merchantability or fitness for a particular purpose.  See the GNU
41 General Public License for more details.
42         <p>
43 A copy of the GNU General Public License is available as
44 <file>/usr/doc/copyright/GPL</file> in the Debian GNU/Linux distribution
45 or on the World Wide Web at <url
46 id="http://www.gnu.org/copyleft/gpl.html" name="the GNU website">.
47 You can also obtain it by writing to the Free Software Foundation,
48 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
49
50     <toc detail="sect2">
51
52     <chapt id="scope">Scope of This Document
53       <p>
54 The purpose of this document is to provide an overview of the
55 recommended procedures and the available resources for Debian
56 developers.
57       <p>
58 The procedures discussed within include how to become a maintainer
59 (<ref id="new-maintainer">); how to upload new packages (<ref
60 id="upload">); how and when to do ports and interim releases of other
61 maintainers' packages (<ref id="nmu">); how to move, remove, or orphan
62 packages (<ref id="archive-manip">); and how to handle bug reports
63 (<ref id="bug-handling">).
64       <p>
65 The resources discussed in this reference include the mailing lists
66 and servers (<ref id="servers">); a discussion of the structure of the
67 Debian archive (<ref id="archive">); explanation of the different
68 servers which accept package uploads (<ref id="upload-master">); and a
69 discussion of resources which can help maintainers with the quality of
70 their packages (<ref id="tools">).
71       <p>
72 It should be clear that this reference does not discuss the technical
73 details of the Debian package nor how to generate Debian packages;
74 that information is discussed in the <url
75 id="http://www.debian.org/doc/packaging-manuals/packaging.html/"
76 name="Debian Packaging Manual">.  Nor does this reference detail the
77 standards to which Debian software must comply; that information can
78 be found in the <url id="http://www.debian.org/doc/debian-policy/"
79 name="Debian Policy Manual">.
80       <p>
81 Furthermore, this document is <em>not an expression of formal
82 policy</em>.  It contains documentation for the Debian system, and
83 generally agreed-upon best practices.
84
85
86     <chapt id="new-maintainer">Applying to Become a Maintainer
87         
88       <sect>Getting started
89         <p>
90 So, you've read all the documentation, you understand what everything
91 in the <package/hello/ example package is for, and you're about to
92 Debianize your favourite piece of software.  How do you actually
93 become a Debian developer so that your work can be incorporated into
94 the Project?
95         <p>
96 Firstly, subscribe to <email/debian-devel@lists.debian.org/ if you
97 haven't already.  Send the word <tt/subscribe/ in the <em/Subject/ of
98 an email to <email/debian-devel-REQUEST@lists.debian.org/.  In case of
99 problems, contact the list administrator at
100 <email/listmaster@lists.debian.org/.  More information on available
101 mailing lists can be found in <ref id="mailing-lists">.
102         <p>
103 You should subscribe and lurk for a bit before doing any coding, and
104 you should post about your intentions to work on something to avoid
105 duplicated effort.
106         <p>
107 Another good list to subscribe to is
108 <email/debian-mentors@lists.debian.org/.  See <ref id="mentors"> for
109 details.  The IRC channel <tt/#debian/ on the Linux People IRC network 
110 (i.e., <tt/irc.debian.org/) can also be helpful.
111
112
113       <sect id="registering">Registering as a Debian developer
114         <p>
115 Before you decide to register with the Debian Project, you will need
116 to read the <url id="http://www.debian.org/social_contract"
117 name="Debian Social Contract">.  Registering as a developer means that
118 you agree with and pledge to uphold the Debian Social Contract; it is
119 very important that maintainers are in accord with the essential ideas
120 behind Debian GNU/Linux.  Reading the <url
121 id="http://www.gnu.org/gnu/manifesto.html" name="GNU Manifesto"> would
122 also be a good idea.
123         <p>
124 The process of registering as a developer is a process of verifying
125 your identity and intentions.  As the number of people working on
126 Debian GNU/Linux has grown to over &number-of-maintainers; people and
127 our systems are used in several very important places we have to be
128 careful about being compromised.  Therefore, we need to verify new
129 maintainers before we can give them accounts on our servers and
130 letting them upload packages.
131         <p>
132 Registration requires that the following information be sent to
133 <email/new-maintainer@debian.org/ as part of the registration
134 application:
135 <list>
136             <item>
137 Your name.
138             <item>
139 Your preferred login name on <tt/master/ (seven characters or
140 less<footnote>It is not clear to the author why logins on
141 <tt>master</tt> cannot be eight characters or greater.  If anyone can
142 clarify why, I would appreciate it.</footnote>), as well as the email
143 address at which you'd prefer to be subscribed to
144 <email/debian-private@lists.debian.org/ (typically this will be either
145 your primary mail address or your new <tt>debian.org</tt> address).
146             <item>
147 A phone number where we can call you.  Remember that the new
148 maintainer team usually calls during evening hours to save on long
149 distance tolls.  Please do not give a work number, unless you are
150 generally there in the evening.
151             <item>
152 A statement of intention, that is, what package(s) you intend to work
153 on, which Debian port you will be assisting, or how you intend to
154 contribute to Debian.
155             <item>
156 A statement that you have read and agree to uphold the <url
157 id="http://www.debian.org/social_contract" name="Debian Social
158 Contract">.
159             <item>
160 Some mechanism by which we can verify your real-life identity. For
161 example, any of the following mechanisms would suffice:
162 <list>
163                   <item>
164 A PGP key signed by any well-known signature, such as:
165 <list>
166                         <item>
167 Any current Debian developer you have met <em/in real life/.
168                         <item>
169 Any formal certification service (such as Verisign, etc.) that
170 verifies your identity.  A certification that verifies your email
171 address, and not you identity, is not sufficient.
172                       </list>
173                   <item>
174 Alternatively, you may identify yourself with a scanned (or physically
175 mailed) copy of any formal documents certifying your identity (such as
176 a birth certificate, national ID card, U.S. Driver's License, etc.).
177 If emailed, please sign the mail with your PGP key.
178                 </list>
179           </list>
180         <p>
181 If you do not have a PGP key yet, generate one. Every developer needs
182 a PGP key in order to sign and verify package uploads. You should read
183 the PGP manual, since it has much important information which is
184 critical to its security.  Many more security failures are due to
185 human error than to software failure or high-powered spy techniques.
186         <p>
187 Our standard is to use <prgn>pgp</prgn> version 2.x.  You can use
188 <prgn/pgp/ version 5, if and only if you make an RSA key.  Note that
189 we are also working with the <prgn/gpg/ team so that we can have a
190 free alternative to PGP; however, this may take a little bit of time.
191         <p>
192 Your PGP key must be at least 1024 bits long.  There is no reason to
193 use a smaller key, and doing so would be much less secure.  Your key
194 must be signed with at least your own user ID.  This prevents user ID
195 tampering.  You can do it by executing <tt>pgp -ks
196 <var>your_userid</var></tt>.
197         <p>
198 If your PGP key isn't on public key servers such as
199 <tt>pgp5.ai.mit.edu</tt>, please read the documentation available
200 locally <tt>/usr/doc/pgp/keyserv.doc</tt>.  That document contains
201 instructions on how to put your key on the public key servers.  The
202 New Maintainer Group will put your public key on the servers if it
203 isn't already there.
204         <p>
205 Due to export restrictions by the United States government some Debian
206 packages, including PGP, have been moved to an ftp site outside of the
207 United States. You can find the current locations of those packages on
208 <ftpsite/ftp.debian.org/ or <ftpsite/ftp.us.debian.org/ in the
209 <ftppath>/pub/debian/README.non-US</ftppath> file.
210         <p>
211 Some countries restrict the use of cryptographic software by their
212 citizens.  This need not impede one's activities as a Debian package
213 maintainer however, as it may be perfectly legal to use cryptographic
214 products for authentication, rather than encryption purposes (as is
215 the case in France).  The Debian Project does not require the use of
216 cryptography <em/qua/ cryptography in any manner.  If you live in a
217 country where use of cryptography even for authentication is forbidden
218 then please contact us so we can make special arrangements.
219         <p>
220 Once you have all your information ready, and your public key is
221 available on public key servers, send a message to
222 <email/new-maintainer@debian.org/ to register as an offical Debian
223 developer so that you will be able to upload your packages.  This
224 message must contain all the information discussed above.  The message
225 must also contain your PGP or RSA public key (extracted using <tt>pgp
226 -kxa</tt> in the case of PGP) for the database of keys which is
227 distributed from <ftpsite/ftp.debian.org/ in
228 <ftppath>/pub/debian/doc/debian-keyring.tar.gz</ftppath>, or the
229 <package/debian-keyring/ package.  Please be sure to sign your request
230 message with your chosen public key.
231         <p>
232 Once this information is received and processed, you should be
233 contacted with information about your new Debian maintainer account.
234 If you don't hear anything within 7-14 days, please send a followup
235 message asking if your original application was received.  Do <em/not/
236 re-send your original application, that will just confuse the
237 new-maintainer team. Please be patient, especially near release
238 points; mistakes do occasionally happen, and people do sometimes run
239 out of volunteer time.
240
241
242       <sect id="mentors">Debian Mentors
243         <p>
244 A mailing list called <email/debian-mentors@lists.debian.org/ which
245 has been set up for novice maintainers who seek help with initial
246 packaging and other developer-related issues.  Every new developer is
247 invited to subscribe to that list (see <ref id="mailing-lists"> for
248 details).
249         <p>
250 Those who prefer one-on-one help (e.g., via private email) should
251 also post to that list and an experienced developer will volunteer to
252 help.
253
254
255     <chapt id="user-maint">Maintaining Your Debian Information
256
257       <sect>Maintaining Your Public Key
258         <p>
259 Be very careful with your private keys.  Do not place them on any
260 public servers.  Back them up.  Read the documentation that comes with
261 your software (either PGP or GNUPG); read the FAQs too, for good
262 measure.
263         <p>
264 If you add or remove signatures from your public key, or add or remove
265 user identities, you need to update the key servers and mail your
266 public key to <email>keyring-maint@debian.org</email>.  The same key
267 extraction routines from <ref id="registering"> apply.
268
269       <sect>Retiring Gracefully
270         <p>
271 If you choose to leave the Debian project, you should make sure you do
272 the following steps:
273 <enumlist>
274             <item>
275 Orphan all your packages, as described in <ref id="orphaning">.
276             <item>
277 Send an email about how you are leaving the project to
278 <email>debian-private@lists.debian.org</email>.
279             <item>
280 Notify the Debian key ring maintainers that you are leaving by emailing
281 to <email>keyring-maint@debian.org</email>.
282           </enumlist>
283
284
285     <chapt id="servers">Mailing Lists and Servers
286
287       <sect id="mailing-lists">Mailing lists
288         <p>
289 The mailing list server is at <tt/lists.debian.org/.  Mail
290 <tt/debian-<var/foo/-REQUEST@lists.debian.org/, where
291 <tt/debian-<var/foo// is the name of the list, with the word
292 <tt/subscribe/ in the <em/Subject/ to subscribe to the list or
293 <tt/unsubscribe/ to unsubscribe.  More detailed instructions on how to
294 subscribe and unsubscribe to the mailing lists can be found at <url
295 id="http://www.debian.org/MailingLists/subscribe">, <url
296 id="ftp://ftp.debian.org/debian/doc/mailing-lists.txt"> or locally in
297 <file>/usr/doc/debian/mailing-lists.txt</file> if you have the
298 <package>doc-debian</package> package installed.
299         <p>
300 When replying to messages on the mailing list, please do not send a
301 carbon copy (<tt/CC/) to the original poster unless they explicitly
302 request to be copied.  Anyone who posts to a mailing list should read
303 it to see the responses.
304         <p>
305 In addition, all messages should usually only be sent to one of the
306 following mailing lists: <email/debian-devel@lists.debian.org/,
307 <email/debian-policy@lists.debian.org/,
308 <email/debian-user@lists.debian.org/,
309 <email/debian-announce@lists.debian.org/, or
310 <email/debian-devel-announce@lists.debian.org/.  Additional mailing
311 lists are available for special purposes; see <url
312 id="http://www.debian.org/MailingLists/subscribe">.  Cross-posting
313 (sending the same message to multiple lists) is discouraged.
314         <p>
315 <email/debian-private@lists.debian.org/ is a special mailing lists for
316 private discussions amongst Debian developers.  It is meant to be used
317 for posts which for whatever reason should not be published
318 publically.  As such, it is a low volume list, and users are urged not
319 to use <email/debian-private@lists.debian.org/ unless it is really
320 necessary.  Moreover, do <em/not/ forward email from that list to
321 anyone.
322         <p>
323 As ever on the net, please trim down the quoting of articles you're
324 replying to.  In general, please adhere to the usual conventions for
325 posting messages.
326         <p>
327 Online archives of mailing lists are available at <url
328 id="http://www.debian.org/Lists-Archives/">.
329
330
331       <sect id="servers-master">The master server
332         <p>
333 The master server, <tt/master.debian.org/, holds the canonical copy
334 of the Debian archive (excluding the non-U.S. packages). Generally,
335 package uploads go to this server; see <ref id="upload">. 
336         <p>
337 <tt/master.debian.org/ is the canonical location for the Bug Tracking
338 System (BTS).  If you plan on doing some statistical analysis or
339 processing of Debian bugs, this would be the place to do it.  Please
340 describe your plans on <email/debian-devel@lists.debian.org/ before
341 implementing anything, however, to reduce unnecessary duplication of
342 effort or wasted processing time.
343         <p>
344 All Debian developers have accounts on <tt/master.debian.org/.  Please
345 take care to protect your password to this machine.  Try to avoid
346 login or upload methods which send passwords over the Internet in the
347 clear.
348         <p>
349 If you find a problem with <tt/master.debian.org/ such as disk full,
350 suspicious activity, or whatever, send an email to
351 <email>debian-admin@debian.org</email>.
352
353       <sect id="servers-ftp">The FTP servers
354         <p>
355
356       <sect id="servers-www">The WWW servers
357         <p>
358 The main web server, <tt/www.debian.org/, is also known as
359 <tt/va.debian.org/.  All developers are given accounts on this
360 machine.
361         <p>
362 If you have some Debian-specific information which you want to serve
363 up on the web, you can do do this by putting material in the
364 <file>public_html</file> directory under your home directory.  You can do
365 this on either <tt/va.debian.org/ or <tt/master.debian.org/.  Any
366 material you put in those areas are accessible via the URLs
367 <tt>http://www.debian.org/~<var>user-id</var>/</tt> and
368 <tt>http://master.debian.org/~<var>user-id</var>/</tt>, respectively.
369 Generally, you'll want to use <tt/va/, for the <tt/www.debian.org/
370 address, although in some cases you may need to put it on <tt/master/.
371 Please do not put any material on Debian servers not relating to
372 Debian, unless you have prior permission. Send mail to
373 <email/debian-devel@lists.debian.org/ if you have any questions.
374         <p>
375 If you find a problem with the Debian web server, you should generally
376 submit a bug against the pseudo-package,
377 <package>www.debian.org</package>.  First check whether or not someone
378 else has already reported the problem on the <url
379 id="http://www.debian.org/Bugs/db/pa/lwww.debian.org.html" name="Bug
380 Tracking System">.
381
382       <sect id="servers-cvs">The CVS server
383         <p>
384 <tt/cvs.debian.org/ is also known as <tt/va.debian.org/, discussed
385 above.  If you need the use of a publically accessible CVS server, for
386 instance, to help coordinate work on a package between many different
387 developers, you can request a CVS area on the server.  Generally,
388 <tt/cvs.debian.org/ offers a combination of local CVS access,
389 anonymous client-server read-only access, and full client-server
390 access through <prgn>ssh</prgn>.
391         <p>
392 To request a CVS area, send a request via email to
393 <email>debian-admin@debian.org</email>.
394
395
396       <sect id="servers-mirrors">Mirrors of Debian servers
397         <p>
398 The web and FTP servers have several mirrors available.  Please do not
399 put heavy load on the canonical FTP or web servers.  Ideally, the
400 canonical servers only mirror out to a first tier of mirrors, and all
401 user access is to the mirrors.  This allows Debian to better spread
402 its bandwidth requirements over several servers and networks.  Note
403 that newer push mirroring techniques ensure that mirrors are as
404 up-to-date as they can be.
405         <p>
406 The main web page listing the available public FTP (and, usually,
407 HTTP) servers can be found at <url
408 id="http://www.debian.org/distrib/ftplist">.  More information
409 concerning Debian mirrors can be found at <url
410 id="http://www.debian.org/mirror">.  This useful page includes
411 information and tools which can be helpful if you are interested in
412 setting up your own mirror, either for internal or public access.
413         <p>
414 Note that mirrors are generally run by third-parties who are
415 interested in helping Debian.  As such, developers generally do not
416 have accounts on these machines.
417         <p>
418 Please do not mirror off of <tt/master.debian.org/.  This host already
419 has too much load.  Check the sites above for information, or email
420 <email/debian-devel@lists.debian.org/.
421
422     <chapt id="archive">The Debian Archive
423
424       <sect>Overview
425         <p>
426 The Debian GNU/Linux distribution consists of a lot of Debian packages
427 (<tt/.deb/'s, currently around &number-of-pkgs;) and a few additional files
428 (documentation, installation disk images, etc.).
429         <p>
430 Here is an example directory tree of a complete Debian distribution:
431         <p>
432 <example>
433 main/
434 main/binary-all/
435 main/binary-all/admin/
436 main/binary-all/base/
437 main/binary-all/comm/
438 main/binary-all/devel/
439      ...
440 main/binary-i386/
441 main/binary-i386/admin/
442 main/binary-i386/base/
443      ...
444 main/binary-m68k
445 main/binary-m68k/admin/
446 main/binary-m68k/base/
447      ...
448 main/source/
449 main/source/admin/
450 main/source/base/
451      ...
452 main/disks-i386/
453 main/disks-m68k/
454      ...
455
456 contrib/
457 contrib/binary-all/
458 contrib/binary-i386/
459 contrib/binary-m68k/
460      ...
461 contrib/source/
462
463 non-free/
464 non-free/binary-all/
465 non-free/binary-i386/
466 non-free/binary-m68k/
467          ...
468 non-free/source/
469 </example>
470         <p>
471 As you can see, the top-level directory of the distribution contains
472 three directories, namely <em/main/, <em/contrib/, and
473 <em/non-free/. These directories are called <em/sections/.
474         <p>
475 In each section, there is a directory with the source packages
476 (source), a directory for each supported architecture
477 (<tt/binary-i386/, <tt/binary-m68k/, etc.), and a directory for
478 architecture independent packages (<tt/binary-all/).
479         <p>
480 The <em/main/ section contains additional directories which holds the
481 disk images and some essential pieces of documentation required for
482 installing the Debian distribution on a specific architecture
483 (<tt/disks-i386/, <tt/disks-m68k/, etc.).
484         <p>
485 The <em/binary/ and <em/source/ directories are divided further into
486 <em/subsections/.
487
488
489       <sect>Sections
490         <p>
491 The <em>main</em> section is what makes up the <em>official Debian
492 GNU/Linux distribution</em>.  The <em/main/ section is official because
493 it fully complies with all our guidelines.  The other two sections do
494 not, to different degrees; as such, they are not officially part of
495 Debian.
496         <p>
497 Every package in the main section must fully comply with the <!-- work
498 around quoting of fragment idendifiers bug <url
499 id="http://www.debian.org/social_contract#guidelines" name="Debian
500 Free Software Guidelines"> --> <url
501 id="http://www.debian.org/social_contract" name="Debian Free Software
502 Guidelines"> (DFSG) and with all other policy requirements as
503 described in the <url id="http://www.debian.org/doc/debian-policy/"
504 name="Debian Policy Manual">.  The DFSG is our definition of ``free
505 software.'' Check out the Debian Policy Manual for details.
506         <p>
507 The packages which do not apply to the DFSG are placed in the
508 <em/non-free/ section. These packages are not considered as part of
509 the Debian distribution, though we support their use, and we provide
510 infrastructure (such as our bug-tracking system and mailing lists) for
511 non-free software packages.
512         <p>
513 Packages in the <em/contrib/ section have to comply with the DFSG, but
514 may fail other requirements.  For instance, they may depend on
515 non-free packages.
516         <p>
517 The <url id="http://www.debian.org/doc/debian-policy/" name="Debian
518 Policy Manual"> contains a more exact definition of the three
519 sections. The above discussion is just an introduction.
520         <p>
521 The separation of the three sections at the top-level of the archive
522 is important for all people who want to distribute Debian, either via
523 FTP servers on the Internet or on CD-ROMs: by distributing only the
524 <em/main/ and <em/contrib/ sections, one can avoid any legal risks.
525 Some packages in the <em/non-free/ section do not allow commercial
526 distribution, for example.
527         <p>
528 On the other hand, a CD-ROM vendor could easily check the individual
529 package licenses of the packages in <em/non-free/ and include as many
530 on the CD-ROMs as he's allowed. (Since this varies greatly from vendor
531 to vendor, this job can't be done by the Debian developers.)
532
533
534       <sect>Architectures
535         <p>
536 In the first days, the Linux kernel was only available for the Intel
537 i386 (or greater) platforms, and so was Debian. But when Linux became
538 more and more popular, the kernel was ported to other architectures,
539 too.
540         <p>
541 The Linux 2.0 kernel supports Intel x86, DEC Alpha, SPARC, Motorola
542 680x0 machines (like Atari, Amiga and Macintoshes), MIPS, and PowerPC.
543 Newer kernels support more architectures, including ARM, UltraSPARC,
544 and MIPS.  Since Linux supports these platforms, Debian decided that
545 it should, too.  Therefore, Debian has ports underway.  In fact, we
546 also have ports underway to non-Linux kernel.  Aside from
547 <em>i386</em> (our name for Intel x86), there is <em>m68k</em>,
548 <em>alpha</em>, <em>powerpc</em>, <em>sparc</em>, <em>hurd-i386</em>,
549 and <em>arm</em> as of this writing.
550
551         <p>
552 Debian GNU/Linux 1.3 is only available as <em>i386</em>.  Debian 2.0
553 shipped for <em>i386</em> and <em>m68k</em> architectures.  Debian 2.1
554 ships for the <em>i386</em>, <em>m68k</em>, <em>alpha</em>, and
555 <em>sparc</em> architectures.
556
557
558       <sect>Subsections
559         <p>
560 The sections <em/main/, <em/contrib/, and <em/non-free/ are split into
561 <em/subsections/ to simplify the installation process and the
562 maintainance of the archive.  Subsections are not formally defined,
563 excepting perhaps the `base' subsection.  Subsections exist simply
564 to simplify the organization and browsing of available packages.
565 Please check the current Debian distribution to see which sections are
566 available.
567 <p>
568
569
570       <sect>Packages
571         <p>
572 There are two types of Debian packages, namely <em/source/ and
573 <em/binary/ packages.
574         <p>
575 Source packages consist of either two or three files: a <tt/.dsc/
576 file, and either a <tt/.tar.gz/ file or both an <tt/.orig.tar.gz/ and
577 a <tt/.diff.gz/ file.
578         <p>
579 If a package is developed specially for Debian and is not distributed
580 outside of Debian, there is just one <tt/.tar.gz/ file which contains
581 the sources of the program.  If a package is distributed elsewhere
582 too, the <tt/.orig.tar.gz/ file stores the so-called <em/upstream
583 source code/, that is the source code that's distributed from the
584 <em/upstream maintainer/ (often the author of the software). In this
585 case, the <tt/.diff.gz/ contains the changes made by the Debian
586 maintainer.
587         <p>
588 The <tt/.dsc/ lists all the files in the source package together with
589 checksums (md5sums) and some additional info about the package
590 (maintainer, version, etc.).
591
592
593       <sect>Distribution directories
594         <p>
595 The directory system described in the previous chapter, are themselves
596 contained within <em/distribution directories/.  Every distribution is
597 contained in the <tt/dists/ directory in the top-level of the Debian
598 archive itself (the symlinks from the top-level directory to the
599 distributions themselves are for backwards compatability and are
600 deprecated).
601         <p>
602 To summarize, the Debian archive has a root directory within an FTP
603 server.  For instance, at the mirror site,
604 <ftpsite>ftp.us.debian.org</ftpsite>, the Debian archive itself is
605 contained in <ftppath>/debian</ftppath>, which is a common location
606 (another is <ftppath>/pub/debian</ftppath>).
607         <p>
608 Within that archive root, the actual distributions are contained in
609 the <tt/dists/ directory.  Here is an overview of the layout:
610         <p>
611 <example>
612 <var>archive root</var>/dists/<var>distribution</var>/<var>section</var>/<var>architecture</var>/<var>subsection</var>/<var>packages</var>
613 </example>
614
615 Extrapolating from this layout, you know that to find the i386 base
616 packages for the distribution <em/slink/, you would look in
617 <ftppath>/debian/dists/slink/main/binary-i386/base/</ftppath>.
618
619         <sect1>Stable, unstable, and sometimes frozen
620         <p>
621 There is always a distribution called <em/stable/ (residing in
622 <tt>dists/stable</tt>) and one called <em/unstable/ (residing in
623 <tt>dists/unstable</tt>). This reflects the development process of the
624 Debian project.
625         <p>
626 Active development is done in the <em/unstable/ distribution (that's
627 why this distribution is sometimes called the <em/development
628 distribution/). Every Debian developer can update his or her packages
629 in this distribution at any time. Thus, the contents of this
630 distribution change from day-to-day. Since no special effort is done
631 to test this distribution, it is sometimes ``unstable.''
632         <p>
633 After a period of development, the <em/unstable/ distribution is
634 copied in a new distribution directory, called <em/frozen/. When that
635 occurs, no changes are allowed to the frozen distribution except bug
636 fixes; that's why it's called ``frozen.''  After another month or a
637 little longer, the <em/frozen/ distribution is renamed to <em/stable/,
638 overriding the old <em/stable/ distribution, which is removed at that
639 time.
640         <p>
641 This development cycle is based on the assumption that the
642 <em/unstable/ distribution becomes <em/stable/ after passing a period
643 of testing as <em/frozen/.  Even once a distribution is considered
644 stable, a few bugs inevitably remain--that's why the stable
645 distribution is updated every now and then. However, these updates are
646 tested very carefully and have to be introduced into the archive
647 individually to reduce the risk of introducing new bugs.  You can find
648 proposed additions to <em/stable/ in the <tt/proposed-updates/
649 directory.  Those packages in <tt/proposed-updates/ that pass muster
650 are periodically moved as a batch into the stable distribution and the
651 revision level of the stable distribution is incremented (e.g., `1.3'
652 becomes `1.3r1', `2.0r2' becomes `2.0r3', and so forth).
653         <p>
654 Note that development under <em/unstable/ is continued during the
655 ``freeze'' period, since a new <em/unstable/ distribution is be
656 created when the older <em/unstable/ is moved to <em/frozen/.
657 Another wrinkle is that when the <em/frozen/ distribution is offically 
658 released, the old stable distribution is completely removed from the
659 Debian archives (although you can still find it from servers which
660 serve up older, obsolete distributions).
661         <p>
662 In summary, there is always a <em/stable/ and an <em/unstable/
663 distribution available, and the <em/frozen/ distribution shows up for
664 a month or so from time to time.
665
666
667         <sect1>Experimental
668           <p>
669 The <em/experimental/ distribution is a specialty distribution.  It is
670 not a full distribution in the same sense that `stable' and `unstable'
671 are.  Instead, it is meant to be a temporary staging area for highly
672 experimental software where there's a good chance that the software
673 could break your system.  Users who download and install packages from
674 <em/experimental/ are expected to have been duly warned.  In short,
675 all bets are off for the <em/experimental/ distribution.
676           <p>
677 Developers should be very selective in the use of the
678 <em/experimental/ distribution.  Even if a package is highly unstable,
679 it could well still go into <em/unstable/; just state a few warnings
680 in the description.  However, if there is a chance that the software
681 could do grave damage to a system, it might be better to put it into
682 <em/experimental/.
683           <p>
684 For instance, an experimental encrypted file system should probably go
685 into experimental.  A new, beta, version of some software which uses
686 completely different configuration might go into experimental at the
687 maintainer's discretion.  New software which isn't likely to damage
688 your system can go into <em/unstable/.
689
690
691       <sect id="codenames">Release code names
692         <p>
693 Every released Debian distribution has a <em/code name/: Debian 1.1 is
694 called `buzz'; Debian 1.2, `rex'; Debian 1.3, `bo'; Debian 2.0,
695 `hamm'; Debian 2.1, `slink'; and Debian 2.2, `potato'.  There is
696 also a ``pseudo-distribution'', called `sid' which is contains
697 packages for architectures which are not yet officially supported or
698 released by Debian.  These architectures are planned to be integrated
699 into the mainstream distribution at some future date.
700         <p>
701 Since the Debian has an open development model (i.e., everyone can
702 participate and follow the development) even the unstable distribution
703 is distributed via the Internet on the Debian FTP and HTTP server
704 network. Thus, if we had called the directory which contains the
705 development version `unstable', then we would have to rename it
706 to `stable' when the version is released, which would cause all FTP
707 mirrors to re-retrieve the whole distribution (which is already very
708 large!).
709         <p>
710 On the other hand, if we called the distribution directories
711 <em>Debian-x.y</em> from the beginning, people would think that Debian
712 release <em>x.y</em> is available. (This happened in the past, where a
713 CD-ROM vendor built a Debian 1.0 CD-ROM based on a pre-1.0 development
714 version. That's the reason why the first official Debian release was
715 1.1, and not 1.0.)
716         <p>
717 Thus, the names of the distribution directories in the archive are
718 determined by their code names and not their release status (i.e.,
719 `slink').  These names stay the same during the development period
720 and after the release; symbolic links, which can be changed, are made
721 to indicate the currently released stable distribution.  That's why
722 the real distribution directories use the <em/code names/ and symbolic
723 links for <em/stable/, <em/unstable/, and <em/frozen/ point to the
724 appropriate release directories.
725
726
727     <chapt id="upload">Package uploads
728
729       <sect>Announcing new packages
730         <p>
731 If you want to create a new package for the Debian distribution, you
732 should first check the <url
733 id="http://www.debian.org/doc/prospective-packages.html"
734 name="Work-Needing and Prospective Packages (WNPP)"> list.  Checking
735 the WNPP ensures that no one is already working on packaging that
736 software, and that effort is not duplicated. Assuming no one else is
737 already working on your prospective package, you must then send a
738 short email to <email/debian-devel@lists.debian.org/ describing your
739 plan to create a new package.  You should set the subject of the email
740 to ``intent to package <var/foobar/'', substituting the name of the new
741 package for <var/foobar/.
742         <p>
743 There are a number of reasons why we ask maintainers to follow these
744 steps:
745           <list compact>
746             <item>
747 It helps the (potentially new) maintainer to tap into the experience
748 of people on the list, and lets them know if any one else is working
749 on it already.
750             <item>
751 It lets other people thinking about working on the package know that
752 there already is a volunteer, and efforts may be shared.  The ``intent
753 to package'' message to <email/debian-devel@lists.debian.org/ will be
754 picked up the the WNPP maintainer, and your intention will be
755 published in subsequent versions of the WNPP document.
756             <item>
757 It lets the rest of the maintainers know more about the package than
758 the one line description and the changelog entry ``Initial version''
759 that generally gets posted to <tt/debian-devel-changes/ by default.
760             <item>
761 It is helpful to the people who live off unstable (and form our first
762 line of testers); we should encourage these people.
763             <item>
764 The announcements give maintainers and other interested parties a
765 better feel of what is going on, and what is new, in the project.
766           </list>
767
768
769       <sect id="uploading">Uploading a package
770
771         <sect1>Generating the changes file
772           <p>
773 When a package is uploaded to the Debian FTP archive, it must be
774 accompanied by a <tt/.changes/ file, which gives directions to the
775 archive maintainers for its handling.  This is usually generated by
776 <prgn/dpkg-genchanges/ during the normal package build process.
777           <p>
778 The changes file is a control file with the following fields:
779           <p>
780 <list compact>
781               <item><tt/Format/
782               <item><tt/Date/
783               <item><tt/Source/
784               <item><tt/Binary/
785               <item><tt/Architecture/
786               <item><tt/Version/
787               <item><tt/Distribution/
788               <item><tt/Urgency/
789               <item><tt/Maintainer/
790               <item><tt/Description/
791               <item><tt/Changes/
792               <item><tt/Files/
793             </list>
794           <p>
795 All of these fields are mandatory for a Debian upload.  See the list
796 of control fields in the <url
797 id="http://www.debian.org/doc/packaging-manuals/packaging.html/"
798 name="Debian Packaging Manual"> for the contents of these fields.
799 Only the <tt/Distribution/ field is discussed here, since it relates
800 to the archive maintenance policies.
801
802         <sect1 id="upload-dist">Picking a distribution
803           <p>
804 Notably, the <tt/Distribution/ field, which originates from the
805 <file>debian/changelog</file> file, indicates which distribution the
806 package is intended for.  There are four possible values for this
807 field: `stable', `unstable', `frozen', or `experimental'; these values
808 can also be combined.  For instance, if you have a crucial security
809 fix release of a package, and the package has not diverged between the
810 <em/stable/ and <em/unstable/ distributions, then you might put
811 `stable unstable' in the <file>changelog</file>'s <tt/Distribution/ field.
812 Or, if Debian has been frozen, and you want to get a bug-fix release
813 into <em/frozen/, you would set the distribution to `frozen unstable'.
814 (See <ref id="upload-frozen"> for more information on when to upload to
815 <em/frozen/.)  Note that setting the distribution to `stable' means
816 that the package will be placed into the <tt>proposed-updates</tt>
817 directory of the Debian archive for further testing before it is
818 actually included in <em/stable/.  Also note that it never makes sense
819 to combine the <em/experimental/ distribution with anything else.
820           <p>
821 The first time a version is uploaded which corresponds to a particular
822 upstream version the original source tar file should be uploaded and
823 included in the <tt/.changes/ file; subsequent times the very same tar
824 file should be used to build the new diffs and <tt/.dsc/ files, and it
825 need not then be uploaded.
826           <p>
827 By default <prgn/dpkg-genchanges/ and <prgn/dpkg-buildpackage/ will
828 include the original source tar file if and only if the Debian
829 revision part of the source version number is <tt/0/ or <tt/1/,
830 indicating a new upstream version.  This behaviour may be modified by
831 using <tt/-sa/ to always include it or <tt/-sd/ to always leave it
832 out.
833           <p>
834 If no original source is included in the upload then the original
835 source tar-file used by <prgn/dpkg-source/ when constructing the
836 <tt/.dsc/ file and diff to be uploaded <em/must/ be byte-for-byte
837 identical with the one already in the archive.  If there is some
838 reason why this is not the case then the new version of the original
839 source should be uploaded, possibly by using the <tt/-sa/ flag.
840
841           <sect2 id="upload-frozen">Uploading to <em/frozen/
842             <p>
843 The Debian freeze is a crucial time for Debian.  It is our chance to
844 synchronize and stabilize our distribution as a whole.  Therefore,
845 care must be taken when uploading to <em/frozen/.
846             <p>
847 It is tempting to always try to get the newest release of software
848 into the release.  However, it's much more important that the system
849 as a whole is stable and works as expected.
850             <p>
851 The watchword for uploading to <em/frozen/ is <strong>no new
852 code</strong>.  This is a difficult thing to quantify, so here are
853 some guidelines:
854             <p>
855 <list>
856                 <item>
857 Fixes for bugs of severity <em/critical/, <em/grave/, or
858 <em/important/ severity are always allowed for those packages that
859 must exist in the final release
860                 <item>
861 <em/critical/, <em/grave/, and <em/important/ bug fixes are only
862 allowed for non-necessary packages if they don't add any new features
863                 <item>
864 normal bug fixes are allowed (though discouraged) on all packages if
865 and only if there are no new features
866                 <item>
867 wishlist fixes are not allowed (they are, after all, not really bugs)
868                 <item>
869 documentation bug fixes are allowed, since good documentation is
870 important
871               </list>
872             <p>
873 Remember, there is statistically a 15% chance that every bug fix will
874 introduce a new bug.  The introduction and discovery of new bugs
875 either delays release or weakens the final product.  There is little
876 correlation between the severity of the original bug and the severity
877 of the introduced bug.
878
879
880
881         <sect1 id="upload-checking">Checking the package prior to upload
882           <p>
883 Before you upload your package, you should do basic testing on it.
884 Make sure you try the following activities (you'll need to have an
885 older version of the Debian package around).
886 <list>
887               <item>
888 Install the package and make sure the software works, or upgrade the
889 package from an older version to your new version if a Debian package
890 for it already exists.
891               <item>
892 Run <prgn/lintian/ over the package.  You can run <prgn/lintian/ as
893 follows: <tt>lintian -v <var>package-version</var>.changes</tt>. This will
894 check the source package as well as the binary package.  If you don't
895 understand the output that <prgn/lintian/ generates, try adding the
896 <tt/-i/ switch, which will cause <prgn/lintian/ to output a very
897 verbose description of the problem.
898                 <p>
899 Normally, a package should <em/not/ be uploaded if it causes lintian
900 to emit errors (they will start with <tt/E/).
901                 <p>
902 For more information on <prgn/lintian/, see <ref id="lintian">.
903               <item>
904 Downgrade the package to the previous version (if one exists) -- this
905 tests the <tt/postrm/ and <tt/prerm/ scripts.
906               <item>
907 Remove the package, then reinstall it.
908             </list>
909
910
911         <sect1 id="upload-master">Uploading to <tt/master/
912           <p>
913 To upload a package, you need a personal account on
914 <ftpsite>master.debian.org</ftpsite>.  All maintainers should already
915 have this account, see <ref id="servers-master">.  You can use either
916 <prgn/ssh/ or <prgn/ftp/ to transfer the files.  In either case, the
917 files need to be placed into
918 <ftppath>/home/Debian/ftp/private/project/Incoming</ftppath>.  (You
919 cannot upload to Incoming on master using anonymous FTP -- you must
920 use your user-name and password.)
921           <p>
922 <em/Note:/ Do not upload packages containing software that is
923 export-controlled by the United States government to <tt/master/, or
924 to the overseas upload queues on <tt/chiark/ or <tt/erlangen/.  This
925 prohibition covers almost all cryptographic software, and even
926 sometimes software that contains ``hooks'' to cryptographic software,
927 such as electronic mail readers that support PGP encryption and
928 authentication.  Uploads of such software should go to <tt/non-us/
929 (see below).  If you are not sure whether U.S. export controls apply
930 to your package, post a message to
931 <email/debian-devel@lists.debian.org/ and ask.
932           <p>
933 You may also find the Debian package <package/dupload/ useful when
934 uploading packages.  This handy program is distributed with defaults
935 for uploading via <prgn/ftp/ to <tt/master/, <tt/chiark/, and
936 <tt/erlangen/.  It can also be configured to use <prgn/ssh/.  See
937 <manref name="dupload" section="1"> and <manref name="dupload"
938 section="5"> for more information.
939
940
941         <sect1>Uploads via <tt/chiark/
942           <p>
943 If you have a slow network connection to <tt/master/, there are
944 alternatives.  One is to upload files to <tt/Incoming/ via a
945 cron-driven upload queue in Europe on <tt/chiark/. For details connect
946 to <ftpsite>ftp.chiark.greenend.org.uk</ftpsite> using anonymous FTP
947 and read
948 <ftppath>/pub/debian/private/project/README.how-to-upload</ftppath>.
949           <p>
950 <em/Note:/ Do not upload packages containing software that is
951 export-controlled by the United States government to the queue on
952 <tt/chiark/.  Since this upload queue goes to <tt/master/, the
953 prescription found in <ref id="upload-master"> applies here as well.
954           <p>
955 The program <tt/dupload/ supports uploads to <tt/chiark/; please refer
956 to the documentation that comes with the program for details.
957
958
959         <sect1>Uploads via <tt/erlangen/
960           <p>
961 Another cron-driven upload queue is available in Germany: just upload
962 the files via anonymous FTP to <url
963 id="ftp://ftp.uni-erlangen.de/pub/Linux/debian/UploadQueue">.
964           <p>
965 The upload must be a complete Debian upload, as you would put it into
966 <tt/master/'s <tt/Incoming/, i.e., a <tt/.changes/ files along with the
967 other files mentioned in the <tt/.changes/. The queue daemon also
968 checks that the <tt/.changes/ is correctly PGP-signed by a Debian
969 developer, so that no bogus files can find their way to <tt/master/
970 via the queue. Please also make sure that the <tt/Maintainer/ field
971 in the <tt/.changes/ contains <em/your/ e-mail address. The address
972 found there is used for all replies, just as on <tt/master/.
973           <p>
974 There's no need to move your files into a second directory after the
975 upload as on <tt/chiark/. And, in any case, you should get some mail
976 reply from the queue daemon what happened to your upload. Hopefully it
977 should have been moved to <tt/master/, but in case of errors you're
978 notified, too.
979           <p>
980 <em/Note:/ Do not upload packages containing software that is
981 export-controlled by the United States government to the queue on
982 <tt/erlangen/.  Since this upload queue goes to <tt/master/, the
983 prescription found in <ref id="upload-master"> applies here as well.
984           <p>
985 The program <prgn/dupload/ supports uploads to <tt/erlangen/; please refer
986 to the documentation that comes with the program for details.
987
988
989         <sect1>Uploading to the non-us server
990           <p>
991 To upload a package to the <em/non-us/ server you just have to
992 transfer the files via anonymous ftp to <url
993 id="ftp://non-us.debian.org/pub/debian-non-US/Incoming">.  Note, that
994 the <tt>.changes</tt> file must have a valid PGP signature from one of
995 the keys of the developers key-ring.
996
997
998       <sect id="upload-announce">Announcing package uploads
999         <p>
1000 When a package is uploaded an announcement should be posted to one of
1001 the ``debian-changes'' lists. The announcement should give the (source)
1002 package name and version number, and a very short summary of the
1003 changes, in the <em/Subject/ field, and should contain the PGP-signed
1004 <tt/.changes/ file.  Some additional explanatory text may be added
1005 before the start of the <tt/.changes/ file.
1006         <p>
1007 If a package is released with the <tt/Distribution:/ set to
1008 `stable', the announcement is sent to
1009 <email/debian-changes@lists.debian.org/.  If a package is released
1010 with <tt/Distribution:/ set to `unstable', `experimental', or
1011 `frozen' (when present), the announcement should be posted to
1012 <email/debian-devel-changes@lists.debian.org/ instead.
1013         <p>
1014 On occasion, it is necessary to upload a package to both the
1015 <em/stable/ and <em/unstable/ distributions; this is done by putting
1016 both distributions in the <tt/Distribution:/ line.  In such a case the
1017 upload announcement should go to both of the above mailing lists.
1018         <p>
1019 The <prgn/dupload/ program is clever enough to determine for itself
1020 where the announcement should go, and will automatically mail the
1021 announcement to the right list.  See <ref id="dupload">.
1022
1023       <sect id="upload-notification">Notification that a new package has been installed
1024         <p>
1025 The Debian archive maintainers are responsible for handling package
1026 uploads.  For the most part, uploads are automatically handled on a
1027 daily basis by an archive maintenance tool called <prgn/dinstall/.
1028 Specifically, updates to existing packages to the `unstable'
1029 distribution are handled automatically. In other cases, notably new
1030 packages, placing the uploaded package into the distribution is
1031 handled manually. When uploads are handled manually, the change to the
1032 archive may take up to a week to occur (please be patient).
1033         <p>
1034 In any case, you will receive notification indicating that the package
1035 has been uploaded via email.  Please examine this notification
1036 carefully.  You may notice that the package didn't go into the section
1037 you thought you set it to go into.  Read on for why.
1038
1039         <sect1 id="override-file">The override file
1040           <p>
1041 The <file>debian/control</file> file's <tt/Section/ and <tt/Priority/
1042 fields do not actually specify where the file will be placed in the
1043 archive, nor its priority.  In order to retain the overall integrity
1044 of the archive, it is the archive maintainers who have control over
1045 these fields.  The values in the <file>debian/control</file> file are
1046 actually just hints.
1047           <p>
1048 The archive maintainers keep track of the canonical sections and
1049 priorities for packages in the <em/override file/.  Sometimes the
1050 <em/override file/ needs correcting.  Simply changing the package's
1051 <file>control</file> file is not going to work.  Instead, you should email
1052 <email/override-change@debian.org/ or submit a bug against
1053 <package/ftp.debian.org/.
1054           <p>
1055 For more information about <em/override files/, see
1056 <manref name="dpkg-scanpackages" section="8"/>,
1057 <file>/usr/doc/debian/bug-log-mailserver.txt</file>, and
1058 <file>/usr/doc/debian/bug-maint-info.txt</file>.
1059
1060
1061
1062     <chapt id="nmu">Non-Maintainer Uploads (NMUs)
1063       <p>
1064 Under certain circumstances it is necessary for someone other than the
1065 official package maintainer to make a release of a package.  This is
1066 called a non-maintainer upload, or NMU.
1067        <p>
1068 Debian porters, who compile packages for different architectures, do
1069 NMUs as part of their normal porting activity (see <ref
1070 id="porting">).  Another reason why NMUs are done is when a Debian
1071 developers needs to fix another developers' packages in order to
1072 address serious security problems or crippling bugs, especially during
1073 the freeze, or when the package maintainer is unable to release a fix
1074 in a timely fashion.
1075       <p>
1076 This chapter contains information providing guidelines for when and
1077 how NMUs should be done.  A fundamental distinction is made between
1078 source and binary NMUs, which is explained in the next section.
1079
1080       <sect id="nmu-terms">Terminology
1081         <p>
1082 There are two new terms used throughout this section: ``binary NMU''
1083 and ``source NMU''.  These terms are used with specific technical
1084 meaning throughout this document.  Both binary and source NMUs are
1085 similar, since they involve an upload of a package by a developer who
1086 is not the official maintainer of that package.  That is why it's a
1087 <em/non-maintainer/ upload.
1088         <p>
1089 A source NMU is a upload of a package by a developer who is not the
1090 official maintainer, for the purposes of fixing a bug in the package.
1091 Source NMUs always involves changes to the source (even if it is just
1092 a change to <file>debian/changelog</file>).  This can be either a change
1093 to the upstream source, or a change to the Debian bits of the source.
1094         <p>
1095 A binary NMU is a recompilation and upload of a binary package for a
1096 new architecture.  As such, it is usually part of a porting effort.  A
1097 binary NMU is non-maintainer uploaded binary version of a package
1098 (often for another architecture), with no source changes required.
1099 There are many cases where porters must fix problems in the source in
1100 order to get them to compile for their target architecture; that would
1101 be considered a source NMU rather than a binary NMU.  As you can see,
1102 we don't distinguish in terminology between porter NMUs and non-porter
1103 NMUs.
1104         <p>
1105 Both classes of NMUs, source and binary, can be lumped by the term
1106 ``NMU''.  However, this often leads to confusion, since most people
1107 think ``source NMU'' when they think ``NMU''.  So it's best to be
1108 careful.  In this chapter, if I use the unqualified term ``NMU'', I
1109 mean both source and binary NMUs.
1110
1111
1112       <sect id="nmu-who">Who can do an NMU
1113         <p>
1114 Only official, registered Debian maintainers can do binary or source
1115 NMUs.  An official maintainer is someone who has their key in the
1116 Debian key ring.  Non-developers, however, are encouraged to download
1117 the source package and start hacking on it to fix problems; however,
1118 rather than doing an NMU, they should just submit worthwhile patches
1119 to the Bug Tracking System.  Maintainers almost always appreciate
1120 quality patches and bug reports.
1121
1122
1123       <sect id="nmu-when">When to do a source NMU
1124         <p>
1125 Guidelines for when to do a source NMU depend on the target
1126 distribution, i.e., stable, unstable, or frozen.  Porters have
1127 slightly different rules than non-porters, due to their unique
1128 circumstances (see <ref id="source-nmu-when-porter">).
1129         <p>
1130 Only critical changes or security bug fixes make it into stable.  When
1131 a security bug is detected a fixed package should be uploaded as soon
1132 as possible. In this case, the Debian Security Managers should get in
1133 contact with the package maintainer to make sure a fixed package is
1134 uploaded within a reasonable time (less than 48 hours). If the package
1135 maintainer cannot provide a fixed package fast enough or if he/she
1136 cannot be reached in time, the Security Manager may upload a fixed
1137 package (i.e., do a source NMU).
1138         <p>
1139 During the release freeze (see <ref id="upload-frozen">), NMUs which
1140 fix important or higher severity bugs are encouraged and accepted.
1141 Even during this window, however, you should endeavor to reach the
1142 current maintainer of the package; they might be just about to upload
1143 a fix for the problem.  As with any source NMU, the guidelines found
1144 in <ref id="nmu-guidelines"> need to be followed.
1145         <p>
1146 Bug fixes to unstable by non-maintainers are also acceptable, but only
1147 as a last resort or with permission.  Try the following steps first,
1148 and if they don't work, it is probably OK to do an NMU:
1149         <p>
1150 <list>
1151             <item>
1152 Make sure that the package bug is in the Debian Bug Tracking System
1153 (BTS).  If not, submit a bug.
1154             <item>
1155 Email the maintainer, and offer to help fix the package bug.  Give it a 
1156 few days.
1157             <item>
1158 Go ahead and fix the bug, submitting a patch to the right bug in the
1159 BTS.  Build the package and test it as discussed in <ref
1160 id="upload-checking">.  Use it locally.
1161             <item>
1162 Wait a couple of weeks for a response.
1163             <item>
1164 Email the maintainer, asking if it is OK to do an NMU.
1165             <item>
1166 Double check that your patch doesn't have any unexpected side effects.
1167 Make sure your patch is as small and as non-disruptive as it can be.
1168             <item>
1169 Wait another week for a response.
1170             <item>
1171 Go ahead and do the source NMU, as described in <ref
1172 id="nmu-guidelines">.
1173           </list>
1174
1175
1176
1177       <sect id="nmu-guidelines">How to do a source NMU
1178         <p>
1179 The following applies to porters insofar as they are playing the dual
1180 role of being both package bug-fixers and package porters.  If a
1181 porter has to change the Debian source archive, automatically their
1182 upload is a source NMU and is subject to its rules.  If a porter is
1183 simply uploading a recompiled binary package, the rules are different;
1184 see <ref id="porter-guidelines">.
1185         <p>
1186 First and foremost, it is critical that NMU patches to source should
1187 be as non-disruptive as possible.  Do not do housekeeping tasks, do
1188 not change the name of modules or files, do not move directories; in
1189 general, do not fix things which are not broken.  Keep the patch as
1190 small as possible.  If things bother you aesthetically, talk to the
1191 Debian maintainer, talk to the upstream maintainer, or submit a bug.
1192 However, aesthetic changes must <em/not/ be made in a non-maintainer
1193 upload.
1194
1195
1196         <sect1 id="nmu-version">Source NMU version numbering
1197           <p>
1198 Whenever you have made a change to a package, no matter how trivial,
1199 the version number needs to change.  This enables our packing system
1200 to function.
1201           <p>
1202 If you are doing a non-maintainer upload (NMU), you should add a new
1203 minor version number to the <var/debian-revision/ part of the version
1204 number (the portion after the last hyphen).  This extra minor number
1205 will start at `1'.  For example, consider the package `foo', which is
1206 at version 1.1-3.  In the archive, the source package control file
1207 would be <file>foo_1.1-3.dsc</file>.  The upstream version is `1.1' and
1208 the Debian revision is `3'.  The next NMU would add a new minor number
1209 `.1' to the Debian revision; the new source control file would be
1210 <file>foo_1.1-3.1.dsc</file>.
1211           <p>
1212 The Debian revision minor number is needed to avoid stealing one of
1213 the package maintainer's version numbers, which might disrupt their
1214 work.  It also has the benefit of making it visually clear that a
1215 package in the archive was not made by the official maintainer.
1216           <p>
1217 If there is no <var/debian-revision/ component in the version number
1218 then one should be created, starting at `0.1'.  If it is absolutely
1219 necessary for someone other than the usual maintainer to make a
1220 release based on a new upstream version then the person making the
1221 release should start with the <var/debian-revision/ value `0.1'.  The
1222 usual maintainer of a package should start their <var/debian-revision/
1223 numbering at `1'.  Note that if you do this, you'll have to invoke
1224 <prgn>dpkg-buildpackage</prgn> with the <tt/-sa/ switch to force the
1225 build system to pick up the new source package (normally it only looks
1226 for Debian revisions of '0' or '1' -- it's not yet clever enough to
1227 know about `0.1').
1228           <p>
1229 Remember, porters who are simply recompiling a package for a different
1230 architecture do not need to renumber.  Porters should use new version
1231 numbers if and only if they actually have to modify the source package
1232 in some way, i.e., if they are doing a source NMU and not a binary
1233 NMU.
1234
1235
1236         <sect1 id="nmu-changelog">Source NMUs must have a new changelog entry
1237           <p>
1238 A non-maintainer doing a source NMU must create a changelog entry,
1239 describing which bugs are fixed by the NMU, and generally why the NMU
1240 was required and what it fixed.  The changelog entry will have the
1241 non-maintainer's email address in the log entry and the NMU version
1242 number in it.
1243           <p>
1244 By convention, source NMU changelog entries start with the line
1245 <example>
1246   * Non-maintainer upload
1247 </example>
1248
1249
1250         <sect1 id="nmu-patch">Source NMUs and the Bug Tracking System
1251           <p>
1252 Maintainers other than the official package maintainer should make as
1253 few changes to the package as possible, and they should always send a
1254 patch as a unified context diff (<tt/diff -u/) detailing their
1255 changes to the Bug Tracking System.
1256           <p>
1257 What if you are simply recompiling the package?  In this case, the
1258 process is different for porters than it is for non-porters, as
1259 mentioned above.  If you are not a porter and are doing an NMU that
1260 simply requires a recompile (i.e., a new shared library is available
1261 to be linked against, a bug was fixed in <package/debhelper/), there
1262 must still be a changelog entry; therefore, there will be a patch.  If
1263 you are a porter, you are probably just doing a binary NMU.  (Note:
1264 this leaves out in the cold porters who have to do recompiles -- chalk
1265 it up as a weakness in how we maintain our archive.)
1266           <p>
1267 If the source NMU (non-maintainer upload) fixes some existing bugs,
1268 the bugs in the Bug Tracking System which are fixed need to be
1269 <em/notified/ but not actually <em/closed/ by the non-maintainer.
1270 Technically, only the official package maintainer or the original bug
1271 submitter are allowed to close bugs.  However, the person making the
1272 non-maintainer release must send a short message to the relevant bugs 
1273 explaining that the bugs have been
1274 fixed by the NMU.  Using <email/control@bugs.debian.org/, the party
1275 doing the NMU should also set the severity of the bugs fixed in the
1276 NMU to `fixed'.  This ensures that everyone knows that the bug was
1277 fixed in an NMU; however the bug is left open until the changes in the
1278 NMU are incorporated officially into the package by the official
1279 package maintainer.  Also, open a bug with the patches needed to 
1280 fix the problem, or make sure that one of the other (already open) bugs
1281 has the patches.
1282           <p>
1283 The normal maintainer will either apply the patch or employ an
1284 alternate method of fixing the problem.  Sometimes bugs are fixed
1285 independently upstream, which is another good reason to back out an
1286 NMU's patch.  If the maintainer decides not to apply the NMU's patch
1287 but to release a new version, the maintainer needs to ensure that the
1288 new upstream version really fixes each problem that was fixed in the
1289 non-maintainer release.
1290           <p>
1291 In addition, the normal maintainer should <em/always/ retain the entry
1292 in the changelog file documenting the non-maintainer upload.
1293
1294
1295         <sect1 id="nmu-build">Building source NMUs
1296           <p>
1297 Source NMU packages are built normally.  Pick a distribution using the
1298 same rules as found in <ref id="upload-dist">.  Just as described in
1299 <ref id="uploading">, a normal changes file, etc., will be built.  In
1300 fact, all the prescriptions from <ref id="upload"> apply, including
1301 the need to announce the NMU to the proper lists.
1302           <p>
1303 Make sure you do <em/not/ change the value of the maintainer in the
1304 <file>debian/control</file> file.  Your name from the NMU entry of the
1305 <file>debian/changelog</file> file will be used for signing the changes
1306 file.
1307
1308
1309
1310
1311     <chapt id="porting">Porting and Being Ported
1312       <p>
1313 Debian supports an ever-increasing number of architectures.  Even if
1314 you are not a porter, and you don't use any architecture but one, it
1315 is part of your duty as a maintainer to be aware of issues of
1316 portability.  Therefore, even if you are not a porter, you should read
1317 most of this chapter.
1318       <p>
1319 Porting is the act of building Debian packages for architectures which
1320 is different from the original architecture of the package
1321 maintainer's binary package.  It is a unique and essential activity.
1322 In fact, porters do most of the actual compiling of Debian packages.
1323 For instance, for one <em>x86</em> binary package, there has to be a
1324 recompile for each architecture, which is around five more builds.
1325
1326
1327       <sect id="kind-to-porters">Being Kind to Porters
1328         <p>
1329 Porters have a difficult and unique task, since they are required to
1330 deal with a large volume of packages.  Ideally, every source package
1331 should build right out of the box; unfortunately, this is often not
1332 the case.  This section contains a checklist of ``gotchas'' often
1333 committed by Debian maintainers -- common problems which often stymie
1334 porters, and make their jobs unnecessarily more difficult.
1335         <p>
1336 The first and most important watchword is to respond quickly to bug or
1337 issues raised by porters.  Please treat porters with courtesy, as if
1338 they were in fact co-maintainers of your package (which in a way, they
1339 are).
1340         <p>
1341 By far, most of the problems encountered by porters are caused by
1342 <em>packaging bugs</em> in the source packages.  Here is a checklist
1343 of things you should check or be aware of.
1344
1345 <enumlist>
1346             <item>
1347 Don't set architecture to a value other than ``all'' or ``any'' unless
1348 you really mean it.  In too many cases, maintainers don't follow the
1349 instructions in the <url
1350 id="http://www.debian.org/doc/packaging-manuals/packaging.html/"
1351 name="Debian Packaging Manual">.  Setting your architecture to ``x86''
1352 is usually incorrect.
1353             <item>
1354 Make sure your source package is correct.  Do <tt>dpkg-source -x
1355 <var>package</var>.dsc</tt> to make sure your source package unpacks
1356 properly.  Then, in there, try building your package from scratch with
1357 <tt>dpkg-buildpackage</tt>.
1358             <item>
1359 Make sure you don't ship your binary package with the
1360 <file>debian/files</file> or <file>debian/substvars</file> files.
1361 They should be removed by the `clean' target of
1362 <file>debian/rules</file>.
1363             <item>
1364 Make sure you don't rely on locally installed or hacked configurations
1365 or programs.  For instance, you should never be calling programs in
1366 <file>/usr/local/bin</file> or the like.  Try not to rely on programs
1367 be setup in a special way.  Try building your package on another
1368 machine, even if it's the same architecture.
1369             <item>
1370 Don't depend on the package your building already being installed (a
1371 sub-case of the above issue).
1372             <item>
1373 Don't rely on <prgn>egcc</prgn> being available; don't rely on
1374 <prgn>gcc</prgn> being a certain version.
1375           </enumlist>
1376
1377
1378       <sect id="porter-guidelines">Guidelines for Porter Uploads
1379         <p>
1380 If the package builds out of the box for the architecture to be ported
1381 to, you are in luck and your job is easy.  This section applies to
1382 that case; it describes how to build and upload your binary NMU so
1383 that it is properly installed into the archive.  If you do have to
1384 patch the package in order to get it to compile for the other
1385 architecture, you are actually doing a source NMU, so consult <ref
1386 id="nmu-guidelines"> instead.
1387         <p>
1388 In a binary NMU, no real changes are being made to the source.  You do
1389 not need to touch any of the files in the source package.  This
1390 includes <file>debian/changelog</file>.
1391         <p>
1392 The way to invoke <prgn/dpkg-buildpackage/ is as <tt>dpkg-buildpackage
1393 -B -m<var/porter-email/</tt>.  Of course, set <var/porter-email/ to
1394 your email address.  This will do a binary-only build of only the
1395 architecture-dependant portions of the package, using the
1396 `binary-arch' target in <file>debian/rules</file>.
1397
1398
1399         <sect1 id="source-nmu-when-porter">
1400           <heading>When to do a source NMU if you are a porter</heading>
1401           <p>
1402 Porters doing a source NMU generally follow the guidelines found in
1403 <ref id="nmu">, just like non-porters.  However, it is expected that
1404 the wait cycle for a porter's source NMU is smaller than for a
1405 non-porter, since porters have to cope with a large quantity of
1406 packages.
1407           <p>
1408 Again, the situation varies depending on the distribution they are
1409 uploading to.  Crucial fixes (i.e., changes need to get a source
1410 package to compile for a released-targeted architecture) can be
1411 uploaded with <em/no/ waiting period for the `frozen' distribution.
1412           <p>
1413 However, if you are a porter doing an NMU for `unstable', the above
1414 guidelines for porting should be followed, with two variations.
1415 Firstly, the acceptable waiting period -- the time between when the
1416 bug is submitted to the BTS and when it is OK to do an NMU -- is seven
1417 days for porters working on the unstable distribution.  This period
1418 can be shortened if the problem is critical and imposes hardship on
1419 the porting effort, at the discretion of the porter group.  (Remember,
1420 none of this is Policy, just mutually agreed upon guidelines.)
1421           <p>
1422 Secondly, porters doing source NMUs should make sure that the bug they
1423 submit to the BTS should be of severity `important' or greater.  This
1424 ensures that a single source package can be used to compile every
1425 supported Debian architecture by release time.  It is very important
1426 that we have one version of the binary and source package for all
1427 architecture in order to comply with many licenses.
1428           <p>
1429 Porters should try to avoid patches which simply kludge around bugs in
1430 the current version of the compile environment, kernel, or libc.
1431 Sometimes such kludges can't be helped.  If you have to kludge around
1432 compilers bugs and the like, make sure you <tt>#ifdef</tt> your work
1433 properly; also, document your kludge so that people know to remove it
1434 once the external problems have been fixed.
1435           <p>
1436 Porters may also have an unofficial location where they can put the
1437 results of their work during the waiting period.  This helps others
1438 running the port have the benefit of the porter's work, even during
1439 the waiting period.  Of course, such locations have no official
1440 blessing or status, so buyer, beware.
1441
1442
1443       <sect>Tools for Porters
1444         <p>
1445 There are several tools available for the porting effort. This section
1446 contains a brief introduction to these tools; see the package
1447 documentation or references for full information.
1448
1449
1450         <sect1 id="quinn-diff">
1451           <heading><package>quinn-diff</package>
1452           <p>
1453 <package/quinn-diff/ is used to locate the differences from one
1454 architecture to another.  For instance, it could tell you which
1455 packages need to be ported for architecture <var/Y/, based on
1456 architecture <var/X/.
1457
1458
1459         <sect1 id="buildd">
1460           <heading><package>buildd</package>
1461           <p>
1462 <package/buildd/ is not yet available!  However, it collects a number
1463 of as yet unpackaged components which are currently in production
1464 (such as <prgn/debbuild/ and <prgn/wanna-build/.
1465           <p>
1466 The <package/buildd/ system is used as a distributed, client-server
1467 build distribution system.  It is usually used in conjunction with
1468 <em/auto-builders/, which are ``slave'' hosts which simply check out
1469 and attempt to auto-build packages which need to be ported.  There is
1470 also an email interface to the system, which allows porters to ``check
1471 out'' a source package (usually one which cannot yet be autobuilt) and
1472 work on it.
1473           <p>
1474 We are very excited about this system, since it potentially has so
1475 many uses.  Independent development groups can use the system for
1476 different sub-flavors of Debian, which may or may not really be of
1477 general interest (for instance, a flavor of Debian built with gcc
1478 bounds checking).  It will also enable Debian to recompile entire
1479 distributions quickly.
1480
1481
1482         <sect1 id="dpkg-cross">
1483           <heading><package>dpkg-cross</package>
1484           <p>
1485 <package>dpkg-cross</package> is a tool for installing libraries and
1486 headers for cross-compiling in a way similar to
1487 <package>dpkg</package>. Furthermore, the functionality of
1488 <prgn>dpkg-buildpackage</prgn> and <prgn>dpkg-shlibdeps</prgn> is
1489 enhanced to support cross-compiling.
1490
1491
1492
1493
1494     <chapt id="archive-manip"><heading>Moving, Removing, Renaming,
1495       Adopting, and Orphaning Packages</heading>
1496       <p>
1497 Some archive manipulation operation are not automated in the Debian
1498 upload process.  These procedures should be manually followed by
1499 maintainers.  This chapter gives guidelines in what to do in these
1500 cases.
1501
1502       <sect>Moving packages
1503         <p>
1504 Sometimes a package will change either its section or its subsection.
1505 For instance, a package from the `non-free' section might be GPL'd in
1506 a later version; in this case you should consider moving it to `main'
1507 or `contrib' (see the <url
1508 id="http://www.debian.org/doc/debian-policy/" name="Debian Policy
1509 Manual"> for guidelines).
1510         <p>
1511 In this case, it is sufficient to edit the package control information
1512 normally and re-upload the package (see the <url
1513 id="http://www.debian.org/doc/packaging-manuals/packaging.html/"
1514 name="Debian Packaging Manual"> for
1515 details).  Carefully examine the installation log sent to you when the
1516 package is installed into the archive.  If for some reason the old
1517 location of the package remains, file a bug against
1518 <tt/ftp.debian.org/ asking that the old location be removed.  Give
1519 details on what you did, since it might be a <prgn/dinstall/ bug.
1520
1521
1522       <sect>Removing packages
1523         <p>
1524 If for some reason you want to completely remove a package (say, if it
1525 is an old compatibility library which is not longer required), you
1526 need to file a bug against <tt/ftp.debian.org/ asking that the
1527 package be removed.  Make sure you indicate which distribution the
1528 package should be removed from.
1529         <p>
1530 If in doubt concerning whether a package is disposable, email
1531 <email/debian-devel@lists.debian.org/ asking for opinions.  Also of
1532 interest is the <prgn/apt-cache/ program from the <package/apt/
1533 package.  When invoked as <tt>apt-cache showpkg
1534 /var/cache/apt/pkgcache.bin <var/package/</tt>, the program will show
1535 details for <var/package/, including reverse depends.
1536
1537         <sect1>Removing packages from <tt/Incoming/
1538           <p>
1539 If you decide to remove a package from <tt/Incoming/, it is nice but
1540 not required to send a notification of that to the appropriate
1541 announce list (either <email/debian-changes@lists.debian.org/ or
1542 <email/debian-devel-changes@lists.debian.org/).
1543
1544       <sect>Replacing or renaming packages
1545         <p>
1546 Sometimes you made a mistake naming the package and you need to rename
1547 it.  In this case, you need to follow a two-step process.  First, set
1548 your <file>debian/control</file> file to replace and conflict with the
1549 obsolete name of the package (see the <url
1550 id="http://www.debian.org/doc/packaging-manuals/packaging.html/"
1551 name="Debian Packaging Manual"> for details).  Once you've uploaded
1552 that package, and the package has moved into the archive, file a bug
1553 against <tt/ftp.debian.org/ asking to remove the package with the
1554 obsolete name.
1555
1556
1557
1558       <sect id="orphaning">Orphaning a package
1559         <p>
1560 If you can no longer maintain a package, then you should set the
1561 package maintainer to <tt>Debian QA Group
1562 &lt;debian-qa@lists.debian.org&gt;</tt> and email
1563 <email/wnpp@debian.org/ indicating that the package is now orphaned.
1564 If the package is especially crucial to Debian, you should instead
1565 email <email/debian-devel@lists.debian.org/ asking for a new
1566 maintainer.
1567
1568
1569       <sect id="adopting">Adopting a package
1570         <p>
1571 Periodically, a listing of packages in need of new maintainers will be
1572 sent to <email/debian-devel@lists.debian.org</email> list. This list
1573 is also available at in the Work-Needing and Prospective Packages
1574 document (WNPP), <url
1575 id="ftp://ftp.debian.org/debian/doc/package-developer/prospective-packages.html">
1576 and at <url id="http://www.debian.org/doc/prospective-packages.html">.
1577 If you wish to take over maintenance of any of the packages listed in
1578 the WNPP, or if you can no longer maintain a packages you have, or you
1579 simply want to know if any one is working on a new package, send a
1580 message to <email/wnpp@debian.org/.
1581         <p>
1582 It is not OK to simply take over a package that you feel is neglected
1583 -- that would be package hijacking.  You can, of course, contact the
1584 current maintainer and ask them if you may take over the package.
1585 However, without their assent, you may not take over the package.
1586 Even if they ignore you, that is still not grounds to take over a
1587 package.  If you really feel that a maintainer has gone AWOL (absent
1588 without leave), post a query to
1589 <email/debian-private@lists.debian.org/.
1590         <p>
1591 If you take over an old package, you probably want to be listed as the
1592 package's official maintainer in the bug system. This will happen
1593 automatically once you upload a new version with an updated
1594 <tt/Maintainer:/ field, although it can take a couple of weeks. If you
1595 do not expect to upload a new version for a while, send an email to
1596 <email/override-change@debian.org/ so that bug reports will go to you
1597 right away.
1598
1599
1600
1601
1602     <chapt id="bug-handling">Handling Bugs
1603
1604       <sect>Monitoring bugs
1605         <p>
1606 If you want to be a good maintainer, you should periodically check the
1607 <url id="http://www.debian.org/Bugs/" name="Debian bug tracking system
1608 (BTS)"> for your packages.  The BTS contains all the open bugs against 
1609 your packages.
1610         <p>
1611 Maintainers interact with the BTS via email addresses at
1612 <tt/bugs.debian.org/.  Documentation on available commands can be
1613 found at <url id="http://www.debian.org/Bugs/">, or, if you have
1614 installed the <package/debian-doc/ package, you can look at the local
1615 files <file>/usr/doc/debian/bug-*</file>.
1616         <p>
1617 Some find it useful to get periodic reports on open bugs.  You can add
1618 a cron job such as the following if you want to get a weekly email
1619 outlining all the open bugs against your packages:
1620 <example>
1621 # ask for weekly reports of bugs in my packages
1622 0 17 * * fri   echo "index maint <var>maintainer-address</var>" | mail request@bugs.debian.org
1623 </example>
1624 Replace <var>maintainer-address</var> with you official Debian
1625 maintainer address.
1626
1627       <sect>Submitting Bugs
1628         <p>
1629 Often as a package maintainer, you find bugs in other packages or else
1630 have bugs reported to your packages which need to be reassigned.  The
1631 BTS <url id="http://www.debian.org/Bugs/server-control.html"
1632 name="instructions"> can tell you how to do this.
1633         <p>
1634 We encourage you to file bugs when there are problems.  Try to submit
1635 the bug from a normal user account at which you are likely to receive
1636 mail.  Do not submit bugs as root.
1637         <p>
1638 Make sure the bug is not already filed against a package.  Try to do a
1639 good job reporting a bug and redirecting it to the proper location.
1640 For extra credit, you can go through other packages, merging bugs
1641 which are reported more than once, or setting bug severities to
1642 `fixed' when they have already been fixed.  Note that when you are
1643 neither the bug submitter nor the package maintainer, you are should
1644 not actually close the bug (unless you secure permission from the
1645 maintainer).
1646
1647       <sect>Responding to Bugs
1648         <p>
1649 Make sure that any discussions you have about bugs are sent both to
1650 the original submitter of the bug, and the bug itself (i.e.,
1651 <email>123@bugs.debian.org</email>).
1652         <p>
1653 You should <em>never</em> close bugs via the bug server `close'
1654 command sent to <email>control@bugs.debian.org</email>.  If you do so,
1655 the original submitter will not receive any feedback on why the bug
1656 was closed.
1657
1658       <sect>When bugs are closed by new uploads
1659         <p>
1660 If you fix a bug in your packages, it is your responsibility as the
1661 package maintainer to close the bug when it has been fixed.  However,
1662 you should not close the bug until the package which fixes the bug has
1663 been accepted into the Debian archive.  Therefore, once you get
1664 notification that your updated package has been installed into the
1665 archive, you can and should close the bug in the BTS.
1666         <p>
1667 Again, see the BTS documentation for details on how to do this.
1668 Often, it is sufficient to mail the <tt/.changes file to
1669 <email/<var/XXX/-done@bugs.debian.org/, where <var/XXX/ is your bug
1670 number.
1671
1672
1673       <sect id="lintian-reports">Lintian reports
1674         <p>
1675 You should periodically get the new <package/lintian/ from `unstable' and
1676 check over all your packages.  Alternatively you can check for your
1677 maintainer email address at the <url
1678 id="http://www.debian.org/lintian/" name="online lintian report">.
1679 That report, which is updated automatically, contains <prgn/lintian/
1680 reports against the latest version of the distribution (usually from
1681 'unstable') using the latest <package/lintian/.
1682
1683
1684       <sect>Reporting lots of bugs at once
1685         <p>
1686 Reporting a great number of bugs for the same problem on a great
1687 number of different packages -- i.e., more than 10 -- is a deprecated
1688 practice.  Take all possible steps to avoid submitting bulk bugs at
1689 all.  For instance, if checking for the problem can be automated, add
1690 a new check to <package/lintian/ so that an error or warning is
1691 emitted.
1692         <p>
1693 If you report more than 10 bugs on the same topic at once, it is
1694 recommended that you send a message to
1695 <email/debian-devel@lists.debian.org/ describing your intention before
1696 submitting the report. This will allow other developers to verify that
1697 the bug is a real problem. In addition, it will help prevent a
1698 situation in which several maintainers start filing the same bug
1699 report simultaneously.
1700         <p>
1701 Note that when sending lots of bugs on the same subject, you should
1702 send the bug report to <email/maintonly@bugs.debian.org/ so that the
1703 bug report is not forwarded to the bug distribution mailing list.
1704
1705
1706     <chapt id="tools">Overview of Debian Maintainer Tools
1707       <p>
1708 This section contains a rough overview of the tools available to
1709 maintainers.  These tools are meant to help convenience developers and 
1710 free their time for critical tasks.  
1711       <p>
1712 Some people prefer to use high-level package maintenance tools and
1713 some do not.  Debian is officially agnostic on this issue; any tool
1714 which gets the job done is fine.  Therefore, this section is not meant
1715 to stipulate to anyone which tools they should use or how they should
1716 go about with their duties of maintainership.  Nor is it meant to
1717 endorse any particular tool to the exclusion of a competing tool.
1718       <p>
1719 Most of the descriptions of these packages come from the actual
1720 package descriptions themselves.  Further information can be found in
1721 the package documentation itself.
1722
1723
1724       <sect id="dpkg-dev">
1725         <heading><package/dpkg-dev/
1726         <p>
1727 <package/dpkg-dev/ contains the tools (including
1728 <prgn/dpkg-source/) required to unpack, build and upload Debian source
1729 packages.  These utilities contain the fundamental, low-level
1730 functionality required to create and manipulated packages; as such,
1731 they are required for any Debian maintainer.
1732
1733
1734       <sect id="lintian">
1735         <heading><package/lintian/
1736         <p>
1737 <package/Lintian/ dissects Debian packages and reports bugs and
1738 policy violations. It contains automated checks for many aspects of
1739 Debian policy as well as some checks for common errors.  The use of
1740 <package/lintian/ has already been discussed in <ref
1741 id="upload-checking"> and <ref id="lintian-reports">.
1742
1743
1744       <sect id="debhelper">
1745         <heading><package/debhelper/
1746         <p>
1747 <package/debhelper/ is a collection of programs that can be used in
1748 <file>debian/rules</file> to automate common tasks related to building
1749 binary Debian packages. Programs are included to install various files
1750 into your package, compress files, fix file permissions, integrate
1751 your package with the Debian menu system.
1752         <p>
1753 Unlike <package/debmake/, <package/debhelper/ is broken into
1754 several small, granular commands which act in a consistent manner.  As
1755 such, it allows a greater granularity of control than
1756 <package/debmake/.
1757
1758
1759       <sect id="debmake">
1760         <heading><package/debmake/
1761         <p>
1762 <package/debmake/, a pre-cursor to <package/debhelper/, is a
1763 less granular <file>debian/rules</file> assistant. It includes two main
1764 programs: <prgn>deb-make</prgn>, which can be used to help a
1765 maintainer convert a regular (non-Debian) source archive into a Debian
1766 source package; and <prgn>debstd</prgn>, which incorporates in one big
1767 shot the same sort of automated functions that one finds in
1768 <package/debhelper/.
1769         <p>
1770 The consensus is that <package>debmake</package> is now deprecated in
1771 favor of <package>debhelper</package>.  However, it's not a bug to use
1772 <package>debmake</package>.
1773
1774
1775       <sect id="cvs-buildpackage">
1776         <heading><package/cvs-buildpackage/
1777         <p>
1778 <package/cvs-buildpackage/ provides the capability to inject or
1779 import Debian source packages into a CVS repository, build a Debian
1780 package from the CVS repository, and helps in integrating upstream
1781 changes into the repository.
1782         <p>
1783 These utilities provide an infrastructure to facilitate the use of CVS
1784 by Debian maintainers. This allows one to keep separate CVS branches
1785 of a package for <em/stable/, <em/unstable/, and possibly
1786 <em/experimental/ distributions, along with the other benefits of a
1787 version control system.
1788
1789
1790       <sect id="dupload">
1791         <heading><package>dupload</package>
1792         <p>
1793 <package/dupload/ is a package and a script to automagically upload
1794 Debian packages to the Debian archive, to log the upload, and to send
1795 mail about the upload of a package.  You can configure it for new
1796 upload locations or methods.
1797
1798
1799       <sect id="fakeroot">
1800         <heading><package>fakeroot</package>
1801         <p>
1802 <package>fakeroot</package> simulates root privileges.  This enables
1803 you to build packages without being root (packages usually want to
1804 install files with root ownership).  If you have
1805 <package>fakeroot</package> installed, you can say, i.e.,
1806 <tt>dpkg-buildpackage -rfakeroot</tt> as a user.
1807         <p>
1808 Note that <package>fakeroot</package> is being replaced by
1809 <package>libtricks</package> in ``potato''.
1810
1811
1812       <sect id="devscripts">
1813         <heading><package>devscripts</package>
1814         <p>
1815 <package>devscripts</package> is a package containing a few wrappers
1816 and tools which you may find helpful for maintaining your Debian
1817 packages.  Example scripts include <prgn>debchange</prgn>, which will
1818 manipulate your <file>debian/changelog</file> file from the
1819 command-line, and <prgn>build</prgn>, which is a wrapper around
1820 <prgn>dpkg-buildpackage</prgn>.
1821
1822 <!-- dpkg-awk ? -->
1823
1824   </book>
1825 </debiandoc>
1826
1827 <!-- Keep this comment at the end of the file
1828 Local variables:
1829 mode: sgml
1830 sgml-omittag:t
1831 sgml-shorttag:t
1832 sgml-minimize-attributes:nil
1833 sgml-always-quote-attributes:t
1834 sgml-indent-step:2
1835 sgml-indent-data:nil
1836 sgml-parent-document:nil
1837 sgml-exposed-tags:nil
1838 sgml-declaration:nil
1839 sgml-local-catalogs:nil
1840 sgml-local-ecat-files:nil
1841 End:
1842 -->