[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#284969: debian-policy: [PROPOSED] stop letting font packages that move stuff around screw people over



Package: debian-policy
Version: 3.6.1.1
Severity: wishlist
Tags: patch

Rationale: Font packages that stop shipping a font file, or which move a
font file from one location to another, need to run update-fonts-dir in
their postrm scripts on upgrade, so that a fonts.dir file with stale
references to the (re)moved file(s) is not left in an existing directory.

If you don't do this, the result is Bug#252895.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252895

I am seeking seconds for this proposal.

diff -durN debian-policy-3.6.1.1~/policy.sgml debian-policy-3.6.1.1/policy.sgml
--- debian-policy-3.6.1.1~/policy.sgml	2004-06-25 16:11:36.000000000 -0500
+++ debian-policy-3.6.1.1/policy.sgml	2004-12-09 15:43:20.000000000 -0500
@@ -7899,6 +7899,11 @@
 		  occur in both the <prgn>postinst</prgn> (for all
 		  arguments) and <prgn>postrm</prgn> (for all
 		  arguments except <tt>upgrade</tt>) scripts.
+		  Exception: if the font package stops unpacking font files
+		  or moves font files from one directory to another across
+		  an upgrade, <prgn>update-fonts-dir</prgn> must be invoked
+		  in the <prgn>postrm</prgn> script if the <tt>upgrade</tt>
+		  argument is specified.
 	      </item>
 
 	      <item>

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.4.25-powerpc-smp
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

-- no debconf information



Reply to: