[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#908146: libreoffice-dictionaries: Dealing with Breaks/Replaces against ancient dicts in other myspell/hunspell packages.



Source: libreoffice-dictionaries
Version: 1:6.1.0~rc2-2
Severity: wishlist

Dear Maintainers, Rene and Mattia,

I have recently received some bug reports about making transitional myspell
packages to hunspell packages contained in lo-dicts. Some of them refer to
myspell packages containing old versions of the same dict shipped with
lo-dicts, so version in lo-dicts should really be used.

 #903464 myspell-pt-br: Consider deprecating in favor of hunspell-pt-br
 #898756 myspell-pt-pt: Convert into dummy transitional package depending on hunspell-pt-pt
 #898748 myspell-ru: Convert into dummy transitional package depending on hunspell-ru

At the same time I found one package I sponsored a while ago, having a far
more recent version in lo-dicts (I had no further notice of the maintainer
since I sponsored that package). 

I think this should be dealt previously from inside lo-dicts adding
appropriate Breaks/Replaces, and old packages made transitional afterwards.

Summary follows

lo-dicts                             other
===========================================================================
hunspell-pt-br (1:6.1.0~rc2-2)       myspell-pt-br (20131030-10)
hunspell-pt-pt (1:6.1.0~rc2-2)       myspell-pt-pt (20091013-12)
hunspell-ru    (1:6.1.0~rc2-2)       myspell-ru (0.99g5-21)
hunspell-sv    (1:6.1.0~rc2-2)       hunspell-sv-se (1.51-1)

hunspell-pt-br, hunspell-pt-pt and hunspell-sv are more recent versions of
the dicts, in some cases using hunspell specific extensions. hunspell-ru is
the same dict as myspell-ru, but enhanced with a TRY line, so we can
consider it a better version.

A proposed patch is added.

Best regards,

-- 
Agustin
>From 1c44230c413caa777f310ecd14639b613389e9d5 Mon Sep 17 00:00:00 2001
From: Agustin Martin Domingo <agmartin@debian.org>
Date: Thu, 6 Sep 2018 18:00:58 +0200
Subject: [PATCH] Add Breaks/Replaces for some dictionaries with outdated
 versions in other packages.

---
 debian/control   | 11 ++++++++---
 debian/helper.py |  7 ++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index 998d367..5f7b64a 100644
--- a/debian/control
+++ b/debian/control
@@ -1039,7 +1039,8 @@ Multi-Arch: foreign
 Depends: dictionaries-common, ${misc:Depends}, ${hunspell:Depends}
 Suggests: hunspell, libreoffice-writer
 Provides: hunspell-dictionary, hunspell-dictionary-pt-br
-Conflicts: myspell-pt-br
+Breaks: myspell-pt-br (<= 20131030-10)
+Replaces: myspell-pt-br (<= 20131030-10)
 Description: Brazilian Portuguese dictionary for hunspell
  This is the Brazilian Portuguese dictionary for use with the hunspell
  spellchecker.
@@ -1068,7 +1069,8 @@ Multi-Arch: foreign
 Depends: dictionaries-common, ${misc:Depends}, ${hunspell:Depends}
 Suggests: hunspell, libreoffice-writer
 Provides: hunspell-dictionary, hunspell-dictionary-pt-pt
-Conflicts: myspell-pt-pt
+Breaks: myspell-pt-pt (<= 20091013-12)
+Replaces: myspell-pt-pt (<= 20091013-12)
 Description: Portuguese dictionary for hunspell
  This is the Portuguese dictionary for use with the hunspell
  spellchecker.
@@ -1137,6 +1139,8 @@ Multi-Arch: foreign
 Depends: dictionaries-common, ${misc:Depends}, ${hunspell:Depends}
 Suggests: hunspell, libreoffice-writer
 Provides: hunspell-dictionary, hunspell-dictionary-ru
+Breaks: myspell-ru (<= 0.99g5-21)
+Replaces: myspell-ru (<= 0.99g5-21)
 Description: Russian dictionary for hunspell
  This is the Russian dictionary for use with the hunspell
  spellchecker.
@@ -1304,7 +1308,8 @@ Multi-Arch: foreign
 Depends: dictionaries-common, ${misc:Depends}, ${hunspell:Depends}
 Suggests: hunspell, libreoffice-writer
 Provides: hunspell-dictionary, hunspell-dictionary-sv
-Conflicts: hunspell-sv-se
+Breaks: hunspell-sv-se (<= 1.51-1)
+Replaces: hunspell-sv-se (<= 1.51-1)
 Description: Swedish dictionary for hunspell
  This is the Swedish dictionary for use with the hunspell
  spellchecker.
diff --git a/debian/helper.py b/debian/helper.py
index eebd467..8eb928a 100755
--- a/debian/helper.py
+++ b/debian/helper.py
@@ -73,6 +73,10 @@ breaks_replaces = {
  "hunspell-kmr": ('myspell-ku', '<<', '1:5.1.3-2'),
  "hunspell-lt": ('myspell-lt', '<<', '1.2.1-6'),
  "hunspell-pl": ('myspell-pl', '<<', '1:6.1.0~beta1-2'),
+ "hunspell-pt-br": ('myspell-pt-br', '<=', '20131030-10'),
+ "hunspell-pt-pt": ('myspell-pt-pt', '<=', '20091013-12'),
+ "hunspell-ru": ("myspell-ru", '<=', "0.99g5-21"),
+ "hunspell-sv": ("hunspell-sv-se",   '<=', "1.51-1"),
  "hunspell-sw": ("myspell-sw", '<<', "1:5.0.1+dfsg-1"),
  "hunspell-th": ("myspell-th", '<<', "1:5.0.1+dfsg-1"),
  "hunspell-sl": ("myspell-sl", '<=', "1.0-5"),
@@ -91,10 +95,7 @@ conflicts = {
  "hunspell-hu": "myspell-hu",
  "hunspell-nl": "myspell-nl",
  "hunspell-no": "myspell-nb, myspell-nn",
- "hunspell-pt-br": "myspell-pt-br",
- "hunspell-pt-pt": "myspell-pt-pt",
  "hunspell-sk": "myspell-sk",
- "hunspell-sv": "hunspell-sv-se",
  "hunspell-uk": "myspell-uk",
  "hyphen-et": "myspell-et",
  "hyphen-no": "myspell-nb, myspell-nn",
-- 
2.18.0


Reply to: