chiark / gitweb /
Re-applied comments from SGML source to the DocBook files.
[developers-reference.git] / beyond-pkging.dbk
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3     "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
4 <chapter id="beyond-pkging">
5 <title>Beyond Packaging</title>
6 <para>
7 Debian is about a lot more than just packaging software and maintaining those
8 packages.  This chapter contains information about ways, often really critical
9 ways, to contribute to Debian beyond simply creating and maintaining packages.
10 </para>
11 <para>
12 As a volunteer organization, Debian relies on the discretion of its members in
13 choosing what they want to work on and in choosing the most critical thing to
14 spend their time on.
15 </para>
16 <section id="submit-bug">
17 <title>Bug reporting</title>
18 <para>
19 We encourage you to file bugs as you find them in Debian packages.  In fact,
20 Debian developers are often the first line testers.  Finding and reporting bugs
21 in other developers' packages improves the quality of Debian.
22 </para>
23 <para>
24 Read the <ulink url="http://www.debian.org/Bugs/Reporting">instructions for
25 reporting bugs</ulink> in the Debian <ulink
26 url="http://www.debian.org/Bugs/">bug tracking system</ulink>.
27 </para>
28 <para>
29 Try to submit the bug from a normal user account at which you are likely to
30 receive mail, so that people can reach you if they need further information
31 about the bug.  Do not submit bugs as root.
32 </para>
33 <para>
34 You can use a tool like <citerefentry> <refentrytitle>reportbug</refentrytitle>
35 <manvolnum>1</manvolnum> </citerefentry> to submit bugs.  It can automate and
36 generally ease the process.
37 </para>
38 <para>
39 Make sure the bug is not already filed against a package.  Each package has a
40 bug list easily reachable at
41 <literal>http://bugs.debian.org/<replaceable>packagename</replaceable></literal>
42 Utilities like <citerefentry> <refentrytitle>querybts</refentrytitle>
43 <manvolnum>1</manvolnum> </citerefentry> can also provide you with this
44 information (and <command>reportbug</command> will usually invoke
45 <command>querybts</command> before sending, too).
46 </para>
47 <para>
48 Try to direct your bugs to the proper location.  When for example your bug is
49 about a package which overwrites files from another package, check the bug
50 lists for <emphasis>both</emphasis> of those packages in order to avoid filing
51 duplicate bug reports.
52 </para>
53 <para>
54 For extra credit, you can go through other packages, merging bugs which are
55 reported more than once, or tagging bugs `fixed' when they have already been
56 fixed.  Note that when you are neither the bug submitter nor the package
57 maintainer, you should not actually close the bug (unless you secure permission
58 from the maintainer).
59 </para>
60 <para>
61 From time to time you may want to check what has been going on with the bug
62 reports that you submitted.  Take this opportunity to close those that you
63 can't reproduce anymore.  To find out all the bugs you submitted, you just have
64 to visit
65 <literal>http://bugs.debian.org/from:<replaceable>&lt;your-email-addr&gt;</replaceable></literal>.
66 </para>
67 <section id="submit-many-bugs">
68 <title>Reporting lots of bugs at once (mass bug filing)</title>
69 <para>
70 Reporting a great number of bugs for the same problem on a great number of
71 different packages — i.e., more than 10 — is a deprecated practice.  Take
72 all possible steps to avoid submitting bulk bugs at all.  For instance, if
73 checking for the problem can be automated, add a new check to <systemitem
74 role="package">lintian</systemitem> so that an error or warning is emitted.
75 </para>
76 <para>
77 If you report more than 10 bugs on the same topic at once, it is recommended
78 that you send a message to <email>debian-devel@lists.debian.org</email>
79 describing your intention before submitting the report, and mentioning the fact
80 in the subject of your mail.  This will allow other developers to verify that
81 the bug is a real problem.  In addition, it will help prevent a situation in
82 which several maintainers start filing the same bug report simultaneously.
83 </para>
84 <para>
85 Please use the programms <command>dd-list</command> and if appropriate
86 <command>whodepends</command> (from the package devscripts) to generate a list
87 of all affected packages, and include the output in your mail to
88 <email>debian-devel@lists.debian.org</email>.
89 </para>
90 <para>
91 Note that when sending lots of bugs on the same subject, you should send the
92 bug report to <email>maintonly@bugs.debian.org</email> so that the bug report
93 is not forwarded to the bug distribution mailing list.
94 </para>
95 </section>
96
97 </section>
98
99 <section id="qa-effort">
100 <title>Quality Assurance effort</title>
101 <section id="qa-daily-work">
102 <title>Daily work</title>
103 <para>
104 Even though there is a dedicated group of people for Quality Assurance, QA
105 duties are not reserved solely for them.  You can participate in this effort by
106 keeping your packages as bug-free as possible, and as lintian-clean (see <xref
107 linkend="lintian"/> ) as possible.  If you do not find that possible, then you
108 should consider orphaning some of your packages (see <xref
109 linkend="orphaning"/> ).  Alternatively, you may ask the help of other people
110 in order to catch up with the backlog of bugs that you have (you can ask for
111 help on <email>debian-qa@lists.debian.org</email> or
112 <email>debian-devel@lists.debian.org</email>).  At the same time, you can look
113 for co-maintainers (see <xref linkend="collaborative-maint"/> ).
114 </para>
115 </section>
116
117 <section id="qa-bsp">
118 <title>Bug squashing parties</title>
119 <para>
120 From time to time the QA group organizes bug squashing parties to get rid of as
121 many problems as possible.  They are announced on
122 <email>debian-devel-announce@lists.debian.org</email> and the announcement
123 explains which area will be the focus of the party: usually they focus on
124 release critical bugs but it may happen that they decide to help finish a major
125 upgrade (like a new perl version which requires recompilation of all the binary
126 modules).
127 </para>
128 <para>
129 The rules for non-maintainer uploads differ during the parties because the
130 announcement of the party is considered prior notice for NMU.  If you have
131 packages that may be affected by the party (because they have release critical
132 bugs for example), you should send an update to each of the corresponding bug
133 to explain their current status and what you expect from the party.  If you
134 don't want an NMU, or if you're only interested in a patch, or if you will deal
135 yourself with the bug, please explain that in the BTS.
136 </para>
137 <para>
138 People participating in the party have special rules for NMU, they can NMU
139 without prior notice if they upload their NMU to DELAYED/3-day at least.  All
140 other NMU rules apply as usually; they should send the patch of the NMU to the
141 BTS (to one of the open bugs fixed by the NMU, or to a new bug, tagged fixed).
142 They should also respect any particular wishes of the maintainer.
143 </para>
144 <para>
145 If you don't feel confident about doing an NMU, just send a patch to the BTS.
146 It's far better than a broken NMU.
147 </para>
148 </section>
149
150 </section>
151
152 <section id="contacting-maintainers">
153 <title>Contacting other maintainers</title>
154 <para>
155 During your lifetime within Debian, you will have to contact other maintainers
156 for various reasons.  You may want to discuss a new way of cooperating between
157 a set of related packages, or you may simply remind someone that a new upstream
158 version is available and that you need it.
159 </para>
160 <para>
161 Looking up the email address of the maintainer for the package can be
162 distracting.  Fortunately, there is a simple email alias,
163 <literal>&lt;package&gt;@packages.debian.org</literal>, which provides a way to
164 email the maintainer, whatever their individual email address (or addresses)
165 may be.  Replace <literal>&lt;package&gt;</literal> with the name of a source
166 or a binary package.
167 </para>
168 <para>
169 You may also be interested in contacting the persons who are subscribed to a
170 given source package via <xref linkend="pkg-tracking-system"/> .  You can do so
171 by using the <literal>&lt;package&gt;@packages.qa.debian.org</literal> email
172 address.
173 </para>
174 <!-- FIXME: moo@packages.d.o is easily confused with moo@packages.qa.d.o -->
175 </section>
176
177 <section id="mia-qa">
178 <title>Dealing with inactive and/or unreachable maintainers</title>
179 <para>
180 If you notice that a package is lacking maintenance, you should make sure that
181 the maintainer is active and will continue to work on their packages.  It is
182 possible that they are not active any more, but haven't registered out of the
183 system, so to speak.  On the other hand, it is also possible that they just
184 need a reminder.
185 </para>
186 <para>
187 There is a simple system (the MIA database) in which information about
188 maintainers who are deemed Missing In Action is recorded.  When a member of the
189 QA group contacts an inactive maintainer or finds more information about one,
190 this is recorded in the MIA database.  This system is available in
191 /org/qa.debian.org/mia on the host qa.debian.org, and can be queried with a
192 tool known as <command>mia-query</command>.  Use
193 </para>
194 <screen>
195 -query --help
196 </screen>
197 <para>
198 to see how to query the database.  If you find that no information has been
199 recorded about an inactive maintainer yet, or that you can add more
200 information, you should generally proceed as follows.
201 </para>
202 <para>
203 The first step is to politely contact the maintainer, and wait a reasonable
204 time for a response.  It is quite hard to define reasonable time, but it is
205 important to take into account that real life is sometimes very hectic.  One
206 way to handle this would be to send a reminder after two weeks.
207 </para>
208 <para>
209 If the maintainer doesn't reply within four weeks (a month), one can assume
210 that a response will probably not happen.  If that happens, you should
211 investigate further, and try to gather as much useful information about the
212 maintainer in question as possible.  This includes:
213 </para>
214 <itemizedlist>
215 <listitem>
216 <para>
217 The echelon information available through the <ulink
218 url="https://db.debian.org/">developers' LDAP database</ulink>, which indicates
219 when the developer last posted to a Debian mailing list.  (This includes
220 uploads via debian-*-changes lists.) Also, remember to check whether the
221 maintainer is marked as on vacation in the database.
222 </para>
223 </listitem>
224 <listitem>
225 <para>
226 The number of packages this maintainer is responsible for, and the condition of
227 those packages.  In particular, are there any RC bugs that have been open for
228 ages?  Furthermore, how many bugs are there in general?  Another important
229 piece of information is whether the packages have been NMUed, and if so, by
230 whom.
231 </para>
232 </listitem>
233 <listitem>
234 <para>
235 Is there any activity of the maintainer outside of Debian?  For example, they
236 might have posted something recently to non-Debian mailing lists or news
237 groups.
238 </para>
239 </listitem>
240 </itemizedlist>
241 <para>
242 A bit of a problem are packages which were sponsored — the maintainer is not
243 an official Debian developer.  The echelon information is not available for
244 sponsored people, for example, so you need to find and contact the Debian
245 developer who has actually uploaded the package.  Given that they signed the
246 package, they're responsible for the upload anyhow, and are likely to know what
247 happened to the person they sponsored.
248 </para>
249 <para>
250 It is also allowed to post a query to
251 <email>debian-devel@lists.debian.org</email>, asking if anyone is aware of the
252 whereabouts of the missing maintainer.  Please Cc: the person in question.
253 </para>
254 <para>
255 Once you have gathered all of this, you can contact
256 <email>mia@qa.debian.org</email>.  People on this alias will use the
257 information you provide in order to decide how to proceed.  For example, they
258 might orphan one or all of the packages of the maintainer.  If a package has
259 been NMUed, they might prefer to contact the NMUer before orphaning the package
260 — perhaps the person who has done the NMU is interested in the package.
261 </para>
262 <para>
263 One last word: please remember to be polite.  We are all volunteers and cannot
264 dedicate all of our time to Debian.  Also, you are not aware of the
265 circumstances of the person who is involved.  Perhaps they might be seriously
266 ill or might even have died — you do not know who may be on the receiving
267 side.  Imagine how a relative will feel if they read the e-mail of the deceased
268 and find a very impolite, angry and accusing message!
269 </para>
270 <para>
271 On the other hand, although we are volunteers, we do have a responsibility.  So
272 you can stress the importance of the greater good — if a maintainer does not
273 have the time or interest anymore, they should let go and give the package to
274 someone with more time.
275 </para>
276 <para>
277 If you are interested in working in the MIA team, please have a look at the
278 README file in /org/qa.debian.org/mia on qa.debian.org where the technical
279 details and the MIA procedures are documented and contact
280 <email>mia@qa.debian.org</email>.
281 </para>
282 </section>
283
284 <section id="newmaint">
285 <title>Interacting with prospective Debian developers</title>
286 <para>
287 Debian's success depends on its ability to attract and retain new and talented
288 volunteers.  If you are an experienced developer, we recommend that you get
289 involved with the process of bringing in new developers.  This section
290 describes how to help new prospective developers.
291 </para>
292 <section id="sponsoring">
293 <title>Sponsoring packages</title>
294 <para>
295 Sponsoring a package means uploading a package for a maintainer who is not able
296 to do it on their own, a new maintainer applicant.  Sponsoring a package also
297 means accepting responsibility for it.
298 </para>
299 <!-- FIXME: service down
300 <para>
301 If you wish to volunteer as a sponsor, you can sign up at <ulink
302 url="http://www.internatif.org/bortzmeyer/debian/sponsor/">http://www.internatif.org/bortzmeyer/debian/sponsor/</ulink>.
303 </para>
304 -->
305 <para>
306 New maintainers usually have certain difficulties creating Debian packages —
307 this is quite understandable.  That is why the sponsor is there, to check the
308 package and verify that it is good enough for inclusion in Debian.  (Note that
309 if the sponsored package is new, the ftpmasters will also have to inspect it
310 before letting it in.)
311 </para>
312 <para>
313 Sponsoring merely by signing the upload or just recompiling is <emphasis
314 role="strong">definitely not recommended</emphasis>.  You need to build the
315 source package just like you would build a package of your own.  Remember that
316 it doesn't matter that you left the prospective developer's name both in the
317 changelog and the control file, the upload can still be traced to you.
318 </para>
319 <para>
320 If you are an application manager for a prospective developer, you can also be
321 their sponsor.  That way you can also verify how the applicant is handling the
322 'Tasks and Skills' part of their application.
323 </para>
324 </section>
325
326 <section id="s7.5.2">
327 <title>Managing sponsored packages</title>
328 <para>
329 By uploading a sponsored package to Debian, you are certifying that the package
330 meets minimum Debian standards.  That implies that you must build and test the
331 package on your own system before uploading.
332 </para>
333 <para>
334 You cannot simply upload a binary <filename>.deb</filename> from the sponsoree.
335 In theory, you should only ask for the diff file and the location of the
336 original source tarball, and then you should download the source and apply the
337 diff yourself.  In practice, you may want to use the source package built by
338 your sponsoree.  In that case, you have to check that they haven't altered the
339 upstream files in the <filename>.orig.tar.gz</filename> file that they're
340 providing.
341 </para>
342 <para>
343 Do not be afraid to write the sponsoree back and point out changes that need to
344 be made.  It often takes several rounds of back-and-forth email before the
345 package is in acceptable shape.  Being a sponsor means being a mentor.
346 </para>
347 <para>
348 Once the package meets Debian standards, build and sign it with
349 </para>
350 <screen>
351 -buildpackage -k<replaceable>KEY-ID</replaceable>
352 </screen>
353 <para>
354 before uploading it to the incoming directory.  Of course, you can also use any
355 part of your <replaceable>KEY-ID</replaceable>, as long as it's unique in your
356 secret keyring.
357 </para>
358 <para>
359 The Maintainer field of the <filename>control</filename> file and the
360 <filename>changelog</filename> should list the person who did the packaging,
361 i.e., the sponsoree.  The sponsoree will therefore get all the BTS mail about
362 the package.
363 </para>
364 <para>
365 If you prefer to leave a more evident trace of your sponsorship job, you can
366 add a line stating it in the most recent changelog entry.
367 </para>
368 <para>
369 You are encouraged to keep tabs on the package you sponsor using <xref
370 linkend="pkg-tracking-system"/> .
371 </para>
372 </section>
373
374 <section id="s7.5.3">
375 <title>Advocating new developers</title>
376 <para>
377 See the page about <ulink
378 url="http://www.debian.org/devel/join/nm-advocate">advocating a prospective
379 developer</ulink> at the Debian web site.
380 </para>
381 </section>
382
383 <section id="s7.5.4">
384 <title>Handling new maintainer applications</title>
385 <para>
386 Please see <ulink
387 url="http://www.debian.org/devel/join/nm-amchecklist">Checklist for Application
388 Managers</ulink> at the Debian web site.
389 </para>
390 </section>
391
392 </section>
393
394 </chapter>
395