Package: cpushare
Version: 0.48-4
Severity: serious
Tags: patch

Dear Maintainer,

Andreas Beckmann <[email protected]> reported in -devel that your package
(as well as 27 others) ships a folder either in /var/run or /var/lock. This
is forbidden by policy.

Lintian detects the problem and warns as follow:

/var/run may be a temporary filesystem, so any directories or files needed
/there must be created dynamically at boot time.

Refer to Debian Policy Manual section 9.3.2 (Writing the scripts) for
details.

Severity: serious, Certainty: possible
Check: files, Type: binary, udeb

which is why I am reporting this bug with severity serious (and there fore,
release critical).

Please fix your package. I have attached what I believe is a good fix the
problem, however, I haven't tried it, and I haven't tested if something more
for creating the necessary folder at runtime should be added. Please make
sure to test before applying the patch blindly.

Cheers,

Thomas Goirand (zigo)
diff -u cpushare-0.48/debian/cpushare.postinst cpushare-0.48/debian/cpushare.postinst
--- cpushare-0.48/debian/cpushare.postinst
+++ cpushare-0.48/debian/cpushare.postinst
@@ -4,7 +4,7 @@
     adduser --quiet --system --no-create-home --home /var/run/cpushare cpushare
 fi
 
-for d in /var/run/cpushare /var/log/cpushare /var/cache/cpushare; do
+for d in /var/log/cpushare /var/cache/cpushare; do
     chown cpushare:nogroup $d
     chmod 755 $d
 done
diff -u cpushare-0.48/debian/cpushare.dirs cpushare-0.48/debian/cpushare.dirs
--- cpushare-0.48/debian/cpushare.dirs
+++ cpushare-0.48/debian/cpushare.dirs
@@ -10,3 +10,2 @@
 /var/cache/cpushare
-/var/run/cpushare
 /var/log/cpushare
diff -u cpushare-0.48/debian/changelog cpushare-0.48/debian/changelog
--- cpushare-0.48/debian/changelog
+++ cpushare-0.48/debian/changelog
@@ -1,3 +1,10 @@
+cpushare (0.48-4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Doesn't ship /var/run/cpushare in the .deb (Closes: #XXXXXX).
+
+ -- Thomas Goirand <[email protected]>  Sat, 06 Oct 2012 16:26:30 +0800
+
 cpushare (0.48-4) unstable; urgency=low
 
   * debian/.noinit: added content to this file because dpkg-buildpackage

Reply via email to