Bug#739785: fontconfig-config: fails to purge: rmdir: failed to remove '/etc/fonts/conf.d': No such file or directory

2014-02-23 Thread Keith Packard
Andreas Beckmann a...@debian.org writes:

 Package: fontconfig-config
 Version: 2.11.0-3
 Severity: serious
 User: debian...@lists.debian.org
 Usertags: piuparts

 Hi,

 during a test with piuparts I noticed your package failed to purge.

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

   Removing fontconfig-config (2.11.0-3) ...
   Purging configuration files for fontconfig-config (2.11.0-3) ...
   rmdir: failed to remove '/etc/fonts/conf.d': No such file or directory
   dpkg: error processing package fontconfig-config (--purge):
subprocess installed post-removal script returned error exit status 1
   Errors were encountered while processing:
fontconfig-config

Thanks. I'm trying to upload a new version which fixes this and another
FTBFS bug but I'm having adventures with the ftp masters today.

-- 
keith.pack...@intel.com


pgp5AEY4J58hL.pgp
Description: PGP signature


Bug#739785: fontconfig-config: fails to purge: rmdir: failed to remove '/etc/fonts/conf.d': No such file or directory

2014-02-22 Thread Andreas Beckmann
Package: fontconfig-config
Version: 2.11.0-3
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to purge.

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

  Removing fontconfig-config (2.11.0-3) ...
  Purging configuration files for fontconfig-config (2.11.0-3) ...
  rmdir: failed to remove '/etc/fonts/conf.d': No such file or directory
  dpkg: error processing package fontconfig-config (--purge):
   subprocess installed post-removal script returned error exit status 1
  Errors were encountered while processing:
   fontconfig-config

Since /etc/fonts/conf.d is shipped by the package (and some others as
well) it should not be managed by maintainer scripts, but by dpkg only.
So remove the rmdir call.
There is currently a bug in dpkg that causes some directories to be left
behind (#316521) - this is going to be fixed in dpkg, no need to work
around this in packages. For piuparts this will be worked around by
adding such directories to an internal ignore list until dpkg gets fixed.


cheers,

Andreas


fontconfig-config_2.11.0-3.log.gz
Description: GNU Zip compressed data