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