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

[Pkg-fonts-devel] Bug#700435: marked as done (fonts-ipaexfont: does not remove ttf-japanese-*.ttf alternatives on upgrades from squeeze)

Your message dated Tue, 19 Feb 2013 18:47:43 +0000
with message-id <E1U7sEB-000519-Gz@franck.debian.org>
and subject line Bug#700435: fixed in fonts-ipaexfont 00103-14.1
has caused the Debian Bug report #700435,
regarding fonts-ipaexfont: does not remove ttf-japanese-*.ttf alternatives on upgrades from squeeze
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

700435: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700435
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: fonts-ipaexfont
Version: 00103-14
Severity: important
Tags: patch
User: debian-qa@lists.debian.org
Usertags: piuparts



during a test with piuparts I noticed your package left unowned files on
the system after purge, which is a violation of policy 6.8:


The leftover files are actually alternatives that were installed by the
package but have not been properly removed.

While there is ongoing discussion how to remove alternatives correctly
(see http://bugs.debian.org/71621 for details) the following strategy
should work for regular cases:
* 'postinst configure' always installs the alternative
* 'prerm remove' removes the alternative
* 'postrm remove' and 'postrm disappear' remove the alternative
In all other cases a maintainer script is invoked (e.g. upgrade,
deconfigure) the alternatives are not modified to preserve user
Removing the alternative in 'prerm remove' avoids having a dangling link
once the actual file gets removed, but 'prerm remove' is not called in
all cases (e.g. unpacked but not configured packages or disappearing
packages) so the postrm must remove the alternative again
(update-alternatives gracefully handles removal of non-existing

Note that the arguments for adding and removing alternatives differ, for
removal it's 'update-alternatives --remove <name> <path>'.

Filing this as important as having a piuparts clean archive is a release
goal since lenny.


>From the attached log (scroll to the bottom...):

0m52.9s INFO: Warning: Package purging left files on system:
  /etc/alternatives/ttf-japanese-gothic.ttf -> /usr/share/fonts/opentype/ipaexfont/ipaexg.ttf	 not owned
  /etc/alternatives/ttf-japanese-mincho.ttf -> /usr/share/fonts/opentype/ipaexfont/ipaexm.ttf	 not owned
  /usr/share/fonts/	 owned by: fonts-ipaexfont-mincho, fonts-ipaexfont-gothic
  /usr/share/fonts/opentype/	 owned by: fonts-ipaexfont-mincho, fonts-ipaexfont-gothic
  /usr/share/fonts/opentype/ttf-japanese-gothic.otf -> /etc/alternatives/ttf-japanese-gothic.ttf	 not owned
  /usr/share/fonts/opentype/ttf-japanese-mincho.otf -> /etc/alternatives/ttf-japanese-mincho.ttf	 not owned

Due to the package rename, the stuff in the preinst script is not being
run at all during upgrades from squeeze: fonts-ipaexfont-* will always be a
new install, so "$2" will be empty and all the
  dpkg --compare-versions "$2" lt-nl "$someversion"
will evaluate to false.

I'll add a patch once I get the bug number. It does two things:

* Add preinst to the transitional packages to remove
  the alternative there. But there is really no guarantee for the transitional
  being installed at all ... but if it is installed, u-a won't emit a
  diagnostic about something dangling ...
* fonts-ipaexfont-*.preinst: run the alternative cleanup on fresh installation
  to ensure the cleanup is run even if the transitionals are not used

Please get this fixed in sid and unblocked for wheezy to fix this
upgrade problem. I also offer (and intend to) to NMU fonts-ipaexfont to take
care of this.



Attachment: otf-ipaexfont_00103-14.log.gz
Description: GNU Zip compressed data

--- End Message ---
--- Begin Message ---
Source: fonts-ipaexfont
Source-Version: 00103-14.1

We believe that the bug you reported is fixed in the latest version of
fonts-ipaexfont, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 700435@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Andreas Beckmann <anbe@debian.org> (supplier of updated fonts-ipaexfont package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA256

Format: 1.8
Date: Thu, 14 Feb 2013 19:14:22 +0100
Source: fonts-ipaexfont
Binary: fonts-ipaexfont fonts-ipaexfont-mincho fonts-ipaexfont-gothic otf-ipaexfont otf-ipaexfont-mincho otf-ipaexfont-gothic
Architecture: source all
Version: 00103-14.1
Distribution: unstable
Urgency: low
Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
 fonts-ipaexfont - Japanese OpenType font, IPAexFont (IPAexGothic/Mincho)
 fonts-ipaexfont-gothic - Japanese OpenType font, IPAexFont (IPAexGothic)
 fonts-ipaexfont-mincho - Japanese OpenType font, IPAexFont (IPAexMincho)
 otf-ipaexfont - transitional dummy package
 otf-ipaexfont-gothic - transitional dummy package
 otf-ipaexfont-mincho - transitional dummy package
Closes: 700435
 fonts-ipaexfont (00103-14.1) unstable; urgency=low
   * Non-maintainer upload.
   * otf-ipaexfont-*.preinst: Unregister the ttf-japanese-*.ttf alternatives.
   * fonts-ipaexfont-*.preinst: Clean up the ttf-japanese-*.ttf alternatives
     set up by otf-ipaexfont-* in squeeze. This needs to be done in
     fonts-ipaexfont-* as well since there is no guarantee that the
     transitional otf-ipaexfont-* packages were installed and did clean this
     up. Since new installations of fonts-ipaexfont-* cannot be distinguished
     from "upgrades" from otf-ipaexfont-* this needs to be run on new
     installations, too.  (Closes: #700435)
 d5f574b33d82ba7ebe3158711b4d10273bfee5e1 2334 fonts-ipaexfont_00103-14.1.dsc
 2e88a12cec76a44715a702eb22d927850652b6d3 12058 fonts-ipaexfont_00103-14.1.debian.tar.gz
 098cbc8bc0c4163004f5b6bb0a8912aee27a1c36 9946 fonts-ipaexfont_00103-14.1_all.deb
 24c72471453e0ce8518d51a3be0c229d1b18619f 4601804 fonts-ipaexfont-mincho_00103-14.1_all.deb
 0ba36f1a945d63916b1e81913415a400bea56963 3334326 fonts-ipaexfont-gothic_00103-14.1_all.deb
 c3f7b2998c0e223e483b4d66cbc588dd77df1d9d 9732 otf-ipaexfont_00103-14.1_all.deb
 88b61d5c4358bca1f7fc1c304134b430e6adb011 9950 otf-ipaexfont-mincho_00103-14.1_all.deb
 cae03dc77ac12d2a879427138c40e127284ce717 9954 otf-ipaexfont-gothic_00103-14.1_all.deb
 e8ee80f95161f7f99fe0da6f8f6f1535a8845a7cf2125dc3cdbddfba6246ac03 2334 fonts-ipaexfont_00103-14.1.dsc
 5fc8cfc1639afad90157d0bba136be2cf1417654020c6507c2c253ec38dd2867 12058 fonts-ipaexfont_00103-14.1.debian.tar.gz
 1910f94733d7da84e13ffbe0056157cb97ab8eacacda246ab7ecea1c81fa9bf2 9946 fonts-ipaexfont_00103-14.1_all.deb
 989cf78310bcbb419d89a216cd8f23c34ebaff9385232d375d5c9289bd560878 4601804 fonts-ipaexfont-mincho_00103-14.1_all.deb
 c63ffa6740b477fef1c42c7176260e6f5d4774548edb79bf7815c629b5077b47 3334326 fonts-ipaexfont-gothic_00103-14.1_all.deb
 3467452527c0c4b82f85f32cb51d3eee83323a36c0f876e157b3c5c06effd9c0 9732 otf-ipaexfont_00103-14.1_all.deb
 e37c94f9fa08321efd58ca9ee13da635a28757d271eba5aa091c0612865348ab 9950 otf-ipaexfont-mincho_00103-14.1_all.deb
 a7038d7cc0b688614664594eb8e0440887db662e3d93daff887a7d8a0534d442 9954 otf-ipaexfont-gothic_00103-14.1_all.deb
 cff310cb237e685bd1a233ecfd0bb6f6 2334 fonts optional fonts-ipaexfont_00103-14.1.dsc
 9cb4f936a3ff59476a6de9eb870beddc 12058 fonts optional fonts-ipaexfont_00103-14.1.debian.tar.gz
 6c2265ba3b2a48676a92feb72449c074 9946 fonts optional fonts-ipaexfont_00103-14.1_all.deb
 a047ffaf6b725902a39fba277fd8824c 4601804 fonts optional fonts-ipaexfont-mincho_00103-14.1_all.deb
 f45ee26bce78b9fdc40cffff4559f4cc 3334326 fonts optional fonts-ipaexfont-gothic_00103-14.1_all.deb
 7077b9dcb50a338c7d9add44654e860c 9732 oldlibs extra otf-ipaexfont_00103-14.1_all.deb
 9fc14696ca4345f4db5c69409c8b7c53 9950 oldlibs extra otf-ipaexfont-mincho_00103-14.1_all.deb
 5364d089bd4cb0d68cb8ecaf3d35365a 9954 oldlibs extra otf-ipaexfont-gothic_00103-14.1_all.deb

Version: GnuPG v1.4.12 (GNU/Linux)


--- End Message ---

Reply to: