summaryrefslogtreecommitdiff
path: root/packaging/dbus.spec
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@ubuntu1604.playinsun.pe.kr>2017-02-22 11:38:43 +0900
committerINSUN PYO <insun.pyo@samsung.com>2017-02-22 14:53:46 -0800
commit7153a31c2fffef7fa451f43084a7f7b93a628d12 (patch)
tree67936ba74ddd8ebdc6b113566a2dceaea9729fca /packaging/dbus.spec
parente3dc5da3dfaaed4db588bf07c38b9879c5a464c5 (diff)
downloaddbus-7153a31c2fffef7fa451f43084a7f7b93a628d12.tar.gz
dbus-7153a31c2fffef7fa451f43084a7f7b93a628d12.tar.bz2
dbus-7153a31c2fffef7fa451f43084a7f7b93a628d12.zip
Until now, dbus.socket of user session was not running in the sockets.target. dbus.socket has been triggered by dbus.service's dependencies. The dbus.service is included in basic.target. Therefore, there are some dependency issues. If a service runs before dbus.service, the service can not accesses dbus system. (Since dbus.socket is not yet activated, so you can not make a dbus connection.) I have modified dbus.service to be explicitly run in sockets.target. On the session bus, sockets.target is guaranteed to run before all services. Signed-off-by: INSUN PYO <insun.pyo@ubuntu1604.playinsun.pe.kr> Change-Id: Ic46f1a46b458e2017b0025c6e564ac1204eb8cc8 (cherry picked from commit 1beb067e73478b3948980eb19e379a8986dc365a)
Diffstat (limited to 'packaging/dbus.spec')
-rw-r--r--packaging/dbus.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/dbus.spec b/packaging/dbus.spec
index a468e265..431fa56d 100644
--- a/packaging/dbus.spec
+++ b/packaging/dbus.spec
@@ -149,6 +149,9 @@ install -m 0644 %{SOURCE6} %{buildroot}%{_unitdir_user}/dbus.socket
mkdir -p %{buildroot}%{_unitdir_user}/basic.target.wants
ln -sf ../dbus.service %{buildroot}%{_unitdir_user}/basic.target.wants/dbus.service
+mkdir -p %{buildroot}%{_unitdir_user}/sockets.target.wants
+ln -sf ../dbus.service %{buildroot}%{_unitdir_user}/sockets.target.wants/dbus.socket
+
rm -rf %{buildroot}/%{_libdir}/*.la
rm -rf %{buildroot}/%{_bindir}/dbus-launch
@@ -211,6 +214,8 @@ rm -fr %{buildroot}/usr/share/installed-tests/dbus
%{_unitdir_user}/dbus.socket
%dir %{_unitdir_user}/basic.target.wants
%{_unitdir_user}/basic.target.wants/dbus.service
+%dir %{_unitdir_user}/sockets.target.wants
+%{_unitdir_user}/sockets.target.wants/dbus.socket
%dir %{_unitdir}/dbus.target.wants
%{_unitdir}/dbus.target.wants/dbus.socket
%dir %{_unitdir}/multi-user.target.wants