Agustin Martin writes: Hi,
> > dpkg seems to not wait for iportuguese configuration before running > dictionaries-common triggers. That is the same problem you found. And is in > that trigger where problem appears. Either I am missing something about > triggers or this is not at all the expected behavior. Will look again at > trigers document. It seems dictionaries-common.postinst activates the triggers during configure (the `Calling' lines generated by an ad-hoc /usr/local/bin/dpkg-trigger script) ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/dictionaries-common.postinst configure 1.10.2 + . /usr/share/debconf/confmodule ...... + '[' -L /etc/dictionary ']' + update-default-ispell --rebuild Calling /usr/bin/dpkg-trigger update-default-ispell + update-default-wordlist --rebuild Calling /usr/bin/dpkg-trigger update-default-wordlist + update-dictcommon-aspell Calling /usr/bin/dpkg-trigger aspell-autobuildhash + update-dictcommon-hunspell 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: + exec /usr/share/debconf/frontend /var/lib/dpkg/info/dictionaries-common.postinst triggered 'aspell-autobuildhash update-default-wordlist update-default-ispell' >> Maybe the compat file creation should be moved to preinst? Augustin, >> what do you think about it? > > If there is no other possibility I am afraid I should try that. That will > however make dpkg-reconfigure not rebuild the hash. May be puttng that > in both places may help, but that may trigger building twice unless I check > for reconfigure in postinst. But I do not understand why current > setup is being problematic. 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. > By the way, I will soon upload a dictionaries-common package with a minor > change, enabling -huge and -insane for initial default selection. Thanks a lot. Regards, robert -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org