Bug 967637

Summary: ga_IE.aff is empty but ga_IE.dic contains affix rules
Product: [Fedora] Fedora Reporter: Mike FABIAN <mfabian>
Component: hunspell-gaAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: caolanm, mfabian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hunspell-ga-4.6-6.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-06 02:24:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike FABIAN 2013-05-27 17:54:38 UTC
[mfabian@Fedora-19-Beta-RC4-x86_64-netins myspell]$ ls -l ga_IE.*
-rw-r--r--. 1 root root       0  2月 15 09:39 ga_IE.aff
-rw-r--r--. 1 root root 1197549  2月 15 09:39 ga_IE.dic
[mfabian@Fedora-19-Beta-RC4-x86_64-netins myspell]$ head ga_IE.dic 
97580
a
AAI
ab/HMDBUT
aba/HMDU
abacais/HMDBU
abacas/HMDBUT
abacht/HMDBU
abachta/HMDU
abair/HMDBU
[mfabian@Fedora-19-Beta-RC4-x86_64-netins myspell]$

Comment 1 Fedora Update System 2013-05-27 19:16:49 UTC
hunspell-ga-4.6-5.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/hunspell-ga-4.6-5.fc19

Comment 2 Fedora Update System 2013-05-27 19:17:43 UTC
hunspell-ga-4.6-5.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/hunspell-ga-4.6-5.fc18

Comment 3 Mike FABIAN 2013-05-28 06:07:52 UTC
After that update, the file is not empty anymore, but the 
encoding of the ga_IE.aff file is broken:

mfabian@ari:/usr/share/myspell
$ file ga_IE.aff 
ga_IE.aff: Non-ISO extended-ASCII text
mfabian@ari:/usr/share/myspell
$ 

It contains lines like:

PFX S   s     sh          s[aeiouãããããlnr]

Which should be:

PFX S   s     sh          s[aeiouáéíóúlnr]

Comment 4 Mike FABIAN 2013-05-28 06:09:58 UTC
The conversion tool ispellaff2myspell used in hunspell-ga.spec
apparently needs iso-8859-1 input but the input file gaeilge.aff is
UTF-8 encoded.

Fix:

mfabian@ari:~/rpmsources/fedora/hunspell-ga (master *)
$ git diff 
diff --git a/hunspell-ga.spec b/hunspell-ga.spec
index 2a65877..979b5d9 100644
--- a/hunspell-ga.spec
+++ b/hunspell-ga.spec
@@ -26,7 +26,8 @@ Irish hunspell dictionaries.
 make
 cat %{SOURCE1} %{SOURCE2} > header
 export LANG=en_IE.UTF-8
-ispellaff2myspell gaeilge.aff --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff
+iconv -f utf-8 -t iso-8859-1 < gaeilge.aff > gaeilge.aff.iso-8859-1
+ispellaff2myspell gaeilge.aff.iso-8859-1 --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff
 
 %install
 rm -rf $RPM_BUILD_ROOT

Comment 5 Fedora Update System 2013-05-28 09:18:46 UTC
hunspell-ga-4.6-6.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/hunspell-ga-4.6-6.fc19

Comment 6 Fedora Update System 2013-05-28 09:19:42 UTC
hunspell-ga-4.6-6.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/hunspell-ga-4.6-6.fc18

Comment 7 Caolan McNamara 2013-05-28 09:46:26 UTC
k, that should do it then

Comment 8 Fedora Update System 2013-05-28 16:17:24 UTC
Package hunspell-ga-4.6-5.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hunspell-ga-4.6-5.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-9472/hunspell-ga-4.6-5.fc19
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2013-05-28 16:17:31 UTC
Package hunspell-ga-4.6-6.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hunspell-ga-4.6-6.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-9473/hunspell-ga-4.6-6.fc19
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2013-06-06 02:24:44 UTC
hunspell-ga-4.6-6.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.