Merge lp:~mir-team/platform-api/remove-mirserver into lp:platform-api

Proposed by Alberto Aguirre
Status: Merged
Approved by: Alberto Aguirre
Approved revision: 315
Merged at revision: 304
Proposed branch: lp:~mir-team/platform-api/remove-mirserver
Merge into: lp:platform-api
Prerequisite: lp:~mir-team/platform-api/delete-deprecations
Diff against target: 322 lines (+7/-185)
11 files modified
debian/changelog (+1/-0)
debian/ubuntu-application-api3-desktop.install (+0/-1)
debian/ubuntu-application-api3-touch.install (+0/-1)
src/ubuntu/application/common/CMakeLists.txt (+0/-2)
src/ubuntu/application/common/mirclient/CMakeLists.txt (+4/-0)
src/ubuntu/application/common/mirclient/ubuntu_application_api_mirclient.cpp (+2/-2)
src/ubuntu/application/common/mircommon/CMakeLists.txt (+0/-23)
src/ubuntu/application/common/mirserver/CMakeLists.txt (+0/-18)
src/ubuntu/application/common/mirserver/ubuntu_application_api_mirserver.cpp (+0/-72)
src/ubuntu/application/desktop/CMakeLists.txt (+0/-33)
src/ubuntu/application/touch/CMakeLists.txt (+0/-33)
To merge this branch: bzr merge lp:~mir-team/platform-api/remove-mirserver
Reviewer Review Type Date Requested Status
Robert Carr (community) Approve
PS Jenkins bot continuous-integration Approve
Gerry Boland Pending
Alan Griffiths Pending
Kevin DuBois Pending
Review via email: mp+262284@code.launchpad.net

This proposal supersedes a proposal from 2014-11-06.

Commit message

Remove the unused mirserver component

Description of the change

Remove the unused mirserver component

Rebased on top of lp:~mir-team/platform-api/delete-deprecations, hopefully to land together once and for all :)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote : Posted in a previous version of this proposal

Lots of red, nice :)

armhf CI fail appears unrelated:
1/1 Test #1: test_ua_sensors_mock .............***Failed 2.01 sec
unsure how this change impacted it.

Since you're removing a feature from the library, think we'd better bump the version numbers.

review: Needs Fixing
Revision history for this message
Alberto Aguirre (albaguirre) wrote : Posted in a previous version of this proposal

@Gerry,

Oh true, it merits a version bump.

CI now passed.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote : Posted in a previous version of this proposal

Please update the lib versions in CMakeLists.txt to match the debian version. Also these should match:
src/ubuntu/application/base_module.h
src/ubuntu/application/desktop/module_version.h
src/ubuntu/application/testbackend/module_version.h
src/ubuntu/application/touch/module_version.h

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote : Posted in a previous version of this proposal

Yes!

review: Approve
Revision history for this message
Kevin DuBois (kdub) wrote : Posted in a previous version of this proposal

I had a branch of similar nature, this one looks good by me.

review: Approve
Revision history for this message
Alberto Aguirre (albaguirre) wrote : Posted in a previous version of this proposal

@Kevin, IT IS your branch :) (see r265)

Revision history for this message
Gerry Boland (gerboland) wrote : Posted in a previous version of this proposal

Delayed, but finally getting to test this.
First off, I'm having to rebuild qtubuntu to have it work with this. I wasn't expecting an ABI change due to this MR. Expected?

Now I'm getting
Ubuntu Platform API: Unable to load selected module. -- Aborting
and adding dlerror() I get:
libubuntu_platform_hardware_api.so.2: cannot open shared object file: No such file or directory

Not sure where that version 2 is coming from, as you building v3.

Just bumping the so versions isn't enough sadly, as the debian packaging specifies version 2 everywhere. You either need to bump all the packaging to version 3 (and hit everything that depends on version 2) or else just make this a minor version bump.

review: Needs Fixing
Revision history for this message
Alberto Aguirre (albaguirre) wrote : Posted in a previous version of this proposal

@Gerry,

Yes, after talking to ricmm, we would need to build all 14-15 rev deps on a major rev bump, so we'll stash this for now until an actual api change warrants a 3.0 bump.

Instead, we'll just stub out the mirserver backend so we can do a minor rev bump:
https://code.launchpad.net/~mir-team/platform-api/stub-mirserver/+merge/241820

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
315. By Alberto Aguirre

Update changelog

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Robert Carr (robertcarr) wrote :

Looks good to me :D

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2015-06-23 15:53:15 +0000
+++ debian/changelog 2015-06-23 15:53:15 +0000
@@ -1,6 +1,7 @@
1platform-api (3.0.0) UNRELEASED; urgency=medium1platform-api (3.0.0) UNRELEASED; urgency=medium
22
3 * Remove deprecated ua_ui_* functions.3 * Remove deprecated ua_ui_* functions.
4 * Remove mirserver backend
45
5 -- Robert Carr <robert.carr@canonical.com> Wed, 25 Mar 2015 16:00:34 -07006 -- Robert Carr <robert.carr@canonical.com> Wed, 25 Mar 2015 16:00:34 -0700
67
78
=== modified file 'debian/ubuntu-application-api3-desktop.install'
--- debian/ubuntu-application-api3-desktop.install 2014-05-15 15:46:30 +0000
+++ debian/ubuntu-application-api3-desktop.install 2015-06-23 15:53:15 +0000
@@ -1,2 +1,1 @@
1usr/lib/*/libubuntu_application_api_desktop_mirclient.so.*1usr/lib/*/libubuntu_application_api_desktop_mirclient.so.*
2usr/lib/*/libubuntu_application_api_desktop_mirserver.so.*
32
=== modified file 'debian/ubuntu-application-api3-touch.install'
--- debian/ubuntu-application-api3-touch.install 2014-05-15 15:46:30 +0000
+++ debian/ubuntu-application-api3-touch.install 2015-06-23 15:53:15 +0000
@@ -1,2 +1,1 @@
1usr/lib/*/libubuntu_application_api_touch_mirserver.so.*
2usr/lib/*/libubuntu_application_api_touch_mirclient.so.*1usr/lib/*/libubuntu_application_api_touch_mirclient.so.*
32
=== modified file 'src/ubuntu/application/common/CMakeLists.txt'
--- src/ubuntu/application/common/CMakeLists.txt 2014-05-15 14:56:16 +0000
+++ src/ubuntu/application/common/CMakeLists.txt 2015-06-23 15:53:15 +0000
@@ -3,6 +3,4 @@
3)3)
44
5add_subdirectory(application)5add_subdirectory(application)
6add_subdirectory(mircommon)
7add_subdirectory(mirclient)6add_subdirectory(mirclient)
8add_subdirectory(mirserver)
97
=== modified file 'src/ubuntu/application/common/mirclient/CMakeLists.txt'
--- src/ubuntu/application/common/mirclient/CMakeLists.txt 2015-06-23 15:53:15 +0000
+++ src/ubuntu/application/common/mirclient/CMakeLists.txt 2015-06-23 15:53:15 +0000
@@ -1,6 +1,10 @@
1set(SOURCES1set(SOURCES
2 ubuntu_application_api_mirclient.cpp2 ubuntu_application_api_mirclient.cpp
3 application_instance_mirclient.cpp3 application_instance_mirclient.cpp
4 application_id_mir.cpp
5 application_options_mir.cpp
6 application_description_mir.cpp
7 lifecycle_delegate_mir.cpp
4)8)
59
6set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -fPIC")10set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -fPIC")
711
=== renamed file 'src/ubuntu/application/common/mircommon/application_description_mir.cpp' => 'src/ubuntu/application/common/mirclient/application_description_mir.cpp'
=== renamed file 'src/ubuntu/application/common/mircommon/application_description_mir_priv.h' => 'src/ubuntu/application/common/mirclient/application_description_mir_priv.h'
=== renamed file 'src/ubuntu/application/common/mircommon/application_id_mir.cpp' => 'src/ubuntu/application/common/mirclient/application_id_mir.cpp'
=== renamed file 'src/ubuntu/application/common/mircommon/application_id_mir_priv.h' => 'src/ubuntu/application/common/mirclient/application_id_mir_priv.h'
=== renamed file 'src/ubuntu/application/common/mircommon/application_options_mir.cpp' => 'src/ubuntu/application/common/mirclient/application_options_mir.cpp'
=== renamed file 'src/ubuntu/application/common/mircommon/application_options_mir_priv.h' => 'src/ubuntu/application/common/mirclient/application_options_mir_priv.h'
=== renamed file 'src/ubuntu/application/common/mircommon/lifecycle_delegate_mir.cpp' => 'src/ubuntu/application/common/mirclient/lifecycle_delegate_mir.cpp'
=== renamed file 'src/ubuntu/application/common/mircommon/lifecycle_delegate_mir_priv.h' => 'src/ubuntu/application/common/mirclient/lifecycle_delegate_mir_priv.h'
=== modified file 'src/ubuntu/application/common/mirclient/ubuntu_application_api_mirclient.cpp'
--- src/ubuntu/application/common/mirclient/ubuntu_application_api_mirclient.cpp 2015-06-23 15:53:15 +0000
+++ src/ubuntu/application/common/mirclient/ubuntu_application_api_mirclient.cpp 2015-06-23 15:53:15 +0000
@@ -17,8 +17,8 @@
17 */17 */
1818
19#include "application_instance_mirclient_priv.h"19#include "application_instance_mirclient_priv.h"
20#include "mircommon/lifecycle_delegate_mir_priv.h"20#include "lifecycle_delegate_mir_priv.h"
21#include "mircommon/application_id_mir_priv.h"21#include "application_id_mir_priv.h"
2222
23#include <ubuntu/application/lifecycle_delegate.h>23#include <ubuntu/application/lifecycle_delegate.h>
24#include <ubuntu/application/sensors/accelerometer.h>24#include <ubuntu/application/sensors/accelerometer.h>
2525
=== removed directory 'src/ubuntu/application/common/mircommon'
=== removed file 'src/ubuntu/application/common/mircommon/CMakeLists.txt'
--- src/ubuntu/application/common/mircommon/CMakeLists.txt 2015-06-23 15:53:15 +0000
+++ src/ubuntu/application/common/mircommon/CMakeLists.txt 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1set(SOURCES
2 application_id_mir.cpp
3 application_options_mir.cpp
4 application_description_mir.cpp
5 lifecycle_delegate_mir.cpp
6 )
7
8set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC --std=c++11")
9
10include_directories(
11 ${MIRCLIENT_INCLUDE_DIRS}
12 )
13
14add_library(
15 ubuntu_application_api_mircommon STATIC
16 ${SOURCES}
17 )
18
19target_link_libraries(
20 ubuntu_application_api_mircommon
21
22 ${LINK_LIBRARIES}
23 )
240
=== removed directory 'src/ubuntu/application/common/mirserver'
=== removed file 'src/ubuntu/application/common/mirserver/CMakeLists.txt'
--- src/ubuntu/application/common/mirserver/CMakeLists.txt 2014-11-14 16:05:29 +0000
+++ src/ubuntu/application/common/mirserver/CMakeLists.txt 1970-01-01 00:00:00 +0000
@@ -1,18 +0,0 @@
1set(SOURCES
2 ubuntu_application_api_mirserver.cpp
3)
4
5set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -fPIC")
6
7include_directories(
8 ${CMAKE_BINARY_DIR}/include
9)
10
11add_library(
12 ubuntu_application_api_mirserver STATIC
13 ${SOURCES}
14)
15
16target_link_libraries(
17 ubuntu_application_api_mirserver
18)
190
=== removed file 'src/ubuntu/application/common/mirserver/ubuntu_application_api_mirserver.cpp'
--- src/ubuntu/application/common/mirserver/ubuntu_application_api_mirserver.cpp 2015-06-23 15:53:15 +0000
+++ src/ubuntu/application/common/mirserver/ubuntu_application_api_mirserver.cpp 1970-01-01 00:00:00 +0000
@@ -1,72 +0,0 @@
1/*
2 * Copyright (C) 2013-2014 Canonical Ltd
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License version 3 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authored by: Robert Carr <robert.carr@canonical.com>
17 */
18
19// C APIs
20#include <ubuntu/application/init.h>
21#include <ubuntu/application/instance.h>
22
23extern "C"
24{
25void u_application_init(void *args)
26{
27 (void) args;
28}
29
30void u_application_finish()
31{
32}
33
34UApplicationInstance* u_application_instance_new_from_description_with_options(UApplicationDescription* u_description, UApplicationOptions* u_options)
35{
36 (void) u_description;
37 (void) u_options;
38 return NULL;
39}
40
41void
42u_application_instance_ref(UApplicationInstance *u_instance)
43{
44 (void) u_instance;
45}
46
47void
48u_application_instance_unref(UApplicationInstance *u_instance)
49{
50 (void) u_instance;
51}
52
53void
54u_application_instance_destroy(UApplicationInstance *instance)
55{
56 (void) instance;
57}
58
59void
60u_application_instance_run(UApplicationInstance *instance)
61{
62 // TODO<papi>: What is this supposed to do? Seems to be no-op on hybris.
63 (void) instance;
64}
65
66MirConnection*
67u_application_instance_get_mir_connection(UApplicationInstance *instance)
68{
69 (void) instance;
70 return nullptr;
71}
72}
730
=== modified file 'src/ubuntu/application/desktop/CMakeLists.txt'
--- src/ubuntu/application/desktop/CMakeLists.txt 2014-06-24 19:59:46 +0000
+++ src/ubuntu/application/desktop/CMakeLists.txt 2015-06-23 15:53:15 +0000
@@ -8,31 +8,11 @@
8 ubuntu_application_sensors_desktop.cpp8 ubuntu_application_sensors_desktop.cpp
9)9)
1010
11add_library(
12 ubuntu_application_api_desktop_mirserver MODULE
13
14 module.cpp
15 module_version.h
16 ubuntu_application_sensors_desktop.cpp
17)
18
19target_link_libraries(11target_link_libraries(
20 ubuntu_application_api_desktop_mirclient12 ubuntu_application_api_desktop_mirclient
2113
22 "-Wl,--whole-archive"14 "-Wl,--whole-archive"
23 ubuntu_application_api_mirclient15 ubuntu_application_api_mirclient
24 ubuntu_application_api_mircommon
25 ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
26 "-Wl,--no-whole-archive"
27 #TODO: Alarms
28)
29
30target_link_libraries(
31 ubuntu_application_api_desktop_mirserver
32
33 "-Wl,--whole-archive"
34 ubuntu_application_api_mirserver
35 ubuntu_application_api_mircommon
36 ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}16 ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
37 "-Wl,--no-whole-archive"17 "-Wl,--no-whole-archive"
38 #TODO: Alarms18 #TODO: Alarms
@@ -45,22 +25,9 @@
45 SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}25 SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
46)26)
4727
48set_target_properties(
49 ubuntu_application_api_desktop_mirserver
50 PROPERTIES
51 VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
52 SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
53)
54install(28install(
55 TARGETS ubuntu_application_api_desktop_mirclient29 TARGETS ubuntu_application_api_desktop_mirclient
56 # this is not a development library to compile against, users should always30 # this is not a development library to compile against, users should always
57 # specify the SONAME; so don't build a *.so31 # specify the SONAME; so don't build a *.so
58 LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP32 LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP
59)33)
60
61install(
62 TARGETS ubuntu_application_api_desktop_mirserver
63 # this is not a development library to compile against, users should always
64 # specify the SONAME; so don't build a *.so
65 LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP
66)
6734
=== modified file 'src/ubuntu/application/touch/CMakeLists.txt'
--- src/ubuntu/application/touch/CMakeLists.txt 2014-05-26 12:56:45 +0000
+++ src/ubuntu/application/touch/CMakeLists.txt 2015-06-23 15:53:15 +0000
@@ -9,31 +9,11 @@
9 module_version.h9 module_version.h
10)10)
1111
12add_library(
13 ubuntu_application_api_touch_mirserver MODULE
14
15 module.cpp
16 module_version.h
17)
18
19target_link_libraries(12target_link_libraries(
20 ubuntu_application_api_touch_mirclient13 ubuntu_application_api_touch_mirclient
2114
22 "-Wl,--whole-archive"15 "-Wl,--whole-archive"
23 ubuntu_application_api_mirclient16 ubuntu_application_api_mirclient
24 ubuntu_application_api_mircommon
25 ubuntu_application_api_hybris
26 ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
27 "-Wl,--no-whole-archive"
28 #TODO: Alarms
29)
30
31target_link_libraries(
32 ubuntu_application_api_touch_mirserver
33
34 "-Wl,--whole-archive"
35 ubuntu_application_api_mirserver
36 ubuntu_application_api_mircommon
37 ubuntu_application_api_hybris17 ubuntu_application_api_hybris
38 ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}18 ${UBUNTU_APPLICATION_API_LINK_LIBRARIES}
39 "-Wl,--no-whole-archive"19 "-Wl,--no-whole-archive"
@@ -47,22 +27,9 @@
47 SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}27 SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
48)28)
4929
50set_target_properties(
51 ubuntu_application_api_touch_mirserver
52 PROPERTIES
53 VERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}.${UBUNTU_PLATFORM_API_VERSION_MINOR}.${UBUNTU_PLATFORM_API_VERSION_PATCH}
54 SOVERSION ${UBUNTU_PLATFORM_API_VERSION_MAJOR}
55)
56install(30install(
57 TARGETS ubuntu_application_api_touch_mirclient31 TARGETS ubuntu_application_api_touch_mirclient
58 # this is not a development library to compile against, users should always32 # this is not a development library to compile against, users should always
59 # specify the SONAME; so don't build a *.so33 # specify the SONAME; so don't build a *.so
60 LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP34 LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP
61)35)
62
63install(
64 TARGETS ubuntu_application_api_touch_mirserver
65 # this is not a development library to compile against, users should always
66 # specify the SONAME; so don't build a *.so
67 LIBRARY DESTINATION "${LIB_INSTALL_DIR}" NAMELINK_SKIP
68)

Subscribers

People subscribed via source and target branches