package igerman98
tag 500618 +patch
tag 568741 +patch
thanks

On Tue, Feb 09, 2010 at 04:19:09PM +0100, Helmut Grohne wrote:
> On Tue, Feb 09, 2010 at 03:32:27PM +0100, Agustin Martin wrote:
> > What are the contents of /var/lib/ispell?
> 
> $ ls -la /var/lib/ispell/
> total 3840
> drwxr-xr-x  2 root root    4096 Feb  7 13:51 .
> drwxr-xr-x 64 root root    4096 Feb  7 13:43 ..
> -rw-r--r--  1 root root       1 Dec 14 14:11 ingerman.compat
> -rw-r--r--  1 root root       7 Feb  7 14:00 ngerman.compat
> -rw-r--r--  1 root root 3910560 Feb  7 14:00 ngerman.hash
> $ md5sum /var/lib/ispell/*
> cfcd208495d565ef66e7dff9f98764da  /var/lib/ispell/ingerman.compat
> 63d5aa8eab6985cdff2839bcaee759d5  /var/lib/ispell/ngerman.compat
> 9b32846bd5cae6583cd2391b6a8273c1  /var/lib/ispell/ngerman.hash

Hi,

You have a bogus file there, ingerman.compat, that is triggering the
problem. It means try to build ingerman.hash from ingerman.aff and munched
wordlist at /usr/share/ispell.

I have looked at sources and noticed that seems to have been introduced by
reconfiguration, from debian/ingerman.config.in, where the typo is.

I am attaching a patch to fix this problem in new dicts. In your system you
can safely delete /var/lib/ispell/ingerman.compat and everything should work
again (until you reconfigure with an old dict).

Removing /var/lib/ispell/ingerman.compat if present from the preinst file is
not done, but is something to be considered.

At the same time I am including a workaround for 

#500618 [ingerman: breaks debsums 2.0.37]

by simply not creating md5sums for stuff under /var/lib/{aspell,ispell}.
That means do not check md5sums of stuff there, is supposed to change, but
still keep it under dpkg control.

P.S: I am not ingerman maintainer, just the person who wrote the
ispell-autobuildhash script handling automatic hash building. 
I expect Roland or René will take care of this shortly (Let me know if you
cannot, so I prepare an NMU).

Cheers,

-- 
Agustin

diff -wu igerman98-20091006/debian/ingerman.config.in igerman98-20091006/debian/ingerman.config.in
--- igerman98-20091006/debian/ingerman.config.in
+++ igerman98-20091006/debian/ingerman.config.in
@@ -3,7 +3,7 @@
 #DEBHELPER#
 
 if ( $ARGV[0] eq "reconfigure" ){
-    my $flag_file = "/var/lib/ispell/ingerman.compat";
+    my $flag_file = "/var/lib/ispell/ngerman.compat";
     open (REC_FLAG,"> $flag_file") 
 	or die "Could not open $flag_file for writing\n";
     print REC_FLAG "0";
diff -wu igerman98-20091006/debian/rules igerman98-20091006/debian/rules
--- igerman98-20091006/debian/rules
+++ igerman98-20091006/debian/rules
@@ -289,7 +289,7 @@
 #	dh_python -i
 	dh_installdeb -i
 	dh_gencontrol -i
-	dh_md5sums -i
+	dh_md5sums -i -Xvar/lib/ispell -Xvar/lib/aspell
 	dh_builddeb -i
 
 # Build architecture-dependent files here.
diff -wu igerman98-20091006/debian/changelog igerman98-20091006/debian/changelog
--- igerman98-20091006/debian/changelog
+++ igerman98-20091006/debian/changelog
@@ -1,3 +1,14 @@
+igerman98 (20091006-4.1) unstable; urgency=low
+
+  * Bug Fix proposal
+  * debian/ingerman.config.in:
+    - Fix compat file name to ngerman.compat  (Closes: #568741).
+  * debian/rules:
+    - Do not create md5sums for /var/lib/ispell and /var/lib/aspell.
+      Things there are expected to change. (Closes: #500618).
+
+ -- Agustin Martin Domingo <[email protected]>  Wed, 10 Feb 2010 12:39:26 +0100
+
 igerman98 (20091006-4) unstable; urgency=low
 
   * remove de-XX.{dic,aff} symlinks in /usr/share/hunspell (closes: #566802) 

Reply via email to