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