Your message dated Thu, 16 Jun 2011 09:47:11 +0000
with message-id <[email protected]>
and subject line Bug#630577: fixed in accountsservice 0.6.12-3
has caused the Debian Bug report #630577,
regarding accountsservice needs a way to shut down the daemon on package 
upgrades/removals
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.)


-- 
630577: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630577
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: accountsservice
Version: 0.6.12-2
Tags: patch

accountsservice package doesn't have a way to shut down the daemon on
package upgrades/removals, so it really needs to have it. Attached patch
adds .postinst and .postrm files, so that is done on upgrades and
removals of the package
=== added file 'debian/accountsservice.postinst'
--- debian/accountsservice.postinst	1970-01-01 00:00:00 +0000
+++ debian/accountsservice.postinst	2011-06-15 10:48:05 +0000
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+get_pid() {
+    [ -n "$1" ] || return 0
+    [ -S /var/run/dbus/system_bus_socket ] || return 0
+
+    dbus-send --system --dest=org.freedesktop.DBus --print-reply \
+              /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \
+              string:$1 2>/dev/null | awk '/uint32/ {print $2}'
+}
+
+if [ "$1" = "configure" ]; then
+   # stop accounts-daemon
+   pid=$(get_pid org.freedesktop.Accounts)
+   kill $pid 2>/dev/null || true
+
+   # restart daemon if it was running before
+   [ -z "$pid" ] || /usr/lib/accountsservice/accounts-daemon & >/dev/null || true # will trigger through D-Bus activation
+fi

=== added file 'debian/accountsservice.prerm'
--- debian/accountsservice.prerm	1970-01-01 00:00:00 +0000
+++ debian/accountsservice.prerm	2011-06-15 10:42:18 +0000
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+get_pid() {
+    [ -n "$1" ] || return 0
+    [ -S /var/run/dbus/system_bus_socket ] || return 0
+
+    dbus-send --system --dest=org.freedesktop.DBus --print-reply \
+              /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \
+              string:$1 2>/dev/null | awk '/uint32/ {print $2}'
+}
+
+if [ "$1" = "remove" ]; then
+    kill $(get_pid org.freedesktop.Accounts) 2>/dev/null || true
+fi

=== modified file 'debian/changelog'
--- debian/changelog	2011-06-05 12:40:37 +0000
+++ debian/changelog	2011-06-15 10:44:25 +0000
@@ -1,3 +1,11 @@
+accountsservice (0.6.12-3) unstable; urgency=low
+
+  * debian/accountsservice.postinst:
+  * debian/accountsservice.prerm:
+    - Add scripts to shut down daemon on package upgrades/removals
+
+ -- Rodrigo Moya <[email protected]>  Wed, 15 Jun 2011 12:43:36 +0200
+
 accountsservice (0.6.12-2) unstable; urgency=low
 
   * Disable 0005-gdm_config_file_path.patch in debian/patches/ubuntu.series as


--- End Message ---
--- Begin Message ---
Source: accountsservice
Source-Version: 0.6.12-3

We believe that the bug you reported is fixed in the latest version of
accountsservice, which is due to be installed in the Debian FTP archive:

accountsservice_0.6.12-3.debian.tar.gz
  to main/a/accountsservice/accountsservice_0.6.12-3.debian.tar.gz
accountsservice_0.6.12-3.dsc
  to main/a/accountsservice/accountsservice_0.6.12-3.dsc
accountsservice_0.6.12-3_amd64.deb
  to main/a/accountsservice/accountsservice_0.6.12-3_amd64.deb
gir1.2-accountservice-1.0_0.6.12-3_amd64.deb
  to main/a/accountsservice/gir1.2-accountservice-1.0_0.6.12-3_amd64.deb
libaccountsservice-dev_0.6.12-3_amd64.deb
  to main/a/accountsservice/libaccountsservice-dev_0.6.12-3_amd64.deb
libaccountsservice0_0.6.12-3_amd64.deb
  to main/a/accountsservice/libaccountsservice0_0.6.12-3_amd64.deb



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.
Alessio Treglia <[email protected]> (supplier of updated accountsservice 
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: SHA1

Format: 1.8
Date: Thu, 16 Jun 2011 11:09:34 +0200
Source: accountsservice
Binary: accountsservice libaccountsservice0 libaccountsservice-dev 
gir1.2-accountservice-1.0
Architecture: source amd64
Version: 0.6.12-3
Distribution: unstable
Urgency: low
Maintainer: Alessio Treglia <[email protected]>
Changed-By: Alessio Treglia <[email protected]>
Description: 
 accountsservice - query and manipulate user account information
 gir1.2-accountservice-1.0 - GObject introspection data for AccountService
 libaccountsservice-dev - query and manipulate user account information - 
header files
 libaccountsservice0 - query and manipulate user account information - shared 
libraries
Closes: 630577
Changes: 
 accountsservice (0.6.12-3) unstable; urgency=low
 .
   * Add accountsservice.{postinst,prerm} scripts to properly shut down
     the daemon on package upgrade and removal (Closes: #630577);
     thanks to Rodrigo Moya for the patch.
Checksums-Sha1: 
 ee8a58cd3ada3ae7521180679e887b969b02605b 1543 accountsservice_0.6.12-3.dsc
 a6f2451d5ed12ad84d9653100f56a44f7f21c7d9 9927 
accountsservice_0.6.12-3.debian.tar.gz
 901ea3003aa4f1eb6fb7ecb3251e63ca93cff35d 43662 
accountsservice_0.6.12-3_amd64.deb
 30df5d4f721da0a4a621fe95337abd9aa6c79a0e 29198 
libaccountsservice0_0.6.12-3_amd64.deb
 9ca11e2aac91c76ede03105c5e2dc051586030e6 10476 
libaccountsservice-dev_0.6.12-3_amd64.deb
 c5016faf1163b7068c587a1f0ecb544778bb6dbc 6966 
gir1.2-accountservice-1.0_0.6.12-3_amd64.deb
Checksums-Sha256: 
 9adcfdbb76745fbc75ba2cb0c3a416f633d56559e3060fdb835cc7cad05c9fec 1543 
accountsservice_0.6.12-3.dsc
 7b71f22447c34aec54468bf78fc920540e4699d1b23a7456b8a675a111c18ac4 9927 
accountsservice_0.6.12-3.debian.tar.gz
 1be9f6271ac1e2ef61191557eac543ef54cd24caf45e97bf0c04c4a71714d729 43662 
accountsservice_0.6.12-3_amd64.deb
 d6c5826a09fbc9d33b8cfc57c3642f4d1b75551e4885a769a501cd93d792da7f 29198 
libaccountsservice0_0.6.12-3_amd64.deb
 341dc8d500046082e3731b0e6fbd74e70a6927f95a943c2e2ba2662d91265056 10476 
libaccountsservice-dev_0.6.12-3_amd64.deb
 e0228d3af50e0851bfaf66a8c94e530fb4e53a22fbab5d031179f55bd3e2c142 6966 
gir1.2-accountservice-1.0_0.6.12-3_amd64.deb
Files: 
 317d55ed950cb6605f05f41abaac2b7c 1543 admin optional 
accountsservice_0.6.12-3.dsc
 60d5bcd95e4ad6077a55f9767b15cd12 9927 admin optional 
accountsservice_0.6.12-3.debian.tar.gz
 42d4d35e61396eb1d52312c2e6cee8b1 43662 admin optional 
accountsservice_0.6.12-3_amd64.deb
 4f02fbd8fef9706f9f141dee492fdc5a 29198 libs optional 
libaccountsservice0_0.6.12-3_amd64.deb
 9a9135f629fbb52bab8268c96d846326 10476 libdevel optional 
libaccountsservice-dev_0.6.12-3_amd64.deb
 47f452aa5d92a76814226b6c4782c291 6966 libs optional 
gir1.2-accountservice-1.0_0.6.12-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk35zMsACgkQRdSMfNz8P9DbMwCeNQg8NuvVGZBe7jccXL0WnYZr
+vMAn1KUAZvPto9r0YDoeT7fy/tXGidZ
=Jd5z
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to