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