]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Perl policy: Document major version upgrade trigger
authorBill Allombert <Bill.Allombert@math.u-bordeaux.fr>
Mon, 6 Jun 2011 18:30:34 +0000 (20:30 +0200)
committerBill Allombert <Bill.Allombert@math.u-bordeaux.fr>
Wed, 8 Jun 2011 21:01:25 +0000 (23:01 +0200)
Wording: Dominic Hargreaves <dom@debian.org>
Seconded: Russ Allbery <rra@debian.org>
Seconded: Niko Tyni <ntyni@debian.org>
Seconded: Gregor Herrmann <gregoa@debian.org>
Closes: #619275
debian/changelog
perl-policy.sgml
upgrading-checklist.sgml

index 4de31e510560e362a931d624da5460bd1277407b..a580f7f894abbc4594f354c4f38c0c2bd33f6316 100644 (file)
@@ -35,8 +35,14 @@ debian-policy (3.9.3.0) UNRELEASED; urgency=low
     Seconded: Bill Allombert <ballombe@debian.org>
     Seconded: Jakub Wilk <jwilk@debian.org>
     Closes: #617516
+  * Perl policy: Document major version upgrade trigger
+    Wording: Dominic Hargreaves <dom@debian.org>
+    Seconded: Russ Allbery <rra@debian.org>
+    Seconded: Niko Tyni <ntyni@debian.org>
+    Seconded: Gregor Herrmann <gregoa@debian.org>
+    Closes: #619275
 
- -- Bill Allombert <ballombe@debian.org>  Mon, 06 Jun 2011 19:51:39 +0200
+ -- Bill Allombert <ballombe@debian.org>  Wed, 08 Jun 2011 23:01:20 +0200
 
 debian-policy (3.9.2.0) unstable; urgency=low
 
index b9f327739b963ae949265ce871f13870ad033368..70c5bfcc7ab149b9a86fe2bbd4b03ad8aeea842c 100644 (file)
@@ -461,6 +461,26 @@ perl -MExtUtils::Embed -e ldopts
          package must depend upon it explicitly.
        </p>
       </sect>
+
+      <sect id="perl_upgrades">
+        <heading>Perl Package Upgrades</heading>
+        <p>
+          Starting from <package>perl</package> 5.12.3-2, a dpkg trigger
+          named <var>perl-major-upgrade</var> will be triggered by the
+          postinst of the <package>perl</package> package during major
+          upgrades. Some examples of things which constitute a major upgrade
+          are an upgrade which would change the value of versioned
+          directories in <tt>@INC</tt>, or one which changes <tt>abiname</tt>.
+          Any package may declare an interest in the trigger, especially
+          packages including long-running daemons which would stop working
+          until restart.
+        </p>
+        <p>
+          It is suggested that such packages include an appropriate section
+          in their postinst to handle the trigger by restarting relevant
+          daemons or notifying users of further action.
+        </p>
+      </sect>
     </chapt>
 
     <appendix id="perl6">
index 22eacb33e6b3374d88fd8196f10f8998f0222db8..95ab9d251e1faa2daa2f9f243a9a9ea11a24e220 100644 (file)
@@ -50,6 +50,10 @@ Unreleased.
   of normal rules for non-free dependencies and were largely obsolete, so
   they have been removed.
   </item>
+<tag>perl</tag>
+  <item> Packages may declare an interest in the <var>perl-major-upgrade</var> 
+  trigger to be notified of major upgrades of perl.
+  </item>
 </taglist></p>
 
 <sect> Version 3.9.2.0