Merge lp:~rsalveti/powerd/abort_cant_find_android_compat into lp:powerd

Proposed by Ricardo Salveti
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 114
Merged at revision: 115
Proposed branch: lp:~rsalveti/powerd/abort_cant_find_android_compat
Merge into: lp:powerd
Diff against target: 46 lines (+11/-2)
2 files modified
debian/control (+2/-2)
src/powerd.cpp (+9/-0)
To merge this branch: bzr merge lp:~rsalveti/powerd/abort_cant_find_android_compat
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+211852@code.launchpad.net

Commit message

Aborting in case it can't find the android input compat stack

Description of the change

Aborting in case it can't find the android input compat stack

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

https://wiki.ubuntu.com/Process/Merges/TestPlans/Powerd

 * Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)

Yes

 * Did you build your software in a clean sbuild/pbuilder chroot or ppa?

Yes

 * Did you build your software in a clean sbuild/pbuilder armhf chroot or ppa?

Yes

 * Has your component "TestPlan” been executed successfully on emulator, N4?

Only with N4

 * Has a 5 minute exploratory testing run been executed on N4?

Yes

 * What components might get impacted by your changes?

Auto/manual suspend

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

> FAILED: Continuous integration, rev:114

Failed because latest libhybris is not yet promoted to release.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Good, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-01-23 16:41:00 +0000
3+++ debian/control 2014-03-20 02:29:53 +0000
4@@ -6,13 +6,13 @@
5 cmake,
6 libglib2.0-dev,
7 android-headers (>= 4.2.2),
8- libhybris-dev (>= 0.1.0+git20131206+0cdd7f2-0ubuntu1),
9+ libhybris-dev (>= 0.1.0+git20131207+e452e83-0ubuntu12),
10 python:any,
11 libandroid-properties-dev,
12 libplatform-api1-dev,
13 libupower-glib-dev,
14 uuid-dev,
15- libhardware-dev (>= 0.1.0+git20131206+0cdd7f2-0ubuntu1),
16+ libhardware-dev (>= 0.1.0+git20131207+e452e83-0ubuntu12),
17 Standards-Version: 3.9.4
18 Homepage: https://launchpad.net/powerd
19 # If you aren't a member of ~phablet-team but need to upload packaging changes,
20
21=== modified file 'src/powerd.cpp'
22--- src/powerd.cpp 2014-01-23 19:19:39 +0000
23+++ src/powerd.cpp 2014-03-20 02:29:53 +0000
24@@ -483,6 +483,14 @@
25 if (!err)
26 _power_module->init(_power_module);
27
28+ /* Compat input is needed otherwise there's no way to know when
29+ * the user is actively using the system */
30+ if (!android_input_check_availability()) {
31+ powerd_error("Android compat input library not found, aborting");
32+ g_exit_code = -1;
33+ goto fail_compat_init;
34+ }
35+
36 android_input_stack_initialize(&listener, &config);
37 android_input_stack_start();
38
39@@ -499,6 +507,7 @@
40 android_input_stack_stop();
41 android_input_stack_shutdown();
42
43+fail_compat_init:
44 powerd_ps_deinit();
45 dbus_name_watch_deinit();
46 powerd_autobrightness_deinit();

Subscribers

People subscribed via source and target branches