Your message dated Thu, 17 Oct 2013 15:19:50 +0000
with message-id <[email protected]>
and subject line Bug#689891: fixed in gsmlib 1.10+20120414.gita5e5ae9a-0.1
has caused the Debian Bug report #689891,
regarding Ships a folder in /var/run or /var/lock (Policy Manual section 9.3.2)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
689891: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689891
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gsmlib
Version: 1.10-13.2
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 gsmlib-1.10/debian/gsm-utils.postinst gsmlib-1.10/debian/gsm-utils.postinst
--- gsmlib-1.10/debian/gsm-utils.postinst
+++ gsmlib-1.10/debian/gsm-utils.postinst
@@ -19,7 +19,7 @@
fi
# echo Updating spool directory structure: /var/spool/sms
-chown -R gsmsms:gsmsms /var/spool/sms /var/run/gsm-utils
+chown -R gsmsms:gsmsms /var/spool/sms
chmod 700 /var/spool/sms/*
chmod 750 /var/spool/sms
chmod 730 /var/spool/sms/queue* /var/spool/sms/tmp
diff -u gsmlib-1.10/debian/gsm-utils.dirs gsmlib-1.10/debian/gsm-utils.dirs
--- gsmlib-1.10/debian/gsm-utils.dirs
+++ gsmlib-1.10/debian/gsm-utils.dirs
@@ -11 +10,0 @@
-var/run/gsm-utils
diff -u gsmlib-1.10/debian/gsm-utils.init gsmlib-1.10/debian/gsm-utils.init
--- gsmlib-1.10/debian/gsm-utils.init
+++ gsmlib-1.10/debian/gsm-utils.init
@@ -42,7 +42,12 @@
test -n "$SMSUSER" && STARTOPTS="$STARTOPTS --chuid $SMSUSER"
test -r /etc/default/gsm-utils && . /etc/default/gsm-utils # for overwriting OPTIONS
-mkdir -p /run/gsm-utils
+if [ ! -d /var/run/gsm-utils ] ; then
+ mkdir -p /var/run/gsm-utils || true
+ if [ -d /var/run/gsm-utils ] ; then
+ chown -R gsmsms:gsmsms /var/spool/sms /var/run/gsm-utils
+ fi
+fi
case "$1" in
start)
@@ -59,23 +64,23 @@
) >/dev/null 2>&1
fi
echo -n "$NAME"
- start-stop-daemon --start --quiet --pidfile /run/gsm-utils/$NAME.pid \
+ start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
--make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME "
- start-stop-daemon --stop --quiet --pidfile /run/gsm-utils/$NAME.pid \
+ start-stop-daemon --stop --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
--exec $DAEMON
sleep 5
echo "."
;;
restart|force-reload)
echo -n "Restarting $DESC: $NAME"
- start-stop-daemon --stop --quiet --pidfile /run/gsm-utils/$NAME.pid \
+ start-stop-daemon --stop --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
--make-pidfile --background --exec $DAEMON -- $OPTIONS
sleep 5
- start-stop-daemon --start --quiet --pidfile /run/gsm-utils/$NAME.pid \
+ start-stop-daemon --start --quiet --pidfile /var/run/gsm-utils/$NAME.pid \
--make-pidfile --background $STARTOPTS --exec $DAEMON -- $OPTIONS
echo "."
;;
diff -u gsmlib-1.10/debian/gsm-utils.postrm gsmlib-1.10/debian/gsm-utils.postrm
--- gsmlib-1.10/debian/gsm-utils.postrm
+++ gsmlib-1.10/debian/gsm-utils.postrm
@@ -26,6 +26,7 @@
purge)
#deluser gsmsms
/usr/sbin/userdel gsmsms
+ rm -rf /var/run/gsm-utils
;;
*)
diff -u gsmlib-1.10/debian/changelog gsmlib-1.10/debian/changelog
--- gsmlib-1.10/debian/changelog
+++ gsmlib-1.10/debian/changelog
@@ -1,3 +1,10 @@
+gsmlib (1.10-13.3) UNRELEASED; urgency=low
+
+ * Non-maintainer upload.
+ * Fixes hanlding of /var/run/gsm-utils folder life cycle (Closes: #XXXXXX).
+
+ -- Thomas Goirand <[email protected]> Sat, 06 Oct 2012 17:04:42 +0800
+
gsmlib (1.10-13.2) unstable; urgency=low
* Non-maintainer upload.
--- End Message ---
--- Begin Message ---
Source: gsmlib
Source-Version: 1.10+20120414.gita5e5ae9a-0.1
We believe that the bug you reported is fixed in the latest version of
gsmlib, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andrew Shadura <[email protected]> (supplier of updated gsmlib package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 15 Oct 2013 13:29:27 +0200
Source: gsmlib
Binary: libgsmme-dev libgsmme1c2a gsm-utils
Architecture: source i386
Version: 1.10+20120414.gita5e5ae9a-0.1
Distribution: unstable
Urgency: low
Maintainer: Mark Purcell <[email protected]>
Changed-By: Andrew Shadura <[email protected]>
Description:
gsm-utils - GSM mobile phone access applications
libgsmme-dev - Header files and static libraries for gsmlib
libgsmme1c2a - GSM mobile phone access library
Closes: 689891
Changes:
gsmlib (1.10+20120414.gita5e5ae9a-0.1) unstable; urgency=low
.
* Non-maintainer upload.
* Update to the latest Git version by Vianney Bouchaud.
* Use 3.0 (quilt) source package format.
* Own the run subdirectory (Closes: #689891).
* Don't remove the system user on package remove.
* Fix init script (LP: #30228).
Checksums-Sha1:
6c0e74dc409e3641011e8f9315b2531d0dc8f4af 1942
gsmlib_1.10+20120414.gita5e5ae9a-0.1.dsc
cffa7439c755d14fa9b0c82cbaa674b840be3671 623726
gsmlib_1.10+20120414.gita5e5ae9a.orig.tar.gz
501290d60fa959d72b1e7420807a43456423b2d3 28017
gsmlib_1.10+20120414.gita5e5ae9a-0.1.debian.tar.gz
51aef94c9a7070c6d72a4728b825e4265f44c07e 37072
libgsmme-dev_1.10+20120414.gita5e5ae9a-0.1_i386.deb
8dd5741c41c82d8654479fd407ac1d6aea12e7bf 171352
libgsmme1c2a_1.10+20120414.gita5e5ae9a-0.1_i386.deb
e9f95589bd89926b45530671b3465fae15992eae 104476
gsm-utils_1.10+20120414.gita5e5ae9a-0.1_i386.deb
Checksums-Sha256:
4752c3cf93427cfd81712d1a3adf83463ad57ee2371eed43fa8623be20277dec 1942
gsmlib_1.10+20120414.gita5e5ae9a-0.1.dsc
0822ad040e614a565d58ce9d3c1355b4dd9ad080d1af1b2eb25abd5ac6f13d4e 623726
gsmlib_1.10+20120414.gita5e5ae9a.orig.tar.gz
f85b09e4e144f076fe61b4883d3e0c99fcbf0938dcd13c7dc66b10661dfb900a 28017
gsmlib_1.10+20120414.gita5e5ae9a-0.1.debian.tar.gz
e580786cc81a551c696c848c44610c532294a7755cd56a5f6bcf75091a31bf4b 37072
libgsmme-dev_1.10+20120414.gita5e5ae9a-0.1_i386.deb
3b8f0aef60c2822282fc05dcf6dfb23af345000233726ddafa8a4c3191a4aa3a 171352
libgsmme1c2a_1.10+20120414.gita5e5ae9a-0.1_i386.deb
0733cc06703d414f93ca9a66effb4ea1bc6c86e5cb7f6ba4968235b915562c2d 104476
gsm-utils_1.10+20120414.gita5e5ae9a-0.1_i386.deb
Files:
9d9540945a5dc8ed527044ce0b62a852 1942 comm extra
gsmlib_1.10+20120414.gita5e5ae9a-0.1.dsc
b8cce121a711f11bddc4796e8bf945e1 623726 comm extra
gsmlib_1.10+20120414.gita5e5ae9a.orig.tar.gz
a4c5ff92d197702da8a60cf80e29b692 28017 comm extra
gsmlib_1.10+20120414.gita5e5ae9a-0.1.debian.tar.gz
36c938de9e4f2d4f3f2643215cdefa40 37072 libdevel extra
libgsmme-dev_1.10+20120414.gita5e5ae9a-0.1_i386.deb
97f9cb18abd3a38b558e6363dcc7f984 171352 libs extra
libgsmme1c2a_1.10+20120414.gita5e5ae9a-0.1_i386.deb
b692e23fe5adf26c232dc647d95ea2cf 104476 comm extra
gsm-utils_1.10+20120414.gita5e5ae9a-0.1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCAAGBQJSXSh1AAoJEG6k0jEaLSaNO8IP/0dZdo4GM+3obiIS/7ao72Xu
imAOJDVNpoM7jKfkOmnkCwQQLMpeMcnSObXiI51IFXaWJ+6v2bp8kjhCo0fxu1Cw
Aki/dtmlQcKJX3aA/b1UD8RvxTpsJP0UiC2Xk7tFKqEzq74GrjkKr1UqJvDOS98f
FXwamk7QLgcvoQdwts5ektDKN5Cn//x6lDJaQy9wtmbzf1GRFQk8YSEXEF6cNJYO
d7Ct0v6Wo/wQFi3U+64VX57OLb9EkFNZjS/6y6wjGqiRPDmj0YJUHhVbskqVuBmc
mPnzEUVUquQxbcfSeESBjIYzWDJPcNo/bY/9IqZ8EZrh1xjHOv8hnTtF2/q4aTTJ
/cuqHUB+aUbJL503WHi1EkwtEyIWaynWbSt2uuxZDD+tKTEeiVv3x5v+DDYevwvH
R1XIkIJq42uAn/QuB2dl0TVwHS8qlgOwolu0dS0v69xNRDQym5lPRrQgYLaiHAev
+zkgPqsygS35c5Ont5vpKVKXqW4n2WHOaF604xsKYRCCr7EhDY0OPuhJ3Pvx0QOw
mUGHs0QxLFqdfCC1aPg7FPChFJLY24prarqcKCqGfopRkAbSuTFWUo0A65XRx2tT
wdCc8iwQ4aFxMn2ghU3z0L9C6Ro6fyzgRew0Rm4UR8kg8ABpb8XSnV6Yt9/eY4Kd
rRhNrRjy+Ka5UHFC2Jd7
=XXZw
-----END PGP SIGNATURE-----
--- End Message ---