On Fri, Mar 25, 2011 at 07:33:23PM +0100, Robert Luberda wrote:
> reassign 619620 dictionaries-common 1.10.5
> retitle 619620
> thanks
> 
> martin f krafft pisze:
> > Package: ibritish-insane
> > Version: 3.3.02-3
> > Severity: serious
> > 
> > I installed ibritish-insane, but that didn't work and left me with
> > an inconsistent system:
> 
> Have you upgraded dictionaries-common in the same dpkg run?
> 
> I managed to reproduce the bug. First I removed ispell together with its
> dictionaries, than downgraded dictionaries-common to version 1.10.2, and
> finally tried to install ibritish-insane.

That is not only ibritish-insane. Tried with sid first install in a chroot
with iportuguese, which also uses this new schema. Found this too.

> The triggers for dictionaries-common were fired after all packages got
> unpacked, but before ibritish-insane postinst was called, not giving it
> any chance to create the compat file needed for ispell-autobuildhash.

I have also noticed some strange things with triggers that may be causing
this problem and am really confused,

In a clean chroot

# apt-get install ispell iportuguese

Unpacking dictionaries-common (from .../dictionaries-common_1.10.5_i386.deb) ...
Adding 'diversion of /usr/share/dict/words to 
/usr/share/dict/words.pre-dictionaries-common by dictionaries-common'
Selecting previously deselected package ispell.
Unpacking ispell (from .../ispell_3.1.20.0-9_i386.deb) ...
Selecting previously deselected package iportuguese.
Unpacking iportuguese (from .../iportuguese_20110314-1_i386.deb) ...
Processing triggers for man-db ...
Setting up dictionaries-common (1.10.5) ...
Processing triggers for dictionaries-common ...

** fail **

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.

May be that in trigger creation it is run. I previously noticed some extra 
dictionaries-common triggers calls, IIRC only on first installation, but 
cannot confirm now.

> 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. 

By the way, I will soon upload a dictionaries-common package with a minor 
change, enabling  -huge and -insane for initial default selection.

Sorry for all the problems and Big Thanks for all your feedback,

-- 
Agustin



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to