On Fri, Oct 05, 2012 at 07:33:42AM +0200, Andreas Beckmann wrote:
> Package: ilithuanian
> Version: 1.2.1-3
> Severity: important
> User: debian...@lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package modifies some files
> it ships, from the attached logfile (scroll to the end):
> 
> 0m21.3s ERROR: FAIL: debsums reports modifications inside the chroot:
>   /var/lib/ispell/lietuviu.hash
>   /var/lib/ispell/lietuviu.compat
> 
> In http://lists.debian.org/20120918111501.ga10...@agmartin.aq.upm.es
> Agustin Martin commented that this is harmless, but as this is the last
> ispell dictionary doing this, it would be nice to get this cleaned up
> for wheezy, too.

Hi,

Proposed patch attached, dealing with both aspell-tl and ilithuanian.

Although it is formatted as a NMU I will wait until next week for maintaner
POV about it. 

Regards,

-- 
Agustin
>From e38158ad0da1aa5eb3d627f78b5a80da23d762d2 Mon Sep 17 00:00:00 2001
From: Agustin Martin Domingo <agmar...@debian.org>
Date: Fri, 5 Oct 2012 12:14:18 +0200
Subject: [PATCH] Use installdeb-* auto-compat feature (Closes: #638730).

Use installdeb-* auto-compat feature to avoid modification of
placeholders shipped under /var by maintainer scripts (Closes: #638730).
---
 debian/aspell-lt.info-aspell   |    1 +
 debian/aspell-lt.postinst      |    9 ---------
 debian/changelog               |    9 +++++++++
 debian/control                 |    2 +-
 debian/ilithuanian.config.in   |   11 -----------
 debian/ilithuanian.info-ispell |    1 +
 debian/rules                   |    4 ----
 7 files changed, 12 insertions(+), 25 deletions(-)
 delete mode 100644 debian/aspell-lt.postinst
 delete mode 100644 debian/ilithuanian.config.in

diff --git a/debian/aspell-lt.info-aspell b/debian/aspell-lt.info-aspell
index b1789e6..f473d7b 100644
--- a/debian/aspell-lt.info-aspell
+++ b/debian/aspell-lt.info-aspell
@@ -10,5 +10,6 @@ Ispell-Args: -d lietuviu
 Extended-Character-Mode: 
 Aspell-Locales: lt, lt_LT
 Coding-System: iso-8859-13
+Auto-Compat: lt
 Locale: lt
 
diff --git a/debian/aspell-lt.postinst b/debian/aspell-lt.postinst
deleted file mode 100644
index dac95f2..0000000
--- a/debian/aspell-lt.postinst
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh -e
-
-COMPAT="lt.compat"
-
-if [ "$1" = "reconfigure" ] || [ "$DEBCONF_RECONFIGURE" ]; then
-    echo "0" > "/var/lib/aspell/$COMPAT"
-fi
-
-#DEBHELPER#
diff --git a/debian/changelog b/debian/changelog
index e39fc66..5447f80 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+ispell-lt (1.2.1-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Use installdeb-* auto-compat feature to avoid modification of
+    placeholders shipped under /var by maintainer scripts
+    (Closes: #638730,#689684).
+
+ -- Agustin Martin Domingo <agmar...@debian.org>  Fri, 05 Oct 2012 12:25:10 +0200
+
 ispell-lt (1.2.1-3) unstable; urgency=low
 
   * Switched to 3.0 (quilt) source format. As a consequence, no longer
diff --git a/debian/control b/debian/control
index 5285648..291b8eb 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Kęstutis Biliūnas <ke...@kaunas.init.lt>
 Dm-Upload-Allowed: yes
 Build-Depends: debhelper (>> 7.0.0)
-Build-Depends-Indep: locales, dictionaries-common-dev (>=0.95), ispell, python (>=2.3), aspell (>= 0.60.3-2)
+Build-Depends-Indep: locales, dictionaries-common-dev (>= 1.11.2), ispell, python (>=2.3), aspell (>= 0.60.3-2)
 Standards-Version: 3.8.3
 
 Package: ilithuanian
diff --git a/debian/ilithuanian.config.in b/debian/ilithuanian.config.in
deleted file mode 100644
index 4cece66..0000000
--- a/debian/ilithuanian.config.in
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/perl -w
-
-#DEBHELPER#
-
-if ( $ARGV[0] eq "reconfigure" ){
-    my $flag_file = "/var/lib/ispell/lietuviu.compat";
-    open (REC_FLAG," > $flag_file") 
-	or die "Could not open $flag_file for writing\n";
-    print REC_FLAG "0";
-    close REC_FLAG;
-}
diff --git a/debian/ilithuanian.info-ispell b/debian/ilithuanian.info-ispell
index 95fdea6..d8dde76 100644
--- a/debian/ilithuanian.info-ispell
+++ b/debian/ilithuanian.info-ispell
@@ -10,4 +10,5 @@ Additionalchars: ąčęėįšųūžĄČĘĖĮŠŲŪŽ
 Ispell-Args: -d lietuviu
 Extended-Character-Mode: 
 Coding-System: iso-8859-13
+Auto-Compat: lietuviu
 Locale: lt
diff --git a/debian/rules b/debian/rules
index c27d191..8b91bb6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,11 +45,7 @@ install: build
 	dh_install
 
 	install -m 644 lietuviu.mwl.gz $(CURDIR)/debian/ilithuanian/usr/share/ispell
-	touch $(CURDIR)/debian/ilithuanian/var/lib/ispell/lietuviu.hash
-	touch $(CURDIR)/debian/ilithuanian/var/lib/ispell/lietuviu.compat
 
-	touch $(CURDIR)/debian/aspell-lt/var/lib/aspell/lt.rws
-	touch $(CURDIR)/debian/aspell-lt/var/lib/aspell/lt.compat
 	install -m 644 lt_LT.aff $(CURDIR)/debian/aspell-lt/usr/lib/aspell/lt_affix.dat
 
 	installdeb-ispell -pilithuanian
-- 
1.7.10.4

Reply via email to