severity 467344 minor
retitle  467344 dictionaries-common-dev: suspicious (harmless) message during 
package build
thanks

On Sun, Feb 24, 2008 at 11:19:43PM +0200, Martin-Éric Racine wrote:
> >  Did it complain during normal install?
> 
> Yes, which is why I enabled --debug, hoping to get more useful output
> than the  pointless debconf dialog reporting thatr lv dictionary
> failed to build its hash.

It gave you the line below, corresponding to the error reported by aspell,
it did not just told you that there was an error, passed it to you, I do not
consider that pointless at all. As a matter of fact it allows locating the
problem, see below.

> >  -----------------
> >  > " does not guarantee that "s" can always be stripped.ion "s
> >  -----------------
> >  The above is the error, and is an aspell error message regarding your dict,
> >  where the bug seems to be located.
> 
> Yes, but it doesn't report which word or line number caused this, so
> it's essentially useless. It really needs to tell us this, otherwise
> we're shooting in the dark.

Again, --debug is an aspell-autobuildhash option, used to debug
aspell-autobuildhash, not aspell. aspell-autobuildhash is just a wrapper to
aspell intended to decide if hashes need rebuilding; if there is a problem
with aspell you should debug it within aspell, aspell-autobuildhash just
makes sure that aspell error messages, if any, are not hidden.

The way you could have debugged aspell problems for lv (forget about
aspell-autobuildhash, as you see it has nothing to do below)

Put in a dir

 - lv.dat
 - lv.wl (gunzip cwl.gz and preunzip the result)
 - lv_affix.dat

$ cat lv.wl | aspell --dont-validate-affixes --local-data-dir=. \
  --lang=lv create master ./lv.ahash
" does not guarantee that "s" can always be stripped.
make: *** [default] Error 1

so is an aspell error and indeed provides no info about lines, and
aspell-autobuildhash has passed you the complete error message from aspell.
Why it does not provide useful info? Because your aff file is a mess of DOS
and unix EOL's (However, you could have looked at the aff file even with
this info, looking for inconsistences in places where s is to be stripped,
but this is less clear and more work)

* Sanitize lv_affix.dat

 $ dos2unix lv_affix.dat

Check again,

$ cat lv.wl | aspell --dont-validate-affixes --local-data-dir=. \
  --lang=lv create master ./lv.ahash
Error: .//lv_affix.dat:1704: The condition "s" does not guarantee that "us"
can always be stripped.
make: *** [default] Error 1

Wow!!, things are now much better and you have the line info, go there and
you will notice that you want to strip 'us' when only 's' may be present.
The same in all the k flag below that entry. See attached patch for
something that just does not fail, but that **may be linguistically wrong**,
that means, contact upstream before incorporating those changes. Note that
patch is done using unix-like EOL's for all files.

Even with that there are tons of error messages, related to words ending
with '.' while your lv.dat does not allow that. My experience wrt them
is that they provide more mess than good and I do not provide them, but is
your choice. Attached too.

Also, your watch file is buggy and claims that 0.7.1 is the last version.
You should also put in the copyright notice at least the sf project where
the source resides, just putting http://sourceforge.net is not enough to try
finding upstream page.

Lowering severity and retitling.

-- 
Agustin
--- lv_affix.dat.orig	2008-02-25 12:05:12.000000000 +0100
+++ lv_affix.dat	2008-02-25 12:50:01.000000000 +0100
@@ -1701,12 +1701,12 @@
 SFX Q Y 3
 SFX Q   s     m     [u]s
 SFX Q   s     0     [u]s
-SFX Q   us    û     [s]
+SFX Q   us    û     [u]s
 
 SFX k Y 3
-SFX k   us    i     [s]
-SFX k   us    iem   [s]
-SFX k   us    os    [s]
+SFX k   us    i     [u]s
+SFX k   us    iem   [u]s
+SFX k   us    os    [u]s
 
 SFX R Y 4
 SFX R   0     s     a
Warning: The word "A.k." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Angl." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Apm." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Att." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Bulv." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Gab." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Gs." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Milj." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Mlrd." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Mob.tâlr." is invalid. The character '.' (U+2E) may not 
appear at the end of a word. Skipping word.
Warning: The word "Nr." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Ph." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Plkst." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Sant." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Sek." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "T.i." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "T.sk." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Tml." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Tâlr." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "U.c." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "U.tml." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Utml." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "Utt." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "a.k." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "angl." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "apm." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "att." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "bulv." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "gab." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "gs." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "milj." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "mlrd." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "mob.tâlr." is invalid. The character '.' (U+2E) may not 
appear at the end of a word. Skipping word.
Warning: The word "ph." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "plkst." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "sant." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "sek." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "t.i." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "t.sk." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "tml." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "tâlr." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "u.c." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "u.tml." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "utml." is invalid. The character '.' (U+2E) may not appear 
at the end of a word. Skipping word.
Warning: The word "utt." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "Ð.g." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.
Warning: The word "ð.g." is invalid. The character '.' (U+2E) may not appear at 
the end of a word. Skipping word.

Reply via email to