Mir

Merge lp:~alan-griffiths/mir/fix-libmirplatform into lp:mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Alan Griffiths
Approved revision: no longer in the source branch.
Merged at revision: 1798
Proposed branch: lp:~alan-griffiths/mir/fix-libmirplatform
Merge into: lp:mir
Prerequisite: lp:~alan-griffiths/mir/fix-libmircommon
Diff against target: 74 lines (+7/-15)
4 files modified
src/platform/CMakeLists.txt (+5/-4)
src/platform/graphics/CMakeLists.txt (+1/-8)
src/platform/options/CMakeLists.txt (+1/-2)
src/server/CMakeLists.txt (+0/-1)
To merge this branch: bzr merge lp:~alan-griffiths/mir/fix-libmirplatform
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Alexandros Frantzis (community) Approve
Kevin DuBois (community) Approve
Review via email: mp+228117@code.launchpad.net

Commit message

platform: link the platform objects into the mirplatform shared library and not the libraries that link against it. (Partial fix for lp:1347522)

Description of the change

platform: link the platform objects into the mirplatform shared library and not the libraries that link against it

This isn't a fix for everything in the linked bug, but does get the .../platform/... code into libmirplatform instead of a mixture of other libraries.

E.g.

$ nm -Co lib/libmir*.so | grep "[BT] mir::options::" | cut --fields=1 --delimiter=: | uniq -c
     18 lib/libmirplatform.so

vs:

$ nm -Co lib/libmir*.so | grep "[BT] mir::options::" | cut --fields=1 --delimiter=: | uniq -c
     18 lib/libmirserver.so

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
Alan Griffiths (alan-griffiths) wrote :

> Unpacking libmircommon-dev:armhf (0.6.0bzr1803pkg0utopic3684+autopilot0) ...
> dpkg: error processing archive /home/phablet/archive/libmircommon-dev_0.6.0bzr1803pkg0utopic3684+autopilot0_armhf.deb (--install):
> trying to overwrite '/usr/include/mircommon/mir/variable_length_array.h', which is also in package > mircommon-dev:armhf 0.5.0+14.10.20140724-0ubuntu1

Arghhh!!

I think see bug 1297100 in action: nobody wants that -dev package to run tests!!! (Not sure why its here before installing the tests either.)

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> > Unpacking libmircommon-dev:armhf (0.6.0bzr1803pkg0utopic3684+autopilot0) ...
> > dpkg: error processing archive /home/phablet/archive/libmircommon-
> dev_0.6.0bzr1803pkg0utopic3684+autopilot0_armhf.deb (--install):
> > trying to overwrite '/usr/include/mircommon/mir/variable_length_array.h',
> which is also in package > mircommon-dev:armhf 0.5.0+14.10.20140724-0ubuntu1
>
> Arghhh!!
>
> I think see bug 1297100 in action: nobody wants that -dev package to run
> tests!!! (Not sure why its here before installing the tests either.)

Actually, it's lp:1348518 and should be fixed by lp:~afrantzis/mir/fix-mircommon-debian-replaces

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> Actually, it's lp:1348518 and should be fixed by lp:~afrantzis/mir/fix-
> mircommon-debian-replaces

Actually, lp:1348515 is more precise. (So many bugs in such a "simple" file!)

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

lgtm (had to look up that syntax though, must have been 'fun' to search for....)

review: Approve
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

Looks good.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/platform/CMakeLists.txt'
2--- src/platform/CMakeLists.txt 2014-07-25 14:11:38 +0000
3+++ src/platform/CMakeLists.txt 2014-07-25 14:11:38 +0000
4@@ -1,15 +1,16 @@
5 include_directories(${PROJECT_SOURCE_DIR}/include/platform)
6-include_directories(${UDEV_INCLUDE_DIRS})
7
8 add_library(
9 mirplatform SHARED
10 shared_library_loader.cpp
11+ $<TARGET_OBJECTS:mirplatformgraphicscommon>
12+ $<TARGET_OBJECTS:miroptions>
13 )
14
15-target_link_libraries(
16- mirplatform
17- mirplatformgraphicscommon
18+target_link_libraries(mirplatform
19 mircommon
20+ ${EGL_LDFLAGS} ${EGL_LIBRARIES}
21+ ${GLESv2_LDFLAGS} ${GLESv2_LIBRARIES}
22 )
23
24 install(TARGETS mirplatform LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
25
26=== modified file 'src/platform/graphics/CMakeLists.txt'
27--- src/platform/graphics/CMakeLists.txt 2014-07-14 10:57:28 +0000
28+++ src/platform/graphics/CMakeLists.txt 2014-07-25 14:11:38 +0000
29@@ -16,18 +16,11 @@
30 tessellation_helpers.cpp
31 )
32
33-add_library(
34- mirplatformgraphicscommon STATIC
35+add_library(mirplatformgraphicscommon OBJECT
36
37 ${GRAPHICS_SOURCES}
38 )
39
40-target_link_libraries(
41- mirplatformgraphicscommon
42-
43- ${EGL_LDFLAGS} ${EGL_LIBRARIES}
44-)
45-
46 if (MIR_BUILD_PLATFORM_ANDROID)
47 add_subdirectory(android/)
48 endif()
49
50=== modified file 'src/platform/options/CMakeLists.txt'
51--- src/platform/options/CMakeLists.txt 2014-03-06 06:05:17 +0000
52+++ src/platform/options/CMakeLists.txt 2014-07-25 14:11:38 +0000
53@@ -5,8 +5,7 @@
54 default_configuration.cpp
55 )
56
57-add_library(
58- miroptions STATIC
59+add_library(miroptions OBJECT
60
61 ${CHOICE_SOURCES}
62 )
63
64=== modified file 'src/server/CMakeLists.txt'
65--- src/server/CMakeLists.txt 2014-07-23 16:53:13 +0000
66+++ src/server/CMakeLists.txt 2014-07-25 14:11:38 +0000
67@@ -40,7 +40,6 @@
68 )
69
70 list(APPEND MIRSERVER_ARCHIVES
71- miroptions
72 mircompositor
73 mirfrontend
74 mirgraphics

Subscribers

People subscribed via source and target branches