Merge lp:~ogra/hud/new-dbus-address into lp:hud/14.04

Proposed by Oliver Grawert
Status: Superseded
Proposed branch: lp:~ogra/hud/new-dbus-address
Merge into: lp:hud/14.04
Diff against target: 57 lines (+9/-13)
3 files modified
data/hud.conf.in (+1/-12)
data/window-stack-bridge.conf.in (+1/-1)
debian/changelog (+7/-0)
To merge this branch: bzr merge lp:~ogra/hud/new-dbus-address
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+220066@code.launchpad.net

This proposal has been superseded by a proposal from 2014-06-13.

Commit message

move to new dbus-session address handling in XDG_RUNTIME_DIR

Description of the change

move to new dbus-session address handling in XDG_RUNTIME_DIR (needs https://code.launchpad.net/~ogra/ubuntu-touch-session/fix-dbus-location/+merge/220064)

To post a comment you must log in.
Revision history for this message
Oliver Grawert (ogra) wrote :

needs also http://paste.ubuntu.com/7488802/ to land at the same time

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) wrote :

I think that we still need to report the recoverable error here as it isn't entirely fixed:

https://errors.ubuntu.com/bucket/?id=DBusSessionAddressNotSet

review: Needs Fixing
Revision history for this message
Oliver Grawert (ogra) wrote :

well, this isn't any kind of fix for that session bus address issue but in conjunction with the other branches and the pending dbus upload a fix for a critical bug leaving you with a completely unbootable phone if the homedir is 100% filled ... please see bug 1316978, i will open a HUD task for it...

Revision history for this message
Ted Gould (ted) wrote :

On Mon, 2014-05-19 at 19:01 +0000, Oliver Grawert wrote:

> well, this isn't any kind of fix for that session bus address issue
> but in conjunction with the other branches and the pending dbus upload
> a fix for a critical bug leaving you with a completely unbootable
> phone if the homedir is 100% filled ... please see bug 1316978, i will
> open a HUD task for it...

Not expecting this to fix it, but you're removing the reporting of it
which is done in that pre-start script.

Revision history for this message
Oliver Grawert (ogra) wrote :

erm, did you look at the current upstart job ? it is completely broken containing two identical pre-start script blocks, i am just remooving the duplication.

Revision history for this message
Ted Gould (ted) wrote :

On Mon, 2014-05-19 at 21:15 +0000, Oliver Grawert wrote:

> erm, did you look at the current upstart job ? it is completely broken containing two identical pre-start script blocks, i am just remooving the duplication.

Uhg, sorry, no. Just looked at the diff. Not sure how that happened.

Revision history for this message
Ted Gould (ted) :
review: Approve

Unmerged revisions

392. By Oliver Grawert

fix duplicated pre-start script blocks in upstart jobs, make sure to use dbus-session address from new location

391. By Ricardo Salveti

releasing package hud version 13.10.1+14.04.20140402-0ubuntu2

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/hud.conf.in'
2--- data/hud.conf.in 2013-11-27 14:28:43 +0000
3+++ data/hud.conf.in 2014-05-19 14:37:48 +0000
4@@ -1,16 +1,5 @@
5 description "Unity HUD"
6
7-pre-start script
8- if [ -z $DBUS_SESSION_BUS_ADDRESS ]; then
9- echo "Working around missing DBUS_SESSION_BUS_ADDRESS variable"
10- printf "DuplicateSignature\0DBusSessionAddressNotSet" | /usr/share/apport/recoverable_problem -p `pidof -s -o 1 init`
11- . "${HOME}/.cache/upstart/dbus-session"
12- initctl set-env "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS"
13- fi
14-end script
15-
16-# Currently started by the dbus service file
17-# start on dbus-activation com.canonical.hud
18 stop on desktop-end
19 start on started dbus and ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger) or (xsession SESSION=ubuntu))
20
21@@ -21,7 +10,7 @@
22 if [ -z $DBUS_SESSION_BUS_ADDRESS ]; then
23 echo "Working around missing DBUS_SESSION_BUS_ADDRESS variable"
24 printf "DuplicateSignature\0DBusSessionAddressNotSet" | /usr/share/apport/recoverable_problem -p `pidof -s -o 1 init`
25- . "${HOME}/.cache/upstart/dbus-session"
26+ . "$XDG_RUNTIME_DIR/dbus-session"
27 initctl set-env "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS"
28 fi
29 end script
30
31=== modified file 'data/window-stack-bridge.conf.in'
32--- data/window-stack-bridge.conf.in 2013-10-09 09:15:55 +0000
33+++ data/window-stack-bridge.conf.in 2014-05-19 14:37:48 +0000
34@@ -7,7 +7,7 @@
35 if [ -z $DBUS_SESSION_BUS_ADDRESS ]; then
36 echo "Working around missing DBUS_SESSION_BUS_ADDRESS variable"
37 printf "DuplicateSignature\0DBusSessionAddressNotSet" | /usr/share/apport/recoverable_problem -p `pidof -s -o 1 init`
38- . "${HOME}/.cache/upstart/dbus-session"
39+ . "$XDG_RUNTIME_DIR/dbus-session"
40 initctl set-env "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS"
41 fi
42 end script
43
44=== modified file 'debian/changelog'
45--- debian/changelog 2014-04-29 16:39:14 +0000
46+++ debian/changelog 2014-05-19 14:37:48 +0000
47@@ -1,3 +1,10 @@
48+hud (13.10.1+14.04.20140519-0ubuntu1) UNRELEASED; urgency=medium
49+
50+ * fix duplicated pre-start blocks in upstart jobs
51+ * make sure we use dbus address from /run/user/$USER
52+
53+ -- Oliver Grawert <ogra@ubuntu.com> Mon, 19 May 2014 16:30:07 +0200
54+
55 hud (13.10.1+14.04.20140402-0ubuntu2) utopic; urgency=medium
56
57 * No-change rebuild for shlib changes in qtbase and qtdeclarative.

Subscribers

People subscribed via source and target branches