retitle 557604 dictionaries-common: o2compat should no longer be the default in 
installdeb-myspell.
severity 557604 normal
thanks

On Mon, Nov 23, 2009 at 09:04:20AM +0100, Mike Hommey wrote:
> Package: dictionaries-common
> Version: 1.3.2
> Severity: important
> Tags: patch
> 
> We are going to fix the spellchecker issue in Mozilla that "required"
> these symlinks, so please remove these symlinks.

Thanks for the reminder,

The planned way is to preserve the possibility of backwards compatibility
until squeeze is released, but as soon as all apps use the new location,
make "new-locations only" the default behavior (current behavior is keep
backward compatibility symlinks). 

Note that dictionaries are already installed in the new location, so Mozilla
transition can proceed. Current /usr/share/myspell/dicts/ contents are only
backwards compatibility symlinks to the new /usr/share/{hunspell,...}
locations. If some dictionary is still installed only in the old location,
is a bug in the dictionary.

> The attached patch should do the right thing.

No need to remove the backwards possibility at this stage, just to make it
non-default. The planned change for that is really simple,

------------------------ 8< --------------------------------------------
--- a/scripts/debhelper/installdeb-myspell
+++ b/scripts/debhelper/installdeb-myspell
@@ -9,7 +9,7 @@ $Text::Wrap::columns = 72;
 use Debian::Debhelper::Dh_Lib;
 
 my $srcdir      = '';
-my $o2compat    = 1;
+my $o2compat    = '';
 my $dico_debug  = '';
 
 sub mydie {
------------------------ 8< --------------------------------------------

and will be applied once the transition is finished (along with the needed
changes in docs). Note that keeping the old compatibility symlinks does not
hurt, just is deprecated and once the above is applied will not be done
until explicitly requested.

> PS: I really wonder how these symlinks got here in the first place.

For backwards compatibility once the change is done (current default, soon
to change).

If you are looking at a dictionary using the new location, may happen 
that there is only the mozilla symlink in the old location, because 
openoffice2 will use dictionaries.lst, and the hyphen variant may be 
used there (no problem with hunspell, since lenny hunspell already 
looks in /usr/share/hunspell along with /usr/share/myspell/dicts).

You can have e.g.,

/usr/share/hunspell:
fo.{aff,dic}
fo_FO.{aff,dic} -> fo.{aff,dic}

/usr/share/myspell/dicts:
fo.{aff,dic} -> ../../hunspell/fo.{aff,dic}

where dictionaries.lst (only present for ooo2) contains a line with
DICT fo FO fo

That is backwards compatible and will work in both lenny and current sid.

Please ping this bug report once new Mozilla hits testing, so the default
is changed.

Cheers,

-- 
Agustin



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to