2011/3/25 Robert Luberda <rob...@debian.org>:
> Agustin Martin writes:
>
>>> 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

Hi again, Robert,

I am still thinking about possible scenarios where current setup may
fail. I could only see a possible one, a ispell dictionary using
autobuild depending on another ispell dictionary using autobuild,
which may launch trigger before expected. This is something I'd not
expect to happen, people should do like you do in ienglish-common
package, but I cannot discard that completely.

So I am thinking about also setting things in preinst to make sure
everything is created at first trigger invocation.

That would leave:

preinst:   reset package compat files always
postinst: reset package compatfiles only if $1 = "reconfigure"
postrm:  Remove package compat files and hashes in remove target

I am not tsure that this will ever be really needed, but now that the
only dictionaries using the new system are those derived from ispell
package and a couple of my dicts, I think is time to make the system
as robust as possible.

What do you think?

As a side note I was preparing a NMU for myspell-fi because of #619269
(myspell-fi: Remove unconditional call to soon to disappear
'update-openoffice-dicts') when I noticed that you filed #623072
(ifinnish: uninstallable in sid). I have been looking at that bug
report and also at #581458 (ispell-fi: bashism in debian/rules) and
#551284 (wfinnish: Most lines in /usr/share/dict/finnish end with $\
for some reason), last two are indeed the same problem, and would like
to upload a 0-day NMU around Tuesday. I had problems in my sid
pbuilder yesterday and have no sid box during the weekend to make
final tests before uploading.

Is this OK with your plans? I will mail those bug reports tomorrow
with a full diff for my intended NMU. Will keep you cc'ed.

A final note. I forgot to suggest you to subscribe to the
"Dict-common-dev" mailing list at
http://lists.alioth.debian.org/mailman/listinfo/dict-common-dev. That
is a very low traffic mailing list that is supposed to be the list for
spellchecking coordination. Unfortunately only some of the maintainers
of spellchecking related packages are subscribe to that list, but that
is still useful.

Regards,

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