Merge lp:~xnox/unity/no-more-upstart-dep into lp:unity

Proposed by Dimitri John Ledkov
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: no longer in the source branch.
Merged at revision: 4231
Proposed branch: lp:~xnox/unity/no-more-upstart-dep
Merge into: lp:unity
Diff against target: 85 lines (+6/-11)
5 files modified
debian/control (+0/-1)
services/CMakeLists.txt (+0/-1)
services/panel-service.c (+3/-5)
tests/CMakeLists.txt (+1/-1)
unity-shared/UpstartWrapper.cpp (+2/-3)
To merge this branch: bzr merge lp:~xnox/unity/no-more-upstart-dep
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+322283@code.launchpad.net

Commit message

Drop libupstart-dev dependency, and simply include verbantim dbus object paths.

Description of the change

Drop libupstart-dev dependency, and simply include verbantim dbus object paths.

As per request from infinity.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Is this going to be removed from the archive?

I didn't use verbatim strings as I preferred to use defined values, but... As you and inifinity wish...

review: Approve
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

On 20 April 2017 at 09:59, Marco Trevisan (Treviño) <mail@3v1n0.net> wrote:
> Review: Approve
>
> Is this going to be removed from the archive?
>

Yes. As soon as aa-series open

> I didn't use verbatim strings as I preferred to use defined values, but... As you and inifinity wish...

Whilst true, I will be dropping upstart into universe and completely
out of the archive fairly quickly once aa-series open, and definitely
ahead of desktop iso switching from unity7 to gnome.

--
Regards,

Dimitri.

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 2016-10-27 08:40:57 +0000
3+++ debian/control 2017-04-10 12:11:43 +0000
4@@ -42,7 +42,6 @@
5 libunique-dev,
6 libunity-dev (>= 7.1.0),
7 libunity-misc-dev (>= 4.0.4),
8- libupstart-dev,
9 libxcb-icccm4-dev,
10 libxfixes-dev (>= 1:5.0.1),
11 libxi-dev (>= 2:1.7.1.901),
12
13=== modified file 'services/CMakeLists.txt'
14--- services/CMakeLists.txt 2016-10-26 21:19:33 +0000
15+++ services/CMakeLists.txt 2017-04-10 12:11:43 +0000
16@@ -12,7 +12,6 @@
17 indicator3-0.4>=12.10.2
18 x11
19 libido3-0.1>=13.0.0
20- libupstart
21 )
22
23 pkg_check_modules(SERVICE_DEPS REQUIRED ${UNITY_PANEL_SERVICE_DEPS})
24
25=== modified file 'services/panel-service.c'
26--- services/panel-service.c 2016-08-19 16:11:57 +0000
27+++ services/panel-service.c 2017-04-10 12:11:43 +0000
28@@ -34,8 +34,6 @@
29 #include <X11/XF86keysym.h>
30 #include <X11/extensions/XInput2.h>
31
32-#include <upstart/upstart-dbus.h>
33-
34 G_DEFINE_TYPE (PanelService, panel_service, G_TYPE_OBJECT);
35
36 #define GET_PRIVATE(o) \
37@@ -843,9 +841,9 @@
38 return;
39 }
40
41- GVariant *result = g_dbus_connection_call_sync (conn, DBUS_SERVICE_UPSTART,
42- DBUS_PATH_UPSTART,
43- DBUS_INTERFACE_UPSTART,
44+ GVariant *result = g_dbus_connection_call_sync (conn, "com.ubuntu.Upstart",
45+ "/com/ubuntu/Upstart",
46+ "com.ubuntu.Upstart0_6",
47 "EmitEvent",
48 g_variant_new ("(sasb)", event, NULL, 0),
49 NULL, G_DBUS_CALL_FLAGS_NO_AUTO_START, -1,
50
51=== modified file 'tests/CMakeLists.txt'
52--- tests/CMakeLists.txt 2016-11-29 16:54:18 +0000
53+++ tests/CMakeLists.txt 2017-04-10 12:11:43 +0000
54@@ -39,7 +39,7 @@
55 #
56 # Unit tests
57 #
58-set (TEST_DEPS "${UNITY_PLUGIN_DEPS};unity>=4.99.0;libupstart;xtst")
59+set (TEST_DEPS "${UNITY_PLUGIN_DEPS};unity>=4.99.0;xtst")
60 pkg_check_modules (TEST_UNIT_DEPS REQUIRED ${TEST_DEPS})
61
62 string (REPLACE ";" " " TEST_UNIT_DEPS_CFLAGS_OTHER "${TEST_UNIT_CFLAGS_OTHER}")
63
64=== modified file 'unity-shared/UpstartWrapper.cpp'
65--- unity-shared/UpstartWrapper.cpp 2016-09-02 13:36:37 +0000
66+++ unity-shared/UpstartWrapper.cpp 2017-04-10 12:11:43 +0000
67@@ -20,7 +20,6 @@
68 #include "UpstartWrapper.h"
69
70 #include <UnityCore/GLibDBusProxy.h>
71-#include <upstart/upstart-dbus.h>
72
73 namespace unity
74 {
75@@ -49,8 +48,8 @@
76 auto flags = static_cast<GDBusProxyFlags>(G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES |
77 G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS);
78
79- auto proxy = std::make_shared<unity::glib::DBusProxy>(test_mode_ ? "com.canonical.Unity.Test.Upstart" : DBUS_SERVICE_UPSTART,
80- DBUS_PATH_UPSTART, DBUS_INTERFACE_UPSTART,
81+ auto proxy = std::make_shared<unity::glib::DBusProxy>(test_mode_ ? "com.canonical.Unity.Test.Upstart" : "com.ubuntu.Upstart",
82+ "/com/ubuntu/Upstart", "com.ubuntu.Upstart0_6",
83 G_BUS_TYPE_SESSION, flags);
84
85 proxy->CallBegin("EmitEvent", g_variant_new("(sasb)", name.c_str(), nullptr, 0), [proxy] (GVariant*, glib::Error const&) {});