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