On Sat, Mar 26, 2011 at 01:17:46PM +0100, Agustin Martin wrote: > 2011/3/25 Robert Luberda <rob...@debian.org>: > > So at this stage dictionaries-common is in a `triggers-pending' state so > > dpkg calls `postinst triggered' to switch the state to `installed', so > > the package could satisfy ispell & ispell dictionaries dependencies: > > Thanks for the debugging. As expected, the problem was a basic > misunderstanding at my side about how triggers work > > > I've just came up with about other possible solutions: > > - create the empty hash file in preinst (if the file doesn't exist) > > - overwrite the compat file in debconf's config script (in addition to > > preinst, instead of postinst) - I can see ingerman does this > > - don't fail when link target doesn't and auto-hash is set for the > > dictionary. > > The call from dictionaries-common postinst is only to deal with > possible changes in jed/emacs/squirrelmail handling of options, no > need to set symlinks there. > > There is currently an unused --ignore-symlinks option to > update-default-*. That was initially designed for removal scripts and > there is now a better system, but the concept may be of help here, > although renamed and improved. I am thinking about calling > update-default-* from dictionaries-common.postinst with something like > > update-default-ispell --dico-postinst > > resulting in a real run, not enabling trigger and skipping symlinks > step. autobuildhash step could also be skipped, although it is > harmless. So, triggers are enabled only from dictionaries or ispell > (this last enables only ispell-autobuildhash). > > Last week I was doing some changes in that script, so is probably time > to integrate everything. But I do not have changes here. Hope to have > everything put together on Monday. > > Hope this is enough (Cross fingers).
I am about to upload a new version with these changes. It is working well in my tests in a chroot, but considering the previous history I will keep my fingers crossed until it passes the real life test. Thanks for all the help. -- agustin -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org