]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Merge branch 'master' into bug620870-rra
authorRuss Allbery <rra@debian.org>
Fri, 13 Jan 2012 16:55:35 +0000 (08:55 -0800)
committerRuss Allbery <rra@debian.org>
Fri, 13 Jan 2012 16:55:35 +0000 (08:55 -0800)
1  2 
policy.sgml

diff --combined policy.sgml
index 8834ece206bab7e1e8710eb9d017151f88ed12bb,2d72b29f5d623cf388650653cb65bc885946b0b5..6ae5474e01a53cb214f70e91a56ccb82591a4c93
              <item>
                  must not require or recommend a package outside
                  of <em>main</em> for compilation or execution (thus, the
-                 package must not declare a "Depends", "Recommends", or
-                 "Build-Depends" relationship on a non-<em>main</em>
-                 package),
+                 package must not declare a "Pre-Depends", "Depends",
+                 "Recommends", "Build-Depends", or "Build-Depends-Indep"
+                 relationship on a non-<em>main</em> package),
              </item>
              <item>
                  must not be so buggy that we refuse to support them,
@@@ -6246,25 -6246,6 +6246,25 @@@ install -m644 debian/shlibs.<var>packag
                    symlinked there, is relaxed to a recommendation.
                  </p>
                </item>
 +            <item>
 +              <p>
 +                The additional directory <file>/run</file> in the root
 +                file system is allowed.  <file>/run</file>
 +                replaces <file>/var/run</file>, and the
 +                subdirectory <file>/run/lock</file>
 +                replaces <file>/var/lock</file>, with
 +                the <file>/var</file> directories replaced by symlinks
 +                for backwards compatibility.  <file>/run</file>
 +                and <file>/run/lock</file> must follow all of the
 +                requirements in the FHS for <file>/var/run</file>
 +                and <file>/var/lock</file>, respectively, such as file
 +                naming conventions, file format requirements, or the
 +                requirement that files be cleared during the boot
 +                process.  Files and directories residing
 +                in <file>/run</file> should be stored on a temporary
 +                file system.
 +              </p>
 +            </item>
                <item>
                  <p>
                    The following directories in the root filesystem are
@@@ -6407,29 -6388,6 +6407,29 @@@ rmdir /usr/local/share/emacs 2>/dev/nul
            though the spool may still be physically located there.
          </p>
        </sect1>
 +
 +      <sect1 id="fhs-run">
 +        <heading><file>/run</file> and <file>/run/lock</file></heading>
 +
 +        <p>
 +          The directory <file>/run</file> is cleared at boot, normally
 +          by being a mount point for a temporary file system.  Packages
 +          therefore must not assume that any files or directories
 +          under <file>/run</file> other than <file>/run/lock</file>
 +          exist unless the package has arranged to create those files or
 +          directories since the last reboot.  Normally, this is done by
 +          the package via an init script.  See <ref id="writing-init">
 +          for more information.
 +        </p>
 +
 +        <p>
 +          Packages must not include files or directories
 +          under <file>/run</file>, or under the
 +          older <file>/var/run</file> and <file>/var/lock<file> paths.
 +          The latter paths will normally be symlinks or other
 +          redirections to <file>/run</file> for backwards compatibility.
 +        </p>
 +      </sect1>
        </sect>
  
        <sect>
@@@ -6804,14 -6762,15 +6804,14 @@@ test -f <var>program-executed-later-in-
          </p>
  
          <p>
 -          <file>/var/run</file> and <file>/var/lock</file> may be mounted
 -          as temporary filesystems<footnote>
 -              For example, using the <tt>RAMRUN</tt> and <tt>RAMLOCK</tt>
 -              options in <file>/etc/default/rcS</file>.
 -          </footnote>, so the <file>init.d</file> scripts must handle this
 -          correctly. This will typically amount to creating any required
 -          subdirectories dynamically when the <file>init.d</file> script
 -          is run, rather than including them in the package and relying on
 -          <prgn>dpkg</prgn> to create them.
 +            Files and directories under <file>/run</file>, including ones
 +            referred to via the compatibility paths <file>/var/run</file>
 +            and <file>/var/lock</file>, are normally stored on a temporary
 +            filesystem and are normally not persistent across a reboot.
 +            The <file>init.d</file> scripts must handle this correctly.
 +            This will typically mean creating any required subdirectories
 +            dynamically when the <file>init.d</file> script is run.
 +            See <ref id="fhs-run"> for more information.
          </p>
        </sect1>
  
@@@ -11369,7 -11328,7 +11369,7 @@@ END-INFO-DIR-ENTR
       dpkg-divert --package smailwrapper --remove --rename \
          --divert /usr/sbin/smail.real /usr/sbin/smail
    fi
-       </example> where <tt>1.02-2</tt> is the version at which the
+       </example> where <tt>1.0-2</tt> is the version at which the
        diversion was first added to the package.  The postrm should not
        remove the diversion on upgrades both because there's no reason to
        remove the diversion only to immediately re-add it and since the