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

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

Your message dated Tue, 19 Feb 2013 18:32:34 +0000
with message-id <E1U7rzW-0001gq-8s@franck.debian.org>
and subject line Bug#700341: fixed in fonts-ipafont 00303-10.1
has caused the Debian Bug report #700341,
regarding fonts-ipafont: 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

700341: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700341
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: fonts-ipafont
Version: 00303-10
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...):

0m58.7s INFO: Warning: Package purging left files on system:
  /etc/alternatives/ttf-japanese-gothic.ttf -> /usr/share/fonts/opentype/ipafont/ipag.ttf	 not owned
  /etc/alternatives/ttf-japanese-mincho.ttf -> /usr/share/fonts/opentype/ipafont/ipam.ttf	 not owned
  /usr/share/fonts/	 owned by: fonts-ipafont-mincho, fonts-ipafont-gothic
  /usr/share/fonts/truetype/	 owned by: fonts-ipafont-mincho, fonts-ipafont-gothic
  /usr/share/fonts/truetype/ttf-japanese-gothic.ttf -> /etc/alternatives/ttf-japanese-gothic.ttf	 not owned
  /usr/share/fonts/truetype/ttf-japanese-mincho.ttf -> /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-ipafont-* 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 real 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-ipafont-*.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-ipafont to take
care of this.



Attachment: otf-ipafont_00303-10.log.gz
Description: GNU Zip compressed data

--- End Message ---
--- Begin Message ---
Source: fonts-ipafont
Source-Version: 00303-10.1

We believe that the bug you reported is fixed in the latest version of
fonts-ipafont, 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 700341@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-ipafont 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 18:51:13 +0100
Source: fonts-ipafont
Binary: fonts-ipafont fonts-ipafont-gothic fonts-ipafont-mincho otf-ipafont otf-ipafont-mincho otf-ipafont-gothic
Architecture: source all
Version: 00303-10.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-ipafont - Japanese OpenType font set, IPAfont
 fonts-ipafont-gothic - Japanese OpenType font set, IPA Gothic font
 fonts-ipafont-mincho - Japanese OpenType font set, IPA Mincho font
 otf-ipafont - transitional dummy package
 otf-ipafont-gothic - transitional dummy package
 otf-ipafont-mincho - transitional dummy package
Closes: 700341
 fonts-ipafont (00303-10.1) unstable; urgency=low
   * Non-maintainer upload.
   * otf-ipafont-*.preinst: Unregister the ttf-japanese-*.ttf alternatives.
   * fonts-ipafont-*.preinst: Clean up the ttf-japanese-*.ttf alternatives set
     up by otf-ipafont-* in squeeze. This needs to be done in fonts-ipafont-*
     as well since there is no guarantee that the transitional otf-ipafont-*
     packages were installed and did clean this up. Since new installations of
     fonts-ipafont-* cannot be distinguished from "upgrades" from otf-ipafont-*
     this needs to be run on new installations, too.  (Closes: #700341)
 2f05d1face875a244dafb14d38915255ac8f55b7 2303 fonts-ipafont_00303-10.1.dsc
 fdb3285873c02c5832b1b4c5f743e9ac980a6d67 13676 fonts-ipafont_00303-10.1.debian.tar.gz
 5bb7058311e63724ba576294a82a540003f6f235 11546 fonts-ipafont_00303-10.1_all.deb
 3b4b00778a0b068210e93365fceb96d50fc5423d 3524646 fonts-ipafont-gothic_00303-10.1_all.deb
 aa5e61013a4a305c83e0ad15afa6a62c4a3996be 4726810 fonts-ipafont-mincho_00303-10.1_all.deb
 69bfb390fa718b260668602693d3c885e18683e4 10716 otf-ipafont_00303-10.1_all.deb
 53bc9e10b8788e55aa8b737fff14a714a634d059 10938 otf-ipafont-mincho_00303-10.1_all.deb
 3c662fb0dbf70df4ac893c1ba6f0d465bdb04636 10938 otf-ipafont-gothic_00303-10.1_all.deb
 0fa8575eaa57875ba5e7229b2bef9ea38bdde8dde34bad79adad4f5fc28cdc71 2303 fonts-ipafont_00303-10.1.dsc
 abda368d98b74e4430ee905bc6a97423b83a90742234d15a5ac891327fc9f6e2 13676 fonts-ipafont_00303-10.1.debian.tar.gz
 df78a2b9f35bd812bcfb38028437370b7e5c242cd57d065d013a04bb8ca22cab 11546 fonts-ipafont_00303-10.1_all.deb
 5ac3f9ebcc14039ab327f01be56c5b057f8b4411033fdefbd0e5ed8253659f27 3524646 fonts-ipafont-gothic_00303-10.1_all.deb
 9c55a734dda78c65a8d1eb75712f3ad0e6f4d6ebfd1f9d3bb378a983919a2076 4726810 fonts-ipafont-mincho_00303-10.1_all.deb
 703d9e59a7c14151b47a085bb9134a7e967d42ee34492f879620e8844d66e393 10716 otf-ipafont_00303-10.1_all.deb
 d95776c6bfb8b843dbe721621c1c69901ad2f9475d0f0d449b23ea9ddb7cddd1 10938 otf-ipafont-mincho_00303-10.1_all.deb
 3011b0582270c9bb75a598e72e0d382f7ddb6f4e160525460c94cd48f4cf0bd5 10938 otf-ipafont-gothic_00303-10.1_all.deb
 b45f7667bcc2f2ac37d9578717693b41 2303 fonts optional fonts-ipafont_00303-10.1.dsc
 452176401c7aa4bf344e36f683b63f6b 13676 fonts optional fonts-ipafont_00303-10.1.debian.tar.gz
 86fc6cbfbc4b71b75683d20623f37aa2 11546 fonts optional fonts-ipafont_00303-10.1_all.deb
 f3ec8a8a3236690a046b83fa83cae3dc 3524646 fonts optional fonts-ipafont-gothic_00303-10.1_all.deb
 1837ed6552ddf4273ae74253cd7a20ff 4726810 fonts optional fonts-ipafont-mincho_00303-10.1_all.deb
 f40a1ff59403f300049295b367d46190 10716 oldlibs extra otf-ipafont_00303-10.1_all.deb
 617dde992898e854815ef1fa9b27fbb9 10938 oldlibs extra otf-ipafont-mincho_00303-10.1_all.deb
 3e4dc08d87824eb5f3e05e2d052df056 10938 oldlibs extra otf-ipafont-gothic_00303-10.1_all.deb

Version: GnuPG v1.4.12 (GNU/Linux)


--- End Message ---

Reply to: