Merge lp:~seb128/hud/systemd-for-session into lp:hud

Proposed by Sebastien Bacher on 2016-07-19
Status: Rejected
Rejected by: Martin Pitt on 2016-10-26
Proposed branch: lp:~seb128/hud/systemd-for-session
Merge into: lp:hud
Diff against target: 194 lines (+43/-64)
11 files modified
data/CMakeLists.txt (+18/-32)
data/com.canonical.hud.service.in (+2/-1)
data/dbus-activation-hack.sh.in (+0/-15)
data/hud.conf.in (+0/-8)
data/hud.service.in (+7/-0)
data/window-stack-bridge.conf.in (+0/-6)
data/window-stack-bridge.service.in (+7/-0)
debian/changelog (+6/-0)
debian/control (+1/-1)
debian/hud.install (+1/-1)
debian/hud.links (+1/-0)
To merge this branch: bzr merge lp:~seb128/hud/systemd-for-session
Reviewer Review Type Date Requested Status
Martin Pitt 2016-07-19 Disapprove on 2016-10-26
Ted Gould (community) Approve on 2016-10-21
PS Jenkins bot continuous-integration Pending
Review via email: mp+300430@code.launchpad.net

Commit Message

Switch the user session to systemd. Remove the dbus activation hacks and
the upstart jobs since the only session using those the hud is unity
which is the one migrating to systemd

Description of the Change

Switch the user session to systemd. Remove the dbus activation hacks and
the upstart jobs since the only session using those the hud is unity
which is the one migrating to systemd

To post a comment you must log in.
lp:~seb128/hud/systemd-for-session updated on 2016-07-19
407. By Sebastien Bacher on 2016-07-19

Switch the user session to systemd. Remove the dbus activation hacks and
the upstart jobs since the only session using those the hud is unity
which is the one migrating to systemd

Marco Trevisan (Treviño) (3v1n0) wrote :

Good, but do we want also to get rid of upstart at all at this stage?

Sebastien Bacher (seb128) wrote :

I discussed that with ted and we said we would, the hud is only used in unity and we converted the yakkety session to systemd so there is no real case where upstart is needed right?

Marco Trevisan (Treviño) (3v1n0) wrote :

Ok, I think it's not needed... The only reason to me was to keep delta with xenial branch the smallest possible, to make backport easier. Being xenial the main target here.

Sebastien Bacher (seb128) wrote :

well, as you want, just let me know if you want it changed or land it like that, it would be good to get in to complete the systemd user session transition

Marco Trevisan (Treviño) (3v1n0) wrote :

I'm fine with that, although pitti told me we should keep upstart session still working, so maybe it's better to keep the upstart part.

Martin Pitt (pitti) wrote :

> pitti told me we should keep upstart session still working

The original agreement was that we would do the transition step by step without flag days, keep all upstart bits as they are, and in a second sweep remove the upstart bits *after* the transition has been finished. This both allows us to keep the packages backportable to xenial, and also easily disable the systemd session to debug regressions.

So for now I'd recommend to keep the upstart job, but I don't veto this approach. Also, if the hud does not work that does not completely break Unity.

Martin Pitt (pitti) wrote :

LGTM, and works well, but we can't triple-land this as it removes the upstart bits.

This also includes the changelog -- if bileto ignores/rewrites this, it's fine, otherwise it needs to be dropped.

review: Needs Information
Ted Gould (ted) wrote :

If it has the changelog entry it will use that as the changelog instead of the commit message, but it'll update the versions.

review: Approve
Martin Pitt (pitti) wrote :
review: Disapprove

Unmerged revisions

407. By Sebastien Bacher on 2016-07-19

Switch the user session to systemd. Remove the dbus activation hacks and
the upstart jobs since the only session using those the hud is unity
which is the one migrating to systemd

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/CMakeLists.txt'
2--- data/CMakeLists.txt 2013-11-08 09:03:30 +0000
3+++ data/CMakeLists.txt 2016-07-19 16:32:24 +0000
4@@ -31,36 +31,22 @@
5 )
6
7 ###########################
8-# Upstart Job
9+# Systemd Unit
10 ###########################
11
12-set(HUD_UPSTART
13-"${CMAKE_CURRENT_BINARY_DIR}/hud.conf"
14-)
15-
16-set(pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/hud")
17-configure_file("hud.conf.in"
18- "${HUD_UPSTART}"
19- @ONLY
20-)
21-
22-install(
23-FILES
24-"${HUD_UPSTART}"
25-DESTINATION "${CMAKE_INSTALL_DATADIR}/upstart/sessions"
26-)
27-
28-set(pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/hud")
29-configure_file("dbus-activation-hack.sh.in"
30- "${CMAKE_CURRENT_BINARY_DIR}/dbus-activation-hack.sh"
31- @ONLY
32-)
33-
34-install(
35-PROGRAMS
36-"${CMAKE_CURRENT_BINARY_DIR}/dbus-activation-hack.sh"
37-DESTINATION
38-"${CMAKE_INSTALL_FULL_LIBEXECDIR}/hud"
39+# where to install
40+pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)
41+message (STATUS "${SYSTEMD_USER_DIR} is the systemd user unit file install dir")
42+
43+set(pkglibexecdir "${CMAKE_INSTALL_FULL_LIBEXECDIR}/hud")
44+configure_file("hud.service.in"
45+ "hud.service"
46+ @ONLY
47+)
48+
49+install(
50+FILES "${CMAKE_CURRENT_BINARY_DIR}/hud.service"
51+DESTINATION "${SYSTEMD_USER_DIR}"
52 )
53
54 ###########################
55@@ -68,14 +54,14 @@
56 ###########################
57
58 configure_file(
59- "window-stack-bridge.conf.in"
60- "window-stack-bridge.conf"
61+ "window-stack-bridge.service.in"
62+ "window-stack-bridge.service"
63 @ONLY
64 )
65
66 install(
67- FILES "${CMAKE_CURRENT_BINARY_DIR}/window-stack-bridge.conf"
68- DESTINATION "${CMAKE_INSTALL_DATADIR}/upstart/sessions"
69+ FILES "${CMAKE_CURRENT_BINARY_DIR}/window-stack-bridge.service"
70+ DESTINATION "${SYSTEMD_USER_DIR}"
71 )
72
73 ###########################
74
75=== modified file 'data/com.canonical.hud.service.in'
76--- data/com.canonical.hud.service.in 2013-06-10 17:33:58 +0000
77+++ data/com.canonical.hud.service.in 2016-07-19 16:32:24 +0000
78@@ -1,3 +1,4 @@
79 [D-BUS Service]
80 Name=com.canonical.hud
81-Exec=@pkglibexecdir@/dbus-activation-hack.sh
82+Exec=@pkglibexecdir@/hud-service
83+SystemdService=hud.service
84
85=== removed file 'data/dbus-activation-hack.sh.in'
86--- data/dbus-activation-hack.sh.in 2013-10-08 20:19:53 +0000
87+++ data/dbus-activation-hack.sh.in 1970-01-01 00:00:00 +0000
88@@ -1,15 +0,0 @@
89-#!/bin/sh
90-
91-# This is a quick hack to make it so that DBus activation works as the
92-# DBus daemon holds onto the PID until the name gets registered. So we
93-# need the PID to exist until then. 10 seconds should be more that enough
94-# time for the service to register the name.
95-#
96-# This can go away if we get DBus Activation for Upstart
97-
98-if [ "x$UPSTART_SESSION" != "x" ]; then
99- start hud
100- sleep 10
101-else
102- @pkglibexecdir@/hud-service
103-fi
104
105=== removed file 'data/hud.conf.in'
106--- data/hud.conf.in 2014-09-15 15:49:21 +0000
107+++ data/hud.conf.in 1970-01-01 00:00:00 +0000
108@@ -1,8 +0,0 @@
109-description "Unity HUD"
110-
111-# Currently started by the dbus service file
112-# start on dbus-activation com.canonical.hud
113-stop on desktop-end
114-start on started dbus and ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger) or (xsession SESSION=ubuntu))
115-
116-exec @pkglibexecdir@/hud-service
117
118=== added file 'data/hud.service.in'
119--- data/hud.service.in 1970-01-01 00:00:00 +0000
120+++ data/hud.service.in 2016-07-19 16:32:24 +0000
121@@ -0,0 +1,7 @@
122+[Unit]
123+Description=Unity HUD
124+
125+[Service]
126+Type=dbus
127+BusName=com.canonical.hud
128+ExecStart=@pkglibexecdir@/hud-service
129
130=== removed file 'data/window-stack-bridge.conf.in'
131--- data/window-stack-bridge.conf.in 2014-09-15 15:53:16 +0000
132+++ data/window-stack-bridge.conf.in 1970-01-01 00:00:00 +0000
133@@ -1,6 +0,0 @@
134-description "Window Stack Bridge"
135-
136-start on started dbus
137-stop on desktop-end
138-
139-exec @pkglibexecdir@/window-stack-bridge
140
141=== added file 'data/window-stack-bridge.service.in'
142--- data/window-stack-bridge.service.in 1970-01-01 00:00:00 +0000
143+++ data/window-stack-bridge.service.in 2016-07-19 16:32:24 +0000
144@@ -0,0 +1,7 @@
145+[Unit]
146+Description=Window Stack Bridge
147+PartOf=graphical-session.target
148+
149+[Service]
150+ExecStart=@pkglibexecdir@/window-stack-bridge
151+Restart=on-failure
152
153=== modified file 'debian/changelog'
154--- debian/changelog 2016-04-15 11:58:16 +0000
155+++ debian/changelog 2016-07-19 16:32:24 +0000
156@@ -1,3 +1,9 @@
157+hud (14.10+16.04.20160415-0ubuntu2~systemd1) yakkety; urgency=medium
158+
159+ * Switch the user session to systemd
160+
161+ -- Sebastien Bacher <seb128@ubuntu.com> Tue, 19 Jul 2016 11:17:58 +0200
162+
163 hud (14.10+16.04.20160415-0ubuntu1) xenial; urgency=medium
164
165 [ Andrea Azzarone ]
166
167=== modified file 'debian/control'
168--- debian/control 2015-08-20 13:44:43 +0000
169+++ debian/control 2016-07-19 16:32:24 +0000
170@@ -2,7 +2,7 @@
171 Section: gnome
172 Priority: optional
173 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
174-Build-Depends: cmake,
175+Build-Depends: cmake (>= 3.4),
176 debhelper (>= 9),
177 gnome-common,
178 gobject-introspection,
179
180=== modified file 'debian/hud.install'
181--- debian/hud.install 2013-06-10 17:36:43 +0000
182+++ debian/hud.install 2016-07-19 16:32:24 +0000
183@@ -3,4 +3,4 @@
184 usr/lib/*/hud
185 usr/share/dbus-1
186 usr/share/glib-2.0
187-usr/share/upstart/sessions
188+usr/lib/systemd
189
190=== added file 'debian/hud.links'
191--- debian/hud.links 1970-01-01 00:00:00 +0000
192+++ debian/hud.links 2016-07-19 16:32:24 +0000
193@@ -0,0 +1,1 @@
194+usr/lib/systemd/user/window-stack-bridge.service usr/lib/systemd/user/ubuntu-session.target.wants/window-stack-bridge.service

Subscribers

People subscribed via source and target branches