]> git.donarmstrong.com Git - debian/debian-policy.git/blob - upgrading-checklist.sgml
Policy: Remove reference to DEHS (dead service)
[debian/debian-policy.git] / upgrading-checklist.sgml
1 <!doctype debiandoc system>
2
3 <debiandoc>
4   <book> 
5     <title> Policy checklist for upgrading your packages </title>
6       <author> Bill Allombert <email/ballombe@debian.org/ </author>
7       <author> Josip Rodin </author>
8       <author> Julian Gilbey </author>
9       <author> Russ Allbery <email/rra@debian.org/ </author>
10       <author> Manoj Srivastava <email/srivasta@debian.org/
11
12 <chapt> About the checklist
13 <p>
14 The checklist below has been created to simplify the upgrading process
15 of old packages.  Note that this list is not "official"; it simply
16 gives an indication of what has changed and whether you are likely to
17 need to make changes to your package in light of this.  If you have
18 doubts about a certain topic, if you need more details, or if you
19 think some other package does not comply with policy, please refer to
20 the Policy Manual itself.  All of the changes from version 3.0.0
21 onwards indicate which section of the Policy Manual discusses the
22 issue: [3.4] means section 3.4.  The section numbering changed when
23 the packaging manual was incorporated into policy; the section numbers
24 used below refer to the current version.
25 <p>
26 Here is how the check list works: Check which policy version your
27 package was checked against last (indicated in the "Standards-Version"
28 field of the source package).  Then move upwards until the top and
29 check which of the items on the list might concern your package.  Note
30 which sections of policy discuss this, and then check out the Policy
31 Manual for details.  If you are upgrading from Policy version &lt; 2.5.0,
32 it may be easier to check through the whole of policy instead of
33 picking your way through this list.
34
35 <chapt> The checklist
36
37 <sect id="3.9.5.0"> Version 3.9.5.0
38 <p>
39
40 Released October, 2013.
41
42 </p><p><taglist>
43 <tag>5.1</tag>
44   <item>Control data fields must not start with the hyphen character
45   (<tt>-</tt>), to avoid potential confusions when parsing clearsigned control
46   data files that were not properly unescaped.
47   </item>
48 <tag>5.4, 5.6.24</tag>
49   <item><tt>Checksums-Sha1</tt> and <tt>Checksums-Sha256</tt> are now
50   mandatory in <file>.dsc</file> files.
51   </item>
52 <tag>5.6.25, 5.8.1</tag>
53   <item>The <tt>DM-Upload-Allowed</tt> field is obsolete.  Permissions
54   are now granted via <em>dak-commands</em> files.
55 <tag>5.6.27</tag>
56   <item>New section documenting the <tt>Package-List</tt> field in Debian
57   source control files.
58   </item>
59 <tag>5.6.28</tag>
60   <item>New section documenting the <tt>Package-Type</tt> field in source
61   package control files.
62   </item>
63 <tag>5.6.29</tag>
64   <item>New section documenting the <tt>Dgit</tt> field in Debian
65   source control files.
66   </item>
67 <tag>9.1.1.8</tag>
68   <item>The exception to the FHS for the <file>/selinux</file> was removed.
69   </item>
70 <tag>10.7.3</tag>
71   <item>Packages should remove all obsolete configuration files without
72   local changes during upgrades.  The <prgn>dpkg-maintscript-helper</prgn>
73   tool, available from the <package>dpkg</package> package since
74   <em>Wheezy</em>, can help with this.
75   </item>
76 <tag>10.10</tag>
77   <item>The name of the files and directories installed by binary packages
78   must be encoded in UTF-8 and should be restricted to ASCII when possible.
79   In the system PATH, they must be restricted to ASCII.
80   </item>
81 <tag>11.5.2</tag>
82   <item>Stop recommending to serve HTML documents from
83   <file>/usr/share/doc/<var>package</var></file>.
84   </item>
85 <tag>12.2</tag>
86   <item>Packages distributing Info documents should use
87   <package>install-info</package>'s trigger, and do not need anymore
88   to depend on <tt>dpkg (>= 1.15.4) | install-info</tt>.
89   </item>
90 <tag>debconf</tag>
91   <item>The <tt>escape</tt> capability is now documented.
92   </item>
93 <tag>virtual</tag>
94   <item><tt>mp3-decoder</tt> and <tt>mp3-encoder</tt> are removed.</item>
95 </taglist></p>
96
97 <sect id="3.9.4.0"> Version 3.9.4.0
98 <p>
99
100 Released August, 2012.
101
102 </p><p><taglist>
103 <tag>2.4</tag>
104   <item>New <em>tasks</em> archive section.
105   </item>
106 <tag>4.9</tag>
107   <item><tt>build-arch</tt> and <tt>build-indep</tt> are now mandatory
108   targets in <file>debian/rules</file>.
109   </item>
110 <tag>5.6.26</tag>
111   <item>New section documenting the <tt>Vcs-*</tt> fields, which are
112   already in widespread use.  Note the mechanism for specifying the Git
113   branch used for packaging in the Vcs-Git field.
114   </item>
115 <tag>7.1</tag>
116   <item>The deprecated relations &lt; and &gt; now must not be used.
117   </item>
118 <tag>7.8</tag>
119   <item>New <tt>Built-Using</tt> field, which must be used to document the
120   source packages for any binaries that are incorporated into this package
121   at build time.  This is used to ensure that the archive meets license
122   requirements for providing source for all binaries.
123   </item>
124 <tag>8.6</tag>
125   <item>Policy for dependencies between shared libraries and other
126   packages has been largely rewritten to document the <tt>symbols</tt>
127   system and more clearly document handling of shared library ABI
128   changes.  <file>symbols</file> files are now recommended
129   over <file>shlibs</file> files in most situations.  All maintainers of
130   shared library packages should review the entirety of this section.
131   </item>
132 <tag>9.1.1</tag>
133   <item>Packages must not assume the <file>/run</file> directory exists or
134   is usable without a dependency on <tt>initscripts (>= 2.88dsf-13.3)</tt>
135   until the stable release of Debian supports <file>/run</file>.
136   </item>
137 <tag>9.7</tag>
138   <item>Packages including MIME configuration can now rely on triggers and
139   do not need to call update-mime.</item>
140 <tag>9.11</tag>
141   <item>New section documenting general requirements for alternate init
142   systems and specific requirements for integrating with upstart.
143   </item>
144 <tag>12.5</tag>
145   <item>All copyright files must be encoded in UTF-8.
146   </item>
147 </taglist></p>
148
149 <sect id="3.9.3.0"> Version 3.9.3.0
150 <p>
151
152 Released February, 2012.
153
154 </p><p><taglist>
155 <tag>2.4</tag>
156   <item>New archive sections <em>education</em>, <em>introspection</em>,
157   and <em>metapackages</em> added.
158   </item>
159 <tag>5.6.8</tag>
160   <item>The <tt>Architecture</tt> field in <file>*.dsc</file> files may
161   now contain the value <tt>any all</tt> for source packages building both
162   architecture-independent and architecture-dependent packages.
163   </item>
164 <tag>7.1</tag>
165   <item>If a dependency is restricted to particular architectures, the
166   list of architectures must be non-empty.
167   </item>
168 <tag>9.1.1</tag>
169   <item><file>/run</file> is allowed as an exception to the FHS and
170   replaces <file>/var/run</file>.  <file>/run/lock</file>
171   replaces <file>/var/lock</file>.  The FHS requirements for the older
172   directories apply to these directories as well.  Backward compatibility
173   links will be maintained and packages need not switch to
174   referencing <file>/run</file> directly yet.  Files in <file>/run</file>
175   should be stored in a temporary file system.
176   </item>
177 <tag>9.1.4</tag>
178   <item>New section spelling out the requirements for packages that use
179   files in <file>/run</file>, <file>/var/run</file>,
180   or <file>/var/lock</file>.  This generalizes information previously only
181   in 9.3.2.
182   </item>
183 <tag>9.5</tag>
184   <item>Cron job file names must not contain <tt>.</tt> or <tt>+</tt> or
185   they will be ignored by cron.  They should replace those characters
186   with <tt>_</tt>.  If a package provides multiple cron job files in the
187   same directory, they should each start with the package name (possibly
188   modified as above), <tt>-</tt>, and then some suitable suffix.
189   </item>
190 <tag>9.10</tag>
191   <item>Packages using doc-base do not need to call install-docs anymore.
192   </item>
193 <tag>10.7.4</tag>
194   <item>Packages that declare the same <tt>conffile</tt> may see left-over
195   configuration files from each other even if they conflict.
196   </item>
197 <tag>11.8</tag>
198   <item>The Policy rules around Motif libraries were just a special case
199   of normal rules for non-free dependencies and were largely obsolete, so
200   they have been removed.
201   </item>
202 <tag>12.5</tag>
203   <item><file>debian/copyright</file> is no longer required to list the
204   Debian maintainers involved in the creation of the package (although
205   note that the requirement to list copyright information is unchanged).
206   </item>
207 <tag>copyright-format</tag>
208   <item>Version 1.0 of the "Machine-readable <file>debian/copyright</file>
209   file" specification is included.
210   </item>
211 <tag>mime</tag>
212   <item>This separate document has been retired and and its (short)
213   contents merged into Policy section 9.7.  There are no changes to the
214   requirements.
215   </item>
216 <tag>perl</tag>
217   <item>Packages may declare an interest in the <var>perl-major-upgrade</var> 
218   trigger to be notified of major upgrades of perl.
219   </item>
220 <tag>virtual</tag>
221   <item><tt>ttf-japanese-{mincho, gothic}</tt> is renamed to 
222         <tt>fonts-japanese-{mincho, gothic}</tt>.
223   </item>
224 </taglist></p>
225
226 <sect id="3.9.2.0"> Version 3.9.2.0
227 <p>
228
229 Released April, 2011.
230
231 </p><p><taglist>
232 <tag>*</tag>
233   <item>Multiple clarifications throughout Policy where "installed" was
234   used and the more precise terms "unpacked" or "configured" were
235   intended.
236   </item>
237 <tag>3.3</tag>
238   <item>The maintainer address must accept mail from Debian role accounts
239   and the BTS.  At least one human must be listed with their personal
240   email address in <tt>Uploaders</tt> if the maintainer is a shared email
241   address.  The duties of a maintainer are also clearer.
242   </item>
243 <tag>5</tag>
244   <item>All control fields are now classified as simple, folded, or
245   multiline, which governs whether their values must be a single line or
246   may be continued across multiple lines and whether line breaks are
247   significant.
248   </item>
249 <tag>5.1</tag>
250   <item>Parsers are allowed to accept paragraph separation lines
251   containing whitespace, but control files should use completely empty
252   lines.  Ordering of paragraphs is significant.  Field names must be
253   composed of printable ASCII characters except colon and must not begin
254   with #.
255   </item>
256 <tag>5.6.25</tag>
257   <item>The <tt>DM-Upload-Allowed</tt> field is now documented.
258   </item>
259 <tag>6.5</tag>
260   <item>The system state maintainer scripts can rely upon during each
261   possible invocation is now documented.  In several less-common cases,
262   this is stricter than Policy had previously documented.  Packages with
263   complex maintainer scripts should be reviewed in light of this new
264   documentation.
265   </item>
266 <tag>7.2</tag>
267   <item>The impact on system state when maintainer scripts that are part
268   of a circular dependency are run is now documented.  Circular
269   dependencies are now a should not.
270   </item>
271 <tag>7.2</tag>
272   <item>The system state when <prgn>postinst</prgn> and <prgn>prerm</prgn>
273   scripts are run is now documented, and the documentation of the special
274   case of dependency state for <prgn>postrm</prgn> scripts has been
275   improved.  <prgn>postrm</prgn> scripts are required to gracefully skip
276   actions if their dependencies are not available.
277   </item>
278 <tag>9.1.1</tag>
279   <item>GNU/Hurd systems are allowed <file>/hurd</file>
280   and <file>/servers</file> directories in the root filesystem.
281   </item>
282 <tag>9.1.1</tag>
283   <item>Packages installing to architecture-specific subdirectories of
284   <file>/usr/lib</file> must use the value returned by
285   <prgn>dpkg-architecture -qDEB_HOST_MULTIARCH</prgn>, not by
286   <prgn>dpkg-architecture -qDEB_HOST_GNU_TYPE</prgn>; this is a path change
287   on i386 architectures and a no-op for other architectures.
288   </item>
289 <tag>virtual</tag>
290   <item><tt>mailx</tt> is now a virtual package provided by packages that
291   install <prgn>/usr/bin/mailx</prgn> and implement at least the
292   POSIX-required interface.
293   </item>
294 </taglist></p>
295
296 <sect id="3.9.1.0"> Version 3.9.1.0
297 <p>
298
299 Released July, 2010.
300
301 </p><p><taglist>
302 <tag>3.2.1</tag>
303   <item>Date-based version components should be given as the four-digit
304   year, two-digit month, and then two-digit day, but may have embedded
305   punctuation.
306   </item>
307 <tag>3.9</tag>
308   <item>Maintainer scripts must pass <tt>--package</tt>
309   to <prgn>dpkg-divert</prgn> when creating or removing diversions and
310   must not use <tt>--local</tt>.
311   </item>
312 <tag>4.10</tag>
313   <item>Only <prgn>dpkg-gencontrol</prgn> supports variable substitution.
314   <prgn>dpkg-genchanges</prgn> (for <file>*.changes</file>)
315   and <prgn>dpkg-source</prgn> (for <file>*.dsc</file>) do not.
316   </item>
317 <tag>7.1</tag>
318   <item>Architecture restrictions and wildcards are also allowed in binary
319   package relationships provided that the binary package is not
320   architecture-independent.
321   </item>
322 <tag>7.4</tag>
323   <item><tt>Conflicts</tt> and <tt>Breaks</tt> should only be used when
324   there are file conflicts or one package breaks the other, not just
325   because two packages provide similar functionality but don't interfere.
326   </item>
327 <tag>8.1</tag>
328   <item>The SONAME of a library should change whenever the ABI of the
329   library changes in a way that isn't backward-compatible.  It should not
330   change if the library ABI changes are backward-compatible.  Discourage
331   bundling shared libraries together in one package.
332   </item>
333 <tag>8.4</tag>
334   <item>Ada Library Information (<file>*.ali</file>) files must be
335   installed read-only.
336   </item>
337 <tag>8.6.1, 8.6.2, 8.6.5</tag>
338   <item>Packages should normally not include a <file>shlibs.local</file>
339   file since we now have complete <file>shlibs</file> coverage.
340   </item>
341 <tag>8.6.3</tag>
342   <item>The SONAME of a library may instead be of the
343   form <tt><var>name</var>-<var>major-version</var>.so</tt>.
344   </item>
345 <tag>10.2</tag>
346   <item>Libtool <file>.la</file> files should not be installed for public
347   libraries.  If they're required (for <tt>libltdl</tt>, for instance),
348   the <tt>dependency_libs</tt> setting should be emptied.  Library
349   packages historically including <file>.la</file> files must continue to
350   include them (with <tt>dependency_libs</tt> emptied) until all libraries
351   that depend on that library have removed or emptied
352   their <file>.la</file> files.
353   </item>
354 <tag>10.2</tag>
355   <item>Libraries no longer need to be built with <tt>-D_REENTRANT</tt>,
356   which was an obsolete LinuxThreads requirement.  Instead, say explicitly
357   that libraries should be built with threading support and to be
358   thread-safe if the library supports this.
359   </item>
360 <tag>10.4</tag>
361   <item><file>/bin/sh</file> scripts may assume that <prgn>kill</prgn>
362   supports an argument of <tt>-<var>signal</var></tt>,
363   that <prgn>kill</prgn> and <prgn>trap</prgn> support the numeric signals
364   listed in the XSI extension, and that signal 13 (SIGPIPE) can be trapped
365   with <prgn>trap</prgn>.
366   </item>
367 <tag>10.8</tag>
368   <item>Use of <file>/etc/logrotate.d/<var>package</var></file> for
369   logrotate rules is now recommended.
370   </item>
371 <tag>10.9</tag>
372   <item>Control information files should be owned by <tt>root:root</tt>
373   and either mode 644 or mode 755.
374   </item>
375 <tag>11.4, 11.8.3, 11.8.4</tag>
376   <item>Packages providing alternatives for <prgn>editor</prgn>,
377   <prgn>pager</prgn>, <prgn>x-terminal-emulator</prgn>, or
378   <prgn>x-window-manager</prgn> should also provide a slave alternative
379   for the corresponding manual page.
380   </item>
381 <tag>11.5</tag>
382   <item>Cgi-bin executable files may be installed in subdirectories
383   of <file>/usr/lib/cgi-bin</file> and web servers should serve out
384   executables in those subdirectories.
385   </item>
386 <tag>12.5</tag>
387   <item>The GPL version 1 is now included in common-licenses and should be
388   referenced from there instead of included in the <file>copyright</file>
389   file.
390   </item>
391 </taglist></p>
392
393 <sect id="3.9.0.0"> Version 3.9.0.0
394 <p>
395
396 Released June, 2010.
397
398 </p><p><taglist>
399 <tag>4.4, 5.6.15</tag>
400   <item>The required format for the date in a changelog entry and in the
401   Date control field is now precisely specified.
402   </item>
403 <tag>5.1</tag>
404   <item>A control paragraph must not contain more than one instance of a
405   particular field name.
406   </item>
407 <tag>5.4, 5.5, 5.6.24</tag>
408   <item>The <tt>Checksums-Sha1</tt> and <tt>Checksums-Sha256</tt> fields
409   in <file>*.dsc</file> and <file>*.changes</file> files are now
410   documented and recommended.
411   </item>
412 <tag>5.5, 5.6.16</tag>
413   <item>The <tt>Format</tt> field of <file>.changes</file> files is now
414   1.8.  The <tt>Format</tt> field syntax for source
415   package <file>.dsc</file> files allows a subtype in parentheses, and it
416   is used for a different purpose than the <tt>Format</tt> field
417   for <file>.changes</file> files.
418   </item>
419 <tag>5.6.2</tag>
420   <item>The syntax of the <tt>Maintainer</tt> field is now must rather
421   than should.
422   </item>
423 <tag>5.6.3</tag>
424   <item>The comma separating entries in <tt>Uploaders</tt> is now must
425   rather than should.
426   </item>
427 <tag>5.6.8, 7.1, 11.1.1</tag>
428   <item>Architecture wildcards may be used in addition to specific
429   architectures in <file>debian/control</file> and <file>*.dsc</file>
430   Architecture fields, and in architecture restrictions in build
431   relationships.
432   </item>
433 <tag>6.3</tag>
434   <item>Maintainer scripts are no longer guaranteed to run with a
435   controlling terminal and must be able to fall back to noninteractive
436   behavior (debconf handles this).  Maintainer scripts may abort if there
437   is no controlling terminal and no reasonable default for a high-priority
438   question, but should avoid this if possible.
439   </item>
440 <tag>7.3, 7.6.1</tag>
441   <item><tt>Breaks</tt> should be used with <tt>Replaces</tt> for moving
442   files between packages.
443   </item>
444 <tag>7.4</tag>
445   <item><tt>Breaks</tt> should normally be used instead
446   of <tt>Conflicts</tt> for transient issues and moving files between
447   packages.  New documentation of when each should be used.
448   </item>
449 <tag>7.5</tag>
450   <item>Use <tt>Conflicts</tt> with <tt>Provides</tt> if only one provider
451   of a virtual facility can be installed at a time.
452   </item>
453 <tag>8.4</tag>
454   <item>All shared library development files are no longer required to be
455   in the <tt>-dev</tt> package, only be available when the <tt>-dev</tt>
456   package is installed.  This allows the <tt>-dev</tt> package to be split
457   as long as it depends on the additional packages.
458   </item>
459 <tag>9.2.2</tag>
460   <item>The UID range of user accounts is extended to 1000-59999.
461   </item>
462 <tag>9.3.2, 10.4</tag>
463   <item><file>init.d</file> scripts are a possible exception from the
464   normal requirement to use <tt>set -e</tt> in each shell script.
465   </item>
466 <tag>12.5</tag>
467   <item>The UCB BSD license was removed from the list of licenses that
468   should be referenced from <file>/usr/share/common-licenses/BSD</file>.
469   It should instead be included directly
470   in <file>debian/copyright</file>, although it will still be in
471   common-licenses for the time being.
472   </item>
473 <tag>debconf</tag>
474   <item><tt>SETTITLE</tt> is now documented (it has been supported for
475   some time).  <tt>SETTITLE</tt> is like <tt>TITLE</tt> but takes a
476   template instead of a string to allow translation.
477   </item>
478 <tag>perl</tag>
479   <item><package>perl-base</package> now
480   provides <package>perlapi-<var>abiname</var></package> instead of a
481   package based solely on the Perl version.  Perl packages must now depend
482   on <package>perlapi-$Config{debian_abi}</package>, falling back
483   on <tt>$Config{version}</tt> if <tt>$Config{debian_abi}</tt> is not set.
484   </item>
485 <tag>perl</tag>
486   <item>Packages using <file>Makefile.PL</file> should use
487   <tt>DESTDIR</tt> rather than <tt>PREFIX</tt> to install into the package
488   staging area.  <tt>PREFIX</tt> only worked due to a Debian-local patch.
489   </item>
490 </taglist></p>
491
492 <sect id="3.8.4.0"> Version 3.8.4.0
493 <p>
494
495 Release Jan 2010.
496
497 </p><p><taglist>
498 <tag>9.1.1</tag>
499   <item> An FHS exception has been granted for multiarch libraries.
500   Permitting files to instead be installed to <file>/lib/triplet</file> and
501   <file>/usr/lib/triplet</file> directories.
502   </item>
503 <tag>10.6</tag>
504   <item>Packages may not contain named pipes and should instead create
505   them in postinst and remove them in prerm or postrm.
506   </item>
507 <tag>9.1.1</tag>
508   <item><file>/sys</file> and <file>/selinux</file> directories are explicitly
509   allowed as an exception to the FHS.
510   </item>
511 </taglist></p>
512
513 <sect id="3.8.3.0"> Version 3.8.3.0
514 <p>
515 Released Aug 2009.
516
517 </p><p><taglist>
518 <tag>4.9</tag>
519   <item>DEB_*_ARCH_CPU and DEB_*_ARCH_OS variables are now documented and
520   recommended over GNU-style variables for that information.
521   </item>
522 <tag>5.6.8</tag>
523   <item>Source package Architecture fields may contain <em/all/ in
524   combination with other architectures.  Clarify when <em/all/ and <em/any/
525   may be used in different versions of the field.
526   </item>
527 <tag>5.6.14</tag>
528   <item>The Debian archive software does not support uploading
529   to multiple distributions with one <file>*.changes</file> file.
530   </item>
531 <tag>5.6.19</tag>
532   <item>The Binary field may span multiple lines.
533   </item>
534 <tag>10.2</tag>
535   <item>Shared library packages are no longer allowed to install libraries
536   in a non-standard location and modify <file/ld.so.conf/.  Packages
537   should either be installed in a standard library directory or packages
538   using them should be built with RPATH.
539   </item>
540 <tag>11.8.7</tag>
541   <item>Installation directories for X programs have been clarified.
542   Packages are no longer required to pre-depend on x11-common before
543   installing into <file>/usr/include/X11</file>
544   and <file>/usr/lib/X11</file>.
545   </item>
546 <tag>12.1</tag>
547   <item>Manual pages are no longer required to contain only characters
548   representable in the legacy encoding for that language.
549   </item>
550 <tag>12.1</tag>
551   <item>Localized man pages should either be kept up-to-date with
552   the original version or warn that they're not up-to-date, either
553   with warning text or by showing missing or changed portions in the
554   original language.
555   </item>
556 <tag>12.2</tag>
557   <item>install-info is now handled via triggers so packages no
558   longer need to invoke it in maintainer scripts.  Info documents
559   should now have directory sections and entries in the document.
560   Packages containing info documents should add a dependency to
561   support partial upgrades.
562   </item>
563 <tag>perl</tag>
564   <item>The requirement for Perl modules to have a versioned
565   Depend and Build-Depend on <tt>perl &gt;= 5.6.0-16</tt> has been removed.
566   </item>
567 </taglist></p>
568
569 <sect id="3.8.2.0"> Version 3.8.2.0
570 <p>
571
572 Released Jun 2009.
573
574 </p><p><taglist>
575 <tag>2.4</tag>
576   <item>The list of archive sections has been significantly expanded.  See
577   <url id="http://lists.debian.org/debian-devel-announce/2009/03/msg00010.html"
578   name="this debian-devel-announce message">
579   for the list of new sections and rules for how to categorize
580   packages.                                                
581   </item>
582 <tag>3.9.1</tag>
583   <item>All packages must use debconf or equivalent for user prompting,
584   though essential packages or their dependencies may also fall
585   back on other methods.                                   
586   </item>
587 <tag>5.6.1</tag>
588   <item>The requirements for source package names are now explicitly
589   spelled out.
590   </item>
591 <tag>9.1</tag>
592   <item>Legacy XFree86 servers no longer get a special exception from the
593   FHS permitting <file>/etc/X11/XF86Config-4</file>.
594   </item>
595 <tag>9.1.3</tag>
596   <item>Removed obsolete dependency requirements for packages that use
597   <file>/var/mail</file>.
598   </item>
599 <tag>11.8.5</tag>
600   <item>Speedo fonts are now deprecated.  The X backend was disabled
601   starting in lenny.                                       
602   </item>
603 <tag>12.5</tag>
604   <item>The GNU Free Documentation License version 1.3 is included in
605   common-licenses and should be referenced from there.     
606   </item>
607 </taglist></p>
608
609 <sect id="3.8.1.0"> Version 3.8.1.0
610 <p>
611
612 Released  Mar 2009.
613
614 </p><p><taglist>
615 <tag>3.8</tag>
616   <item>Care should be taken when adding functionality to essential and
617   such additions create an obligation to support that functionality
618   in essential forever unless significant work is done.    
619   </item>
620 <tag>4.4</tag>
621   <item>Changelog files must be encoded in UTF-8.                
622   </item>
623 <tag>4.4</tag>
624   <item>Some format requirements for changelog files are now "must"
625   instead of "should."
626   </item>
627 <tag>4.4.1</tag>
628   <item>Alternative changelog formats have been removed.  Debian only
629   supports one changelog format for the Debian Archive.
630   </item>
631 <tag>4.9.1</tag>
632   <item>New nocheck option for DEB_BUILD_OPTIONS indicating any build-time
633   test suite provided by the package should not be run.    
634   </item>
635 <tag>5.1</tag>
636   <item>All control files must be encoded in UTF-8.              
637   </item>
638 <tag>5.2</tag>
639   <item><file>debian/control</file> allows comment lines starting with #
640   with no preceding whitespace.
641   </item>
642 <tag>9.3</tag>
643   <item>Init scripts ending in .sh are not handled specially.  They are not
644   sourced and are not guaranteed to be run by <prgn>/bin/sh</prgn> regardless
645   of the #! line.  This brings Policy in line with the long-standing
646   behavior of the init system in Debian.
647   </item>
648 <tag>9.3.2</tag>
649   <item>The start action of an init script must exit successfully and not
650   start the daemon again if it's already running.          
651   </item>
652 <tag>9.3.2</tag>
653   <item><file>/var/run</file> and <file>/var/lock</file> may be mounted as
654   temporary filesystems, and init scripts must therefore create any necessary
655   subdirectories dynamically.                                             
656   </item>
657 <tag>10.4</tag>
658   <item> <file>/bin/sh</file> scripts may assume that local can take multiple
659    variable arguments and supports assignment.                       
660   </item>
661 <tag>11.6</tag>
662   <item>User mailboxes may be mode 600 and owned by the user rather than
663   mode 660, owned by user, and group mail.                 
664   </item>
665 </taglist></p>
666
667 <sect id="3.8.0.0"> Version 3.8.0.0
668 <p>
669
670 Released  Jun 2008.
671
672 </p><p><taglist>
673 <tag>2.4, 3.7</tag>
674 <item>The base section has been removed.  contrib and non-free have been
675   removed from the section list; they are only categories.  The base
676   system is now defined by priority.                       
677 <tag>4.9</tag>
678 <item>If <prgn>dpkg-source -x</prgn> doesn't provide the source that will be
679   compiled, a debian/rules patch target is recommended and should do whatever
680   else is necessary.
681 <tag>4.9.1, 10.1</tag>
682 <item>Standardized the format of DEB_BUILD_OPTIONS.  Specified permitted
683   characters for tags, required that tags be whitespace-separated,
684   allowed packages to assume non-conflicting tags, and required
685   unknown flags be ignored.                                
686 <tag>4.9.1</tag>
687 <item>Added parallel=n to the standardized DEB_BUILD_OPTIONS tags,
688   indicating that a package should be built using up to n parallel
689   processes if the package supports it                     
690 <tag>4.13</tag>
691 <item>Debian packages should not use convenience copies of code from other
692   packages unless the included package is explicitly intended to be
693   used that way.                                           
694 <tag>4.14</tag>
695 <item>If dpkg-source -x doesn't produce source ready for editing and
696   building with dpkg-buildpackage, packages should include a
697   <file>debian/README.source</file> file explaining how to generate
698   the patched source, add a new modification, and remove an existing
699   modification.  This file may also be used to document packaging a
700   new upstream release and any other complexity of the Debian build
701   process.                                                 
702 <tag>5.6.3</tag>
703 <item>The Uploaders field in debian/control may be wrapped.    
704 <tag>5.6.12</tag>
705 <item>An empty Debian revision is equivalent to a Debian revision of 0 in
706   a version number.                                        
707 <tag>5.6.23</tag>
708 <item>New Homepage field for upstream web sites.               
709 <tag>6.5, 6.6, 7</tag>
710 <item>The Breaks field declares that this package breaks another and
711   prevents installation of the breaking package unless the package
712   named in Breaks is deconfigured first.  This field should not be
713   used until the dpkg in Debian stable supports it.        
714 <tag>8.1, 8.2</tag>
715 <item>Clarify which files should go into a shared library package, into a
716   separate package, or into the -dev package.  Suggest -tools instead
717   of -runtime for runtime support programs, since that naming is more
718   common in Debian.                                        
719 <tag>9.5</tag>
720 <item>Files in <file>/etc/cron.{hourly,daily,weekly,monthly}</file> must be
721   configuration files (upgraded from should).  Mention the hourly
722   directory.                                               
723 <tag>11.8.6</tag>
724 <item>Packages providing <file>/etc/X11/Xresources</file> files need not
725   conflict with  <tt> xbase (&lt;&lt; 3.3.2.3a-2)</tt>, which is
726   long-obsolete.           
727 <tag>12.1</tag>
728 <item>Manual pages in locale-specific directories should use either the
729   legacy encoding for that directory or UTF-8.  Country names should
730   not be included in locale-specific manual page directories unless
731   indicating a significant difference in the language.  All
732   characters in the manual page source should be representable in the
733   legacy encoding for a locale even if the man page is encoded in
734   UTF-8.                                                   
735 <tag>12.5</tag>
736 <item>The Apache 2.0 license is now in common-licenses and should be
737   referenced rather than quoted in <file>debian/copyright</file>.
738 <tag>12.5</tag>
739 <item>Packages in contrib and non-free should state in the copyright file
740   that the package is not part of Debian GNU/Linux and briefly
741   explain why.                                             
742 <tag>debconf</tag>
743 <item>Underscore (_) is allowed in debconf template names.     
744 </taglist></p>
745
746 <sect id="3.7.3.0"> Version 3.7.3.0
747 <p>
748
749 Released  Dec 2007.
750
751 </p><p><taglist>
752 <tag>5.6.12</tag>
753 <item>Package version numbers may contain tildes, which sort before
754   anything, even the end of a part.                        
755 <tag>10.4</tag>
756 <item>Scripts may assume that <file>/bin/sh</file> supports local (at a basic
757   level) and that its test builtin (if any) supports -a and -o binary
758   logical operators.                                       
759 <tag>8.5</tag>
760 <item>The substitution variable ${binary:Version} should be used in place
761   of ${Source-Version} for dependencies between packages of the same
762   library.                                                 
763 <tag>menu policy</tag>
764 <item>Substantial reorganization and renaming of sections in the Debian
765   menu structure.  Packages with menu entries should be reviewed to
766   see if the menu section has been renamed or if one of the new
767   sections would be more appropriate.                      
768 <tag>5.6.1</tag>
769 <item>The Source field in a .changes file may contain a version number
770   in parentheses.                                          
771 <tag>5.6.17</tag>
772 <item>The acceptable values for the Urgency field are low, medium, high,
773   critical, or emergency.                                  
774 <tag>8.6</tag>
775 <item>The shlibs file now allows an optional type field, indicating the
776   type of package for which the line is valid.  The only currently
777   supported type is udeb, used with packages for the Debian
778   Installer.                                               
779 <tag>3.9.1</tag>
780 <item>Packages following the Debian Configuration management
781   specification must allow for translation of their messages by using
782   a gettext-based system such as po-debconf.               
783 <tag>12.5</tag>
784 <item>GFDL 1.2, GPL 3, and LGPL 3 are now in common-licenses and should
785   be referenced rather than quoted in debian/copyright.
786 </taglist></p>
787
788 <sect id="3.7.2.2"> Version 3.7.2.2
789 <p>
790
791 Released  Oct 2006.
792
793 </p><p><taglist>
794 <tag>6.1</tag> <item>Maintainer scripts must not be world writeable (up from a
795     should to a must)</item>   
796 </taglist></p>
797
798 <sect id="3.7.2.0"> Version 3.7.2.0
799 <p>
800
801 Released  Apr 2006.
802
803 </p><p><taglist>
804 <tag>11.5</tag> <item>Revert the cgi-lib change. </item>
805 </taglist></p>
806
807 <sect id="3.7.1.0"> Version 3.7.1.0
808 <p>
809
810 Released  Apr 2006.
811
812 </p><p><taglist>
813 <tag>10.2</tag>
814 <item>It is now possible to create shared libraries without
815   relocatable code (using -fPIC) in certain exceptional cases,
816   provided some procedures are followed, and for creating static
817   libraries with relocatable code (again, using -fPIC).
818   Discussion on debian-devel@lists.debian.org, getting a rough
819   consensus, and documenting it in README.Debian constitute most
820   of the process.                                          
821 <tag>11.8.7</tag>
822 <item>Packages should install any relevant files into the directories
823   <file>/usr/include/X11/</file> and <file>/usr/lib/X11/</file>, but if
824   they do so, they must pre-depend on <tt>x11-common (&gt;= 1:7.0.0)</tt>
825 </taglist></p>
826
827 <sect id="3.7.0.0"> Version 3.7.0.0
828 <p>
829
830 Released  Apr 2006.
831
832 </p><p><taglist>
833 <tag>11.5</tag>
834 <item>Packages shipping web server CGI files are expected to install
835   them in <file>/usr/lib/cgi-lib/</file> directories.  This location change
836   perhaps should be documented in NEWS                     
837 <tag>11.5</tag>
838 <item>Web server packages should include a standard scriptAlias of
839   cgi-lib to <file>/usr/lib/cgi-lib</file>.
840 <tag>9.1.1</tag>
841 <item>The version of FHS mandated by policy has been upped to
842   2.3. There should be no changes required for most packages,
843   though new top level directories <file>/media</file>, <file>/srv</file>,
844   etc.  may be of interest.
845 <tag>5.1, 5.6.3</tag>
846 <item>All fields, apart from the Uploaders field, in the control file
847   are supposed to be a single logical line, which may be spread
848   over multiple physical  lines (newline followed by space is
849   elided).  However, any parser for the control file must allow
850   the Uploaders field to be spread over multiple physical lines
851   as well, to prepare for future changes.
852 <tag>10.4</tag>
853 <item>When scripts are installed into a directory in the system
854   PATH, the script name should not include an extension that
855   denotes the scripting language currently used to implement it.
856
857 <tag>9.3.3.2</tag>
858 <item>packages that invoke initscripts now must use invoke-rc.d to do
859   so since it also pays attention to run levels and other local
860   constraints.
861 <tag>11.8.5.2, 11.8.7, etc</tag>
862 <item>We no longer use <file>/usr/X11R6</file>, since we have
863   migrated away to using Xorg paths. This means, for one thing, fonts
864   live in <file>/usr/share/fonts/X11/</file> now, and <file>/usr/X11R6</file>
865   is gone.
866 </taglist></p>
867
868 <sect id="3.6.2.0"> Version 3.6.2.0
869 <p>
870
871 Released  2005
872
873 </p><p><taglist>
874 <tag></tag>
875 <item>Recommend. doc-base, and not menu, for registering package documentation.
876 </item>
877 <tag>8.1</tag>
878 <item>Run time support programs should live in subdirectories of
879   <file>/usr/lib/</file> or <file>/usr/share</file>, and preferably the shared
880   lib is named the same as the package name (to avoid name collisions).
881 </item>
882 <tag>11.5</tag>
883 <item>It is recommended that HTTP servers provide an alias /images to
884   allow packages to share image files with the web server
885 </item>
886 </taglist></p>
887
888 <sect id="3.6.1.0"> Version 3.6.1.0
889 <p>
890
891 Released  Aug 2003.
892
893 </p><p><taglist>
894 <tag>3.10.1</tag>
895 <item>Prompting the user should be done using debconf. Non debconf
896   user prompts are now deprecated.
897 </taglist></p>
898
899 <sect id="3.6.0.0"> Version 3.6.0
900 <p>
901
902 Released  Jul 2003.
903
904 </p><p><taglist>
905 <tag></tag>
906 <item>Restructuring causing shifts in section numbers and bumping of
907   the minor version number:
908 <tag></tag>
909 <item>Many packaging manual appendices that were integrated into policy
910   sections are now empty, and replaced with links to the Policy.
911   In particular, the appendices that included the list of control
912   fields were updated (new fields like Closes, Changed-By were added)
913   and the list of fields for each of control, .changes and .dsc files
914   is now in Policy, and they're marked mandatory, recommended or
915   optional based on the current practice and the behavior of the
916   deb-building tool-chain.
917 <tag></tag>
918 <item>Elimination of needlessly deep section levels, primarily in the
919   chapter Debian Archive, from which two new chapters were split out,
920   Binary packages and Source packages. What remained was reordered
921   properly, that is, some sects became sects etc.
922 <tag></tag>
923 <item>Several sections that were redundant, crufty or simply not designed
924   with any sort of vision, were rearranged according to the formula that
925   everything should be either in the same place or properly interlinked.
926   Some things remained split up between different chapters when they
927   talked about different aspects of files: their content, their syntax,
928   and their placement in the file system. In particular, see the new
929   sections about changelog files.
930 <tag>menu policy</tag>
931 <item>Added Games/Simulation and Apps/Education to menu
932   sub-policy
933 <tag>C.2.2</tag>
934 <item>Debian changelogs should be UTF-8 encoded.
935 <tag>10.2</tag>
936 <item>shared libraries must be linked against all libraries that they
937   use symbols from in the same way that binaries are.
938 <tag>7.6</tag>
939 <item>build-depends-indep need not be satisfied during clean
940   target.
941 </taglist></p>
942
943 <sect id="3.5.10.0"> Version 3.5.10
944 <p>
945
946 Released  May 2003.
947
948 </p><p><taglist>
949 <tag>11.8.3</tag>
950 <item>packages providing the x-terminal-emulator virtual package
951   ought to ensure that they interpret the command line exactly
952   like xterm does.
953 <tag>11.8.4</tag>
954 <item>Window managers compliant with the Window Manager Specification
955   Project may add 40 points for ranking in the alternatives
956 </taglist></p>
957
958 <sect id="3.5.9.0"> Version 3.5.9.0
959 <p>
960
961 Released  Mar 2003.
962
963 </p><p><taglist>
964 <tag>3.4.2</tag>
965 <item>The section describing the Description: package field once again has
966   full details of the long description format.
967 <tag>4.2</tag>
968 <item>Clarified that if a package has non-build-essential
969   build-dependencies, it should have them listed in the Build-Depends
970   and related fields (i.e. it's not merely optional).
971 <tag>9.3.2</tag>
972 <item>When asked to restart a service that isn't already running,
973   the init script should start the service.
974 <tag>12.6</tag>
975 <item>If the purpose of a package is to provide examples, then the
976   example files can be installed into <file>/usr/share/doc/package</file>
977   (rather than <file>/usr/share/doc/package/examples</file>).
978 </taglist></p>
979
980 <sect id="3.5.8.0"> Version 3.5.8.0
981 <p>
982
983 Released  Nov 2002.
984
985 </p><p><taglist>
986 <tag>12.7</tag>
987 <item>It is no longer necessary to keep a log of changes to the upstream
988   sources in the copyright file. Instead, all such changes should be
989   documented in the changelog file.
990 <tag>7.6</tag>
991 <item><var/Build-Depends/, <var/Build-Conflicts/, <var/Build-Depends-Indep/,
992   and <var/Build-Conflicts-Indep/ must also be satisfied when the clean
993   target is called.
994 <tag>menu policy</tag>
995 <item>A new Apps/Science menu section is available
996 <tag>debconf policy</tag>
997 <item>debconf specification cleared up, various changes.
998 <tag>12.1</tag>
999 <item>It is no longer recommended to create symlinks from nonexistent
1000   manual pages to undocumented(7). Missing manual pages for programs
1001   are still a bug.
1002 </taglist></p>
1003
1004 <sect id="3.5.7.0"> Version 3.5.7.0
1005 <p>
1006
1007 Released  Aug 2002.
1008
1009 </p><p><taglist>
1010 <tag></tag>
1011 <item>Packages no longer have to ask permission to call MAKEDEV in
1012   postinst, merely notifying the user ought to be enough.
1013 <tag>2.2.4</tag>
1014 <item>cryptographic software may now be included in the main
1015   archive.
1016 <tag>3.9</tag>
1017 <item>task packages are no longer permitted; tasks are now created by a
1018   special Tasks: field in the control file.
1019 <tag>11.8.4</tag>
1020 <item>window managers that support netwm can now add 20 points when
1021   they add themselves as an alternative for
1022  <file>/usr/bin/x-window-manager</file>
1023 <tag>10.1</tag>
1024 <item>The default compilation options have now changed, one should
1025   provide debugging symbols in all cases, and optionally step
1026   back optimization to -O0, depending on the DEB_BUILD_OPTIONS
1027   environment variable.
1028 <tag>7.6, 4.8</tag>
1029 <item>Added mention of build-arch, build-indep, etc, in describing
1030   the relationships with `Build-Depends', `Build-Conflicts',
1031   `Build-Depends-Indep', and `Build-Conflicts-Indep'. May need to
1032   review the new rules.
1033 <tag>8</tag>
1034 <item>Changed rules on how, and when, to invoke ldconfig in maintainer
1035   scripts. Long rationale.
1036 </taglist></p>
1037
1038 <p><em>
1039 Added the last note in 3.5.6 upgrading checklist item regarding build
1040 rules, please see below
1041 </em></p>
1042
1043 <sect id="3.5.6.0"> Version 3.5.6.0
1044 <p>
1045
1046 Released  Jul 2001.
1047
1048 </p><p><taglist>
1049 <tag>2.5</tag>
1050 <item>Emacs and TeX are no longer mandated by policy to be priority
1051   standard packages
1052 <tag>11.5</tag>
1053 <item>Programs that access docs need to do so via <file>/usr/share/doc</file>,
1054   and not via <file>/usr/doc/</file> as was the policy previously
1055 <tag>12.3</tag>
1056 <item>Putting documentation in <file>/usr/doc</file> versus
1057  <file>/usr/share/doc</file> is now a ``serious'' policy violation.
1058 <tag>11.5</tag>
1059 <item>For web servers, one should not provide non-local access to the
1060   <file>/usr/share/doc</file> hierarchy. If one can't provide access
1061   controls for the http://localhost/doc/ directory, then it is preferred
1062   that one ask permission to expose that information during the install.
1063 <tag>7</tag>
1064 <item>There are new rules for build-indep/build-arch targets and
1065   there is a new Build-Depend-Indep semantic.
1066 </taglist></p>
1067
1068 <sect id="3.5.5.0"> Version 3.5.5.0
1069 <p>
1070
1071 Released  May 2001.
1072
1073 </p><p><taglist>
1074 <tag>12.1</tag>
1075 <item>Manpages should not rely on header information to have
1076   alternative manpage names available; it should only use
1077   symlinks or .so pages to do this
1078 </item>
1079 <tag></tag>
1080 <item><em> Clarified note in 3.5.3.0 upgrading checklist regarding
1081    examples and templates: this refers only to those examples used
1082    by scripts; see section 10.7.3 for the whole story</em>
1083 </item>
1084 <tag></tag>
1085 <item>Included a new section 10.9.1 describing the use of
1086   dpkg-statoverride; this does not have the weight of policy
1087 </item>
1088 <tag></tag>
1089 <item>Clarify Standards-Version: you don't need to rebuild your
1090   packages just to change the Standards-Version!
1091 </item>
1092 <tag>10.2</tag>
1093 <item>Plugins are no longer bound by all the rules of shared
1094   libraries
1095 </item>
1096 <tag>X Windows related things:</tag>
1097 <item><taglist>
1098   <tag>11.8.1</tag>
1099   <item>Clarification of priority levels of X Window System related
1100       packages
1101   </item>
1102   <tag>11.8.3</tag>
1103   <item>Rules for defining x-terminal-emulator improved </item>
1104   <tag>11.8.5</tag>
1105   <item>X Font policy rewritten: you must read this if you provide
1106       fonts for the X Window System
1107   </item>
1108   <tag>11.8.6</tag>
1109   <item>Packages must not ship <file>/usr/X11R6/lib/X11/app-defaults/</file>
1110   </item>
1111   <tag>11.8.7</tag>
1112   <item>X-related packages should usually use the regular FHS
1113       locations; imake-using packages are exempted from this
1114   </item>
1115   <tag>11.8.8</tag>
1116   <item>OpenMotif linked binaries have the same rules as
1117       OSF/Motif-linked ones
1118   </item>
1119   </taglist></item>
1120 </taglist></p>
1121
1122 <sect id="3.5.4.0"> Version 3.5.4.0
1123 <p> Released  Apr 2001.
1124
1125 </p><p><taglist>
1126 <tag>11.6</tag>
1127 <item>The system-wide mail directory is now /var/mail, no longer
1128   /var/spool/mail.  Any packages accessing the mail spool should
1129   access it via /var/mail and include a suitable Depends field;
1130 </item>
1131 <tag>11.9; perl-policy</tag>
1132 <item>The perl policy is now part of Debian policy
1133   proper. Perl programs and modules should follow the current Perl
1134   policy
1135 </item>
1136 </taglist></p>
1137
1138 <sect id="3.5.3.0"> Version 3.5.3.0
1139 <p> Released Apr 2001
1140
1141 </p><p><taglist>
1142 <tag>7.1</tag>
1143 <item>Build-Depends arch syntax has been changed to be less
1144   ambiguous. This should not affect any current packages
1145 </item>
1146 <tag>10.7.3</tag>
1147 <item>Examples and templates files for use by scripts should now live
1148   in <file>/usr/share/&lt;package&gt;</file> or
1149   <file>/usr/lib/&lt;package&gt;</file>, with symbolic links from
1150   <file>/usr/share/doc/&lt;package&gt;/examples</file> as needed
1151 </item>
1152 </taglist></p>
1153
1154 <sect id="3.5.2.0"> Version 3.5.2.0
1155
1156 <p> Released Feb 2001.
1157
1158 </p><p><taglist>
1159 <tag>11.8.6</tag>
1160 <item>X app-defaults directory has moved from
1161   <file>/usr/X11R6/lib/X11/app-defaults</file> to
1162   <file>/etc/X11/app-defaults</file>
1163 </item>
1164 </taglist></p>
1165
1166 <sect id="3.5.1.0"> Version 3.5.1.0
1167
1168 <p> Released Feb 2001.
1169
1170 </p><p><taglist>
1171 <tag>8.1</tag>
1172 <item>dpkg-shlibdeps now uses objdump, so shared libraries have to be
1173   run through dpkg-shlibdeps as well as executables
1174 </item>
1175 </taglist></p>
1176
1177 <sect id="3.5.0.0"> Version 3.5.0.0
1178
1179 <p> Released Jan 2001.
1180
1181 </p><p><taglist>
1182 <tag>11.8.5</tag>
1183 <item>Font packages for the X Window System must now declare a
1184   dependency on xutils (>= 4.0.2)
1185 </item>
1186 </taglist></p>
1187
1188 <sect id="3.2.1.1"> Version 3.2.1.1
1189
1190 <p> Released Jan 2001.
1191
1192 </p><p><taglist>
1193 <tag>9.3.2</tag>
1194 <item>Daemon startup scripts in <file>/etc/init.d/</file> should not contain
1195   modifiable parameters; these should be moved to a file in
1196   <file>/etc/default/</file>
1197 </item>
1198 <tag>12.3</tag>
1199 <item>Files in <file>/usr/share/doc</file> must not be referenced by any
1200   program.  If such files are needed, they must be placed in
1201   <file>/usr/share/&lt;package&gt;/</file>, and symbolic links
1202   created as required in <file>/usr/share/doc/&lt;package&gt;/</file>
1203 </item>
1204 <tag></tag>
1205 <item>Much of the packaging manual has now been imported into the
1206   policy document
1207 </item>
1208 </taglist></p>
1209
1210 <sect id="3.2.1.0"> Version 3.2.1.0
1211
1212 <p> Released Aug 00.
1213
1214 </p><p><taglist>
1215 <tag>11.8.1</tag>
1216 <item>A package of priority standard or higher may provide two
1217   binaries, one compiled with support for the X Window System,
1218   and the other without
1219 </item>
1220 </taglist></p>
1221
1222 <sect id="3.2.0.0"> Version 3.2.0.0
1223
1224 <p> Released Aug 00.
1225
1226 </p><p><taglist>
1227 <tag>10.1</tag>
1228 <item>By default executables should not be built with the debugging
1229   option -g. Instead, it is recommended to support building the
1230   package with debugging information optionally.
1231 </item>
1232 <tag>12.8</tag>
1233 <item>Policy for packages where the upstream uses HTML changelog
1234   files has been expanded.  In short, a plain text changelog file
1235   should always be generated for the upstream changes
1236 </item>
1237 <tag></tag>
1238 <item>Please note that the new release of the X window system (3.2)
1239   shall probably need sweeping changes in policy
1240 </item>
1241 <tag></tag>
1242 <item>Policy for packages providing the following X-based features
1243   has been codified:
1244   <taglist>
1245   <tag>11.8.2</tag>
1246   <item>X server (virtual package xserver) </item>
1247   <tag>11.8.3</tag>
1248   <item>X terminal emulator (virtual package x-terminal-emulator) </item>
1249   <tag>11.8.4</tag>
1250   <item>X window manager (virtual package x-window-manager, and
1251       <file>/usr/bin/x-window-manager</file> alternative, with priority
1252       calculation guidelines)
1253   </item>
1254   <tag>12.8.5</tag>
1255   <item>X fonts (this section has been written from scratch) </item>
1256   <tag>11.8.6</tag>
1257   <item>X application defaults </item>
1258   </taglist>
1259 </item>
1260 <tag>11.8.7</tag>
1261 <item>Policy for packages using the X Window System and FHS issues
1262   has been clarified;
1263 </item>
1264 <tag>11.7.3</tag>
1265 <item>No package may contain or make hard links to conffiles </item>
1266 <tag>8</tag>
1267 <item>Noted that newer dpkg versions do not require extreme care in
1268   always creating the shared lib before the symlink, so the unpack
1269   order be correct
1270 </item>
1271 </taglist></p>
1272
1273 <sect id="3.1.1.0"> Version 3.1.1.0
1274
1275 <p> Released Nov 1999.
1276
1277 </p><p><taglist>
1278 <tag>7.1</tag>
1279 <item>Correction to semantics of architecture lists in Build-Depends
1280   etc.  Should not affect many packages
1281 </item>
1282 </taglist></p>
1283
1284 <sect id="3.1.0.0"> Version 3.1.0.0
1285
1286 <p> Released Oct 1999.
1287
1288 </p><p><taglist>
1289 <tag>defunct</tag>
1290 <item><file>/usr/doc/&lt;package&gt;</file> has to be a symlink pointing to
1291   <file>/usr/share/doc/&lt;package&gt;</file>, to be maintained by postinst
1292   and prerm scripts.
1293 </item>
1294 <tag>7.1, 7.6</tag>
1295 <item>Introduced source dependencies (Build-Depends, etc.) </item>
1296 <tag>9.3.4</tag>
1297 <item><file>/etc/rc.boot</file> has been deprecated in favour of
1298   <file>/etc/rcS.d</file>.  (Packages should not be touching this directory,
1299   but should use update-rc.d instead)
1300 </item>
1301 <tag>9.3.3</tag>
1302 <item>update-rc.d is now the <em>only</em> allowable way of accessing the
1303   <file>/etc/rc?.d/[SK]??*</file> links.  Any scripts which manipulate them
1304   directly must be changed to use update-rc.d instead.  (This is
1305   because the file-rc package handles this information in an
1306   incompatible way.)
1307 </item>
1308 <tag>12.7</tag>
1309 <item>Architecture-specific examples go in
1310   <file>/usr/lib/&lt;package&gt;/examples</file>
1311   with symlinks from <file>/usr/share/doc/&lt;package&gt;/examples/*</file>
1312   or from <file>/usr/share/doc/&lt;package&gt;/examples</file> itself
1313 </item>
1314 <tag>9.1.1</tag>
1315 <item>Updated FHS to a 2.1 draft; this reverts <file>/var/state</file> to
1316   <file>/var/lib</file>
1317 </item>
1318 <tag>9.7; mime-policy</tag>
1319 <item>Added MIME sub-policy document </item>
1320 <tag>12.4</tag>
1321 <item>VISUAL is allowed as a (higher priority) alternative to EDITOR
1322 </item>
1323 <tag>11.6</tag>
1324 <item>Modified liblockfile description, which affects
1325   mailbox-accessing programs.  Please see the policy document for
1326   details
1327 </item>
1328 <tag>12.7</tag>
1329 <item>If a package provides a changelog in HTML format, a text-only
1330   version should also be included.  (Such a version may be prepared
1331   using <prgn>lynx -dump -nolist</prgn>.)
1332 </item>
1333 <tag>3.2.1</tag>
1334 <item>Description of how to handle version numbers based on dates
1335   added
1336 </item>
1337 </taglist></p>
1338
1339 <sect id="3.0.1.0"> Version 3.0.1.0
1340
1341 <p> Released Jul 1999.
1342
1343 </p><p><taglist>
1344 <tag>10.2</tag>
1345 <item>Added the clarification that the .la files are essential for
1346   the packages using libtool's libltdl library, in which case the .la
1347   files must go in the run-time library package
1348 </item>
1349 </taglist></p>
1350
1351 <sect id="3.0.0.0"> Version 3.0.0.0
1352
1353 <p> Released Jun 1999.
1354
1355 </p><p><taglist>
1356 <tag>9.1</tag>
1357 <item>Debian formally moves from the FSSTND to the FHS. This is a
1358   major change, and the implications of this move are probably
1359   not all known.
1360 </item>
1361 <tag>4.1</tag>
1362 <item>Only 3 digits of the Standards version need be included in
1363   control files, though all four digits are still permitted.
1364 </item>
1365 <tag>12.6</tag>
1366 <item>The location of the GPL has changed to
1367   <file>/usr/share/common-licenses</file>. This may require changing the
1368   copyright files to point to the correct location of the GPL and
1369   other major licenses
1370 </item>
1371 <tag>10.2</tag>
1372 <item>Packages that use libtool to create shared libraries must
1373   include the .la files in the -dev packages
1374 </item>
1375 <tag>10.8</tag>
1376 <item>Use logrotate to rotate log files
1377 </item>
1378 <tag>now 11.8</tag>
1379 <item>section 5.8 has been rewritten (Programs for the X Window
1380   System)
1381 </item>
1382 <tag>9.6; menu-policy</tag>
1383 <item>There is now an associated menu policy, in a separate document,
1384   that carries the full weight of Debian policy
1385 </item>
1386 <tag>11.3</tag>
1387 <item>Programs which need to modify the files <file>/var/run/utmp</file>,
1388   <file>/var/log/wtmp</file> and <file>/var/log/lastlog</file> must be
1389   installed setgid utmp
1390 </item>
1391 </taglist></p>
1392 <p><em>
1393    Please note that section numbers below this point may not be up to date
1394 </em></p>
1395
1396 <sect id="2.5.0.0"> Version 2.5.0.0
1397
1398 <p> Released Oct 1998.
1399
1400 Policy Manual:
1401 </p><p><list>
1402 <item>Rearranged the manual to create a new Section 4, Files
1403   <list>
1404   <item>Section 3.3 ("Files") was moved to Section 4. The Sections
1405     that  were Section 4 and Section 5 were  moved down to become
1406     Section 5 and Section 6.
1407   </item>
1408   <item>What was Section 5.5 ("Log files") is now a subsection of the
1409     new Section 4 ("Files"), becoming section 4.8, placed after
1410     "Configuration files", moving the Section 4.8 ("Permissions
1411     and owners") to Section 4.9.  All subsections of the old
1412     Section 5 after 5.5  were moved down to fill in the number
1413     gap.
1414   </item>
1415   </list></item>
1416 <item>Modified the section about changelog files to accommodate
1417   upstream changelogs which were formatted as HTML. These
1418   upstream changelog files should now be accessible as
1419   <file>/usr/doc/package/changelog.html.gz</file>
1420 </item>
1421 <item>Symlinks are permissible to link the real, or upstream,
1422     changelog name to the Debian mandated name.
1423 </item>
1424 <item>Clarified that HTML documentation should be present in some
1425   package, though not necessarily the main binary package.
1426   </item>
1427 <item>Corrected all references to the location of the copyright
1428   files. The correct location is <file>/usr/doc/package/copyright</file>
1429   </item>
1430 <item>Ratified the architecture specification strings to cater to the
1431   HURD.
1432   </item>
1433 </list></p>
1434
1435 <sect id="2.4.1.0"> Version 2.4.1.0
1436
1437 <p> Released Apr 1998.
1438 </p>
1439 <sect1> Policy Manual:
1440 <p><taglist>
1441 <tag>Updated section 3.3.5 Symbolic links:</tag>
1442   <item>symbolic links within a toplevel directory should be relative,
1443     symbolic links between toplevel directories should be absolute
1444     (cf., Policy Weekly Issue#6, topic 2)
1445   </item>
1446
1447 <tag>Updated section 4.9 Games:</tag>
1448   <item>manpages for games should be installed in <file>/usr/man/man6</file>
1449     (cf., Policy Weekly Issue#6, topic 3)
1450   </item>
1451 </taglist></p>
1452
1453 <sect1> Packaging Manual:
1454 <p><list>
1455 <item>Updated prefix of chapter 12, Shared Libraries:
1456   ldconfig must be called in the postinst script if the package
1457   installs shared libraries
1458   (cf., Policy Weekly Issue #6, fixes:bug#20515)
1459 </item>
1460 </list></p>
1461
1462 <sect id="2.4.0.0"> Version 2.4.0.0
1463
1464 <p> Released Jan 1998
1465
1466 </p><p><taglist>
1467 <tag>Updated section 3.3.4 Scripts:</tag>
1468   <item><list>
1469   <item>/bin/sh may be any POSIX compatible shell
1470   <item>scripts including bashisms have to specify <file>/bin/bash</file>
1471     as interpreter
1472   <item>scripts which create files in world-writable directories
1473     (e.g., in <file>/tmp</file>) should use tempfile or mktemp for creating
1474     the directory
1475   </list></item>
1476
1477 <tag>Updated section 3.3.5 Symbolic Links:</tag>
1478   <item>symbolic links referencing compressed files must have the same
1479     file extension as the referenced file
1480   </item>
1481
1482 <tag>Updated section 3.3.6 Device files:</tag>
1483   <item><file>/dev/tty*</file> serial devices should be used instead of
1484   <file>/dev/cu*</file>
1485   </item>
1486
1487 <tag>Updated section 3.4.2 Writing the scripts in <file>/etc/init.d</file>:
1488   <item><list>
1489   <item>all <file>/etc/init.d</file> scripts have to provide the following
1490   options: start, stop, restart, force-reload
1491   <item>the reload option is optional and must never stop and restart
1492     the service
1493   </list></item>
1494
1495 <tag>Updated section 3.5 Cron jobs:
1496   <item>cron jobs that need to be executed more often than daily should
1497     be installed into <file>/etc/cron.d</file>
1498   </item>
1499
1500 <tag>Updated section 3.7 Menus:
1501   <item>removed section about how to register HTML docs to `menu'
1502     (the corresponding section in 4.4, Web servers and applications,
1503     has been removed in policy 2.2.0.0 already, so this one was
1504     obsolete)
1505   </item>
1506
1507 <tag>New section 3.8 Keyboard configuration:
1508   <item>details about how the backspace and delete keys should be
1509     handled
1510   </item>
1511
1512 <tag>New section 3.9 Environment variables:
1513   <item>no program must depend on environment variables to get a
1514     reasonable default configuration
1515   </item>
1516
1517 <tag>New section 4.6 News system configuration:
1518   <item><file>/etc/news/organization</file> and <file>/etc/news/server</file>
1519     should be supported by all news servers and clients
1520   </item>
1521
1522 <tag>Updated section 4.7 Programs for the X Window System:
1523   <item><list>
1524   <item>programs requiring a non-free Motif library should be provided
1525     as foo-smotif and foo-dmotif package
1526   </item>
1527   <item>if lesstif works reliably for such program, it should be linked
1528     against lesstif and not against a non-free Motif library
1529   </item>
1530   </list></item>
1531
1532 <tag>Updated section 4.9 Games:
1533   <item>games for X Windows have to be installed in <file>/usr/games</file>,
1534   just as non-X games
1535   </item>
1536 </taglist></p>
1537
1538 <sect id="2.3.0.0"> Version 2.3.0.1, 2.3.0.0
1539
1540 <p> Released Sep 1997.
1541
1542 <p><list>
1543 <item>new section `4.2 Daemons' including rules for
1544   <file>/etc/services</file>, <file>/etc/protocols</file>,
1545   <file>/etc/rpc</file>, and <file>/etc/inetd.conf</file>
1546 </item>
1547
1548 <item>updated section about `Configuration files':
1549   packages may not touch other packages' configuration files
1550 </item>
1551
1552 <item>MUAs and MTAs have to use liblockfile</item>
1553 </list></p>
1554
1555 <sect id="2.2.0.0"> Version 2.2.0.0
1556
1557 <p> Released July 1997.
1558
1559 <p><list>
1560 <item>added section 4.1 `Architecture specification strings':
1561   use
1562        &lt;arch&gt;-linux
1563   where &lt;arch&gt; is one of the following:
1564        i386, alpha, arm, m68k, powerpc, sparc.
1565 </item>
1566
1567 <item>detailed rules for <file>/usr/local</file></item>
1568
1569 <item>user ID's</item>
1570
1571 <item>editor/pager policy</item>
1572
1573 <item>cron jobs</item>
1574
1575 <item>device files</item>
1576
1577 <item>don't install shared libraries as executable</item>
1578
1579 <item>app-defaults files may not be conffiles</item>
1580 </list></p>
1581
1582 <sect id="2.1.3.0"> Version 2.1.3.2, 2.1.3.1, 2.1.3.0
1583
1584 <p> Released Mar 1997.
1585
1586 <p><list>
1587 <item>two programs with different functionality must not have the
1588   same name </item>
1589
1590 <item>"Webstandard 3.0"</item>
1591
1592 <item>"Standard for Console Messages"</item>
1593
1594 <item>Libraries should be compiled with `-D_REENTRANT'</item>
1595
1596 <item>Libraries should be stripped with <prgn>strip --strip-unneeded</prgn>
1597 </item>
1598 </list></p>
1599
1600 <sect id="2.1.2.0"> Version 2.1.2.2, 2.1.2.1, 2.1.2.0
1601
1602 <p> Released Nov 1996.
1603
1604 <p><list>
1605 <item>Some changes WRT shared libraries
1606 </list></p>
1607
1608 <sect id="2.1.1.0"> Version 2.1.1.0
1609
1610 <p> Released Sep 1996.
1611
1612 <p><list>
1613 <item>No hard links in source packages</item>
1614
1615 <item>Do not use <prgn>dpkg-divert</prgn> or <prgn>update-alternatives</prgn>
1616 without consultation </item>
1617
1618 <item>Shared libraries must be installed stripped </item>
1619 </list></p>
1620
1621 <sect id="2.1.0.0"> Version 2.1.0.0
1622
1623 <p> Released Aug 1996.
1624
1625 <p><list>
1626   <item>Upstream changelog must be installed too </item>
1627 </list></p>
1628 </book>
1629 </debiandoc>