Hi Guillem, Am 16.06.2013 19:15, schrieb Guillem Jover: > On Sun, 2013-06-16 at 17:25:31 +0200, Michael Biebl wrote:
> This is just another case of dpkg being unable to do the correct thing > due to untracked system files (filed in another bug report). > >> But there is another package [1] shipping an empty /etc/pkcs11. Which >> means the directory is potentially owned by another package, so I can't >> just remove it in postinst. >> And messing around with dpkg -S in postinst is starting to get ugly. >> >> If dpkg-maintscript-helper would move the file outside of /etc, this >> issue would be solved. >> Raphael, What's the reason you don't consider this a good idea? > > I think officializing dpkg-maintscript-helper was a mistake to begin > with, and that's why I've never wasted time in what to me is a dead > end. Instead, for 1.17.x I'm planning to finish up the conffiledb > support and tracking of external files in dpkg proper. This issue is not really about external files, but handling of conffiles. But maybe I just misunderstand what you mean with conffiledb. Would be glad if you can elaborate on how that would influence conffile handling, i.e: 1/ removing of obsolete conffiles 2/ renaming of conffiles (within the same package) 3/ moving of conffiles between packages >> As for my case (gnome-keyring), I currently see three options: >> a/ don't bother cleaning up /etc/pkcs11 >> b/ don't use dpkg-maintscripts-helpers, clean up the obsolete conffiles >> in preinst (using [2]) and let dpkg remove the empty dir >> c/ use dpkg-maintscript-helpers and remove the directory in postinst, >> while guarding the rmdir with a dpkg -S check >> >> Do you have another, better idea? What would be your recommendation? > > Personally I don't use dpkg-maintscripts-helpers in any of my > packages, I find it too ugly for my taste. But given that your package > is already using it probably c/ is good enough for now. As I needed a solution now and can't really wait until this support lands in dpkg, I've decided to go with b/ in this particular case. I know, that removing obsolete conffiles in preinst doesn't properly handle aborted upgrades. But it seemed cleaner to me then c/ and I don't just want to leave cruft around in /etc. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

