Your message dated Sat, 21 Sep 2013 22:33:42 +0000
with message-id <[email protected]>
and subject line Bug#723857: fixed in accountsservice 0.6.34-2
has caused the Debian Bug report #723857,
regarding accountsservice: Please enable systemd support
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.)


-- 
723857: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723857
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: accountsservice
Severity: wishlist
Tags: patch

Hi,

Attached are some patches to enable systemd support again.

The bug because of which it was disabled was fixed upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=50112

The patches are also available on my github account:
https://github.com/schaal/accountsservice/compare/master...enable-systemd-integration

Cheers,
Daniel Schaal

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (103, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11.0 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information
>From 867903632985faa8b96e9a2f65ca3e0d919e7da6 Mon Sep 17 00:00:00 2001
From: Daniel Schaal <[email protected]>
Date: Sun, 1 Sep 2013 19:31:37 +0200
Subject: [PATCH 1/5] Revert "Disable systemd support:"

This reverts commit 2d66e9fb088e1b6b712ffba26cb12ef9eeac3c4a.

Conflicts:
	debian/rules
---
 debian/accountsservice.install | 1 +
 debian/control                 | 2 ++
 debian/rules                   | 3 ++-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/accountsservice.install b/debian/accountsservice.install
index b1522e7..a63e680 100644
--- a/debian/accountsservice.install
+++ b/debian/accountsservice.install
@@ -1,4 +1,5 @@
 etc
+lib
 usr/lib/accountsservice
 usr/share/dbus-1
 usr/share/locale
diff --git a/debian/control b/debian/control
index 5aed4ea..0f0f254 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,8 @@ Build-Depends:
  libgirepository1.0-dev (>= 0.9.12),
  libglib2.0-dev (>= 2.34),
  libpolkit-gobject-1-dev,
+ libsystemd-daemon-dev,
+ libsystemd-login-dev,
  xmlto
 Build-Depends-Indep:
  gtk-doc-tools
diff --git a/debian/rules b/debian/rules
index 1dd07f0..acedf99 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,7 +21,8 @@ override_dh_shlibdeps:
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		--enable-gtk-doc \
-		--enable-static=no
+		--enable-static=no \
+		--with-systemdsystemunitdir=/lib/systemd/system
 
 # Disabled to avoid FTBFS
 override_dh_auto_test:
-- 
1.8.4.rc3

>From ebbe825a8d234840bc9ed8cbdf467296e013bc5e Mon Sep 17 00:00:00 2001
From: Daniel Schaal <[email protected]>
Date: Sun, 1 Sep 2013 19:39:58 +0200
Subject: [PATCH 2/5] Revert "Strip SystemdService out of
 org.freedesktop.Accounts.service service file."

This reverts commit a54265eda6b25440e4480a3fee0f44aa5ec5349e.
---
 debian/patches/2002-disable_systemd.patch | 14 --------------
 debian/patches/series                     |  1 -
 debian/patches/ubuntu.series              |  1 -
 3 files changed, 16 deletions(-)
 delete mode 100644 debian/patches/2002-disable_systemd.patch

diff --git a/debian/patches/2002-disable_systemd.patch b/debian/patches/2002-disable_systemd.patch
deleted file mode 100644
index ce4e658..0000000
--- a/debian/patches/2002-disable_systemd.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Description: Remove SystemdService from DBus service file.
-Author: Alessio Treglia <[email protected]>
-Bug-Debian: http://bugs.debian.org/675925
----
- data/org.freedesktop.Accounts.service.in |    1 -
- 1 file changed, 1 deletion(-)
-
---- accountsservice.orig/data/org.freedesktop.Accounts.service.in
-+++ accountsservice/data/org.freedesktop.Accounts.service.in
-@@ -2,4 +2,3 @@
- Name=org.freedesktop.Accounts
- Exec=@libexecdir@/accounts-daemon
- User=root
--SystemdService=accounts-daemon.service
diff --git a/debian/patches/series b/debian/patches/series
index 8476d61..7b66d2b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,4 +4,3 @@
 0007-add-lightdm-support.patch
 1001-buildsystem.patch
 2001-filtering_out_users.patch
-2002-disable_systemd.patch
diff --git a/debian/patches/ubuntu.series b/debian/patches/ubuntu.series
index 03c7586..89ff4e3 100644
--- a/debian/patches/ubuntu.series
+++ b/debian/patches/ubuntu.series
@@ -10,4 +10,3 @@
 0012-add-keyboard-layout-support.patch
 0013-add-has-message-support.patch
 1001-buildsystem.patch
-2002-disable_systemd.patch
-- 
1.8.4.rc3

>From d51cdd992de6aead64492223f7a35d267824640f Mon Sep 17 00:00:00 2001
From: Daniel Schaal <[email protected]>
Date: Sun, 1 Sep 2013 19:34:24 +0200
Subject: [PATCH 3/5] Only enable systemd on linux-any.

---
 debian/accountsservice.install          | 1 -
 debian/accountsservice.install.linux.in | 2 ++
 debian/clean                            | 1 +
 debian/control                          | 4 ++--
 debian/rules                            | 1 +
 5 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 debian/accountsservice.install.linux.in

diff --git a/debian/accountsservice.install b/debian/accountsservice.install
index a63e680..b1522e7 100644
--- a/debian/accountsservice.install
+++ b/debian/accountsservice.install
@@ -1,5 +1,4 @@
 etc
-lib
 usr/lib/accountsservice
 usr/share/dbus-1
 usr/share/locale
diff --git a/debian/accountsservice.install.linux.in b/debian/accountsservice.install.linux.in
new file mode 100644
index 0000000..be7cebb
--- /dev/null
+++ b/debian/accountsservice.install.linux.in
@@ -0,0 +1,2 @@
+# only list linux-specific files here
+lib
diff --git a/debian/clean b/debian/clean
index f00f8e8..ff99252 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1 +1,2 @@
 gtk-doc.make
+debian/accountsservice.install.linux
diff --git a/debian/control b/debian/control
index 0f0f254..b510ec9 100644
--- a/debian/control
+++ b/debian/control
@@ -13,8 +13,8 @@ Build-Depends:
  libgirepository1.0-dev (>= 0.9.12),
  libglib2.0-dev (>= 2.34),
  libpolkit-gobject-1-dev,
- libsystemd-daemon-dev,
- libsystemd-login-dev,
+ libsystemd-daemon-dev (>= 186) [linux-any],
+ libsystemd-login-dev (>= 186) [linux-any],
  xmlto
 Build-Depends-Indep:
  gtk-doc-tools
diff --git a/debian/rules b/debian/rules
index acedf99..e2e4b44 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,6 +31,7 @@ override_dh_installchangelogs:
 	dh_installchangelogs NEWS
 
 override_dh_install:
+	cat debian/accountsservice.install debian/accountsservice.install.linux.in > debian/accountsservice.install.linux
 	dh_install
 	# patch is only applied conditionally, only install when present
 	if [ -d debian/tmp/usr/share/language-tools ]; then \
-- 
1.8.4.rc3

>From 7b281a77154a107ae0de5fba5a0ac74a05a9c4c0 Mon Sep 17 00:00:00 2001
From: Daniel Schaal <[email protected]>
Date: Mon, 2 Sep 2013 19:16:17 +0200
Subject: [PATCH 4/5] Use dh-systemd.

---
 debian/control | 1 +
 debian/rules   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index b510ec9..cc5961f 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Alessio Treglia <[email protected]>
 Build-Depends:
  debhelper (>= 7.0.50~),
  dh-autoreconf,
+ dh-systemd,
  gir1.2-freedesktop,
  gir1.2-glib-2.0 (>= 1.34),
  gnome-doc-utils,
diff --git a/debian/rules b/debian/rules
index e2e4b44..d348418 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 LDFLAGS+=-Wl,--as-needed
 
 %:
-	dh $@ --parallel --with autoreconf
+	dh $@ --parallel --with autoreconf,systemd
 
 override_dh_autoreconf:
 	dh_autoreconf ./autogen.sh
-- 
1.8.4.rc3

>From 5c87d15439f4c1244c048e38be92152a4eaec19f Mon Sep 17 00:00:00 2001
From: Daniel Schaal <[email protected]>
Date: Sun, 1 Sep 2013 20:05:31 +0200
Subject: [PATCH 5/5] If it is used, let systemd handle restarting the daemon
 in maintscripts.

---
 debian/accountsservice.postinst | 2 +-
 debian/accountsservice.prerm    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/accountsservice.postinst b/debian/accountsservice.postinst
index 8b331ee..49bd08e 100644
--- a/debian/accountsservice.postinst
+++ b/debian/accountsservice.postinst
@@ -11,7 +11,7 @@ get_pid() {
               string:$1 2>/dev/null | awk '/uint32/ {print $2}'
 }
 
-if [ "$1" = "configure" ]; then
+if [ "$1" = "configure" -a ! -d /run/systemd/system ]; then
    # stop accounts-daemon
    pid=$(get_pid org.freedesktop.Accounts)
    kill $pid 2>/dev/null || true
diff --git a/debian/accountsservice.prerm b/debian/accountsservice.prerm
index 87315c4..4dd9956 100644
--- a/debian/accountsservice.prerm
+++ b/debian/accountsservice.prerm
@@ -11,7 +11,7 @@ get_pid() {
               string:$1 2>/dev/null | awk '/uint32/ {print $2}'
 }
 
-if [ "$1" = "remove" ]; then
+if [ "$1" = "remove" -a ! -d /run/systemd/system ]; then
     kill $(get_pid org.freedesktop.Accounts) 2>/dev/null || true
 fi
 
-- 
1.8.4.rc3


--- End Message ---
--- Begin Message ---
Source: accountsservice
Source-Version: 0.6.34-2

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.

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: Sat, 21 Sep 2013 22:56:06 +0100
Source: accountsservice
Binary: accountsservice libaccountsservice0 libaccountsservice-dev 
gir1.2-accountsservice-1.0 libaccountsservice-dbg libaccountsservice-doc
Architecture: source amd64 all
Version: 0.6.34-2
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-accountsservice-1.0 - GObject introspection data for AccountService
 libaccountsservice-dbg - query and manipulate user account information - debug
 libaccountsservice-dev - query and manipulate user account information - 
header files
 libaccountsservice-doc - query and manipulate user account information - 
documentation
 libaccountsservice0 - query and manipulate user account information - shared 
libraries
Closes: 723745 723857
Changes: 
 accountsservice (0.6.34-2) unstable; urgency=low
 .
   * Re-enable systemd support (Closes: #723857):
     - Revert "Disable systemd support:"
     - Revert "Strip SystemdService out of org.freedesktop.Accounts.service
       service file."
     - Enable systemd on Linux only.
     - Use dh-systemd.
     - If it is being used, let systemd handle restarting the daemon in
       maintscripts.
   * Fix various memory leaks. Thanks to Roberto Paleari for the bug
     report. (Closes: #723745)
Checksums-Sha1: 
 20eef14c0199047243886f1e4ce91106dbf4e4d8 2645 accountsservice_0.6.34-2.dsc
 297329259123756533b31648effa22e7e2e4bce0 37834 
accountsservice_0.6.34-2.debian.tar.gz
 135e18fe3d6020a53b0756d6778da97b0a544532 65198 
accountsservice_0.6.34-2_amd64.deb
 0558b0766087648d6715ea196d5385454e9ea436 73426 
libaccountsservice0_0.6.34-2_amd64.deb
 718f62322bd039d1763292d6d3e7797866c28a49 18610 
libaccountsservice-dev_0.6.34-2_amd64.deb
 bd64e78658ceaaa59b7100c4fca2c0a9cca9b096 13654 
gir1.2-accountsservice-1.0_0.6.34-2_amd64.deb
 7fdc28d284843fa2b68ba1d7748f4d34d7e0a4f9 160132 
libaccountsservice-dbg_0.6.34-2_amd64.deb
 645f6735b82814ee787df79cab4dd79aff367b37 28038 
libaccountsservice-doc_0.6.34-2_all.deb
Checksums-Sha256: 
 85d6112c24ab49398f62323f1c147d8138b8765eae23978e7cc2c02956565e24 2645 
accountsservice_0.6.34-2.dsc
 ba0d0430b98c5b2bf5b3368410fce7c5676772ec86786b05069a060930afd0a8 37834 
accountsservice_0.6.34-2.debian.tar.gz
 1e37749a7e7ed400eeb8033edce301df1c22c9b6564c34a04b847648e3173832 65198 
accountsservice_0.6.34-2_amd64.deb
 60ee7f1b4de77a4564547d458da96befc6fd1419912e07baddee8fefc951912c 73426 
libaccountsservice0_0.6.34-2_amd64.deb
 abb7b8dd9345007d716930a29aebc53c332468003c78ebb557027fccd2b1d402 18610 
libaccountsservice-dev_0.6.34-2_amd64.deb
 092e934375aaf92b0c580db7547393c8657a80cd3f19e8d7dd16ecc1b2935b28 13654 
gir1.2-accountsservice-1.0_0.6.34-2_amd64.deb
 d4396c17018bf1de1cd77b03ce893cd7e77eafc434825f38e3dd00de59214a9a 160132 
libaccountsservice-dbg_0.6.34-2_amd64.deb
 04ca224fdacf782d96a6526a0b8782fd1e721efdc032e21676573bb30a97b675 28038 
libaccountsservice-doc_0.6.34-2_all.deb
Files: 
 fc596d7c0f334ff464092da0d9c4c612 2645 admin optional 
accountsservice_0.6.34-2.dsc
 9b5049b0129e8dc2bb6c91ee35e7bce1 37834 admin optional 
accountsservice_0.6.34-2.debian.tar.gz
 ee8abc207f698aea21047fcb568d3433 65198 admin optional 
accountsservice_0.6.34-2_amd64.deb
 8eabbd3f448732b9e3a4e87008e48988 73426 libs optional 
libaccountsservice0_0.6.34-2_amd64.deb
 e81c4388b7384d6ca27df6770172fb33 18610 libdevel optional 
libaccountsservice-dev_0.6.34-2_amd64.deb
 03d8881e975b6436983837f710a94dd9 13654 introspection optional 
gir1.2-accountsservice-1.0_0.6.34-2_amd64.deb
 3f5af202d458b0442c45ac2884d32531 160132 debug extra 
libaccountsservice-dbg_0.6.34-2_amd64.deb
 d61e0b1a9ea0945daa07ca57e6f820d6 28038 doc optional 
libaccountsservice-doc_0.6.34-2_all.deb

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

iQIcBAEBAgAGBQJSPhtjAAoJEOikiuUxHXZaud8P/3q5xDPE7tgJsLQPBY1vGvx+
eOW4vBdMbf4f/9DAZQB15hb9oWIVZPm5afLuL0/+FCAWnsJgGyYej+vSKdN6NB64
WmqgvIRppKz3cKWBARvRkkOB6SvZNgGEJKLJmsCMbAh6rKyZQb4GyRWaKKNrOULw
qIIuwd1/lJ9XILd2h1GHQaGx/7Sx3pSmWPV+oWx5LiRyi71mrZisMAgms2TdPloY
fxRBRCQArQVceBkIlw1l+fvVHUeqcmyNYAg/8y8EmfIgObl7nA429PtfbW5E1vZm
/jzuvZ6PKOAQmbUB/fcNg90BVTTXzHWqkpJVRa5V6kudA69E4lw/jLBGk3Tbx/nW
HNSjpluDwxUwflGuIXe9FMySiN6TrTtvHcUE/yNL6DtL/5h8B24Py+tau6geU90k
oXkJEO2oV6DFql+Fnsrv7qFSdpDiv5gCFpaFnjepRvZQhcW/fmo1LWXiI+y6oJCm
nERorJ4ScjaV3ne8aeCx6AoxmgdiWi0zSZ3G7xFqpWrYVTP829k1mB+o9+1gsfV3
DvXbSHGglaBu3VK81TkU7mBtFxMHaF9hon77COxbnA8N5G02O4ukMWWLDA3BYJ/4
bQWSbHvk3kM8SN93sEAeP0Ylu1VfKb2gnu1al2FAYnJ/V1xLEMBsl8kLz87FA03N
Egtvzj4TNg6S29BBtgdy
=Bnuz
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to