Merge lp:~thomas-voss/platform-api/add-package-config into lp:platform-api
- add-package-config
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Ricardo Salveti |
Approved revision: | 74 |
Merged at revision: | 84 |
Proposed branch: | lp:~thomas-voss/platform-api/add-package-config |
Merge into: | lp:platform-api |
Prerequisite: | lp:~thomas-voss/platform-api/fix-cmake-setup |
Diff against target: |
187 lines (+39/-18) 14 files modified
CMakeLists.txt (+2/-1) data/CMakeLists.txt (+8/-0) data/ubuntu-platform-api.pc.in (+9/-0) debian/libplatform-api-headers.install (+1/-1) debian/libplatform-api-headers.links (+1/-0) debian/libplatform-api1-dev.install (+1/-0) debian/rules (+0/-10) include/ubuntu/CMakeLists.txt (+11/-0) include/ubuntu/application/CMakeLists.txt (+1/-1) include/ubuntu/application/sensors/CMakeLists.txt (+1/-1) include/ubuntu/application/sensors/event/CMakeLists.txt (+1/-1) include/ubuntu/application/ui/CMakeLists.txt (+1/-1) include/ubuntu/application/ui/input/CMakeLists.txt (+1/-1) include/ubuntu/ui/CMakeLists.txt (+1/-1) |
To merge this branch: | bzr merge lp:~thomas-voss/platform-api/add-package-config |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Didier Roche-Tolomelli | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Ricardo Salveti (community) | Approve | ||
Thomas Voß (community) | Approve | ||
Ricardo Mendoza (community) | Approve | ||
Review via email: mp+168642@code.launchpad.net |
Commit message
* Add a pkgconfig file for the platform API
* Adjust installation of header files to account for version
Description of the change
* Add a pkgconfig file for the platform API
* Adjust installation of header files to account for version
PS Jenkins bot (ps-jenkins) wrote : | # |
Didier Roche-Tolomelli (didrocks) wrote : | # |
the -dev package is multi-arched: same
So, the pkgconfig file should be installed in: /usr/lib/
Otherwise good, work, the header having major version doesn't make my eyes bleeding :)
- 69. By Thomas Voß
-
* Adjust pkgconfig installation to account for architecture triplet.
Thomas Voß (thomas-voss) wrote : | # |
> the -dev package is multi-arched: same
> So, the pkgconfig file should be installed in: /usr/lib/
> rather than /usr/lib/pkgconfig.
>
Fixed.
> Otherwise good, work, the header having major version doesn't make my eyes
> bleeding :)
Thx :)
Didier Roche-Tolomelli (didrocks) wrote : | # |
Perfect! approved for me :)
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:69
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 70. By Thomas Voß
-
[ Gerry Boland ]
* Add mir suport.
[ Robert Carr ]
* Add mir suport.
[ Ubuntu daily release ]
* Automatic snapshot from revision 69
[ Ricardo Mendoza ]
* Allow remote App Manager to take care of signalling processes.
[ Ubuntu daily release ]
* Automatic snapshot from revision 67
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:70
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Ricardo Mendoza (ricmm) wrote : | # |
Builds, runs, work fine on flipped container with Mir and hybris.
Ricardo Salveti (rsalveti) wrote : | # |
76 +Architecture: any
85 +Architecture: any
As we don't have hybris for powerpc I'm not sure if moving to any is the right choice.
138 - DESTINATION include/
139 + DESTINATION include/
150 - DESTINATION include/
151 + DESTINATION include/
164 - DESTINATION include/
165 + DESTINATION include/
175 - DESTINATION include/ubuntu/ui
176 + DESTINATION include/
Before moving this forward, please have MRs for all the consumers as well (or create a temporarily link while you get the rest fixed).
Otherwise this will create a ton of FTBFS.
Thomas Voß (thomas-voss) wrote : | # |
> 76 +Architecture: any
> 85 +Architecture: any
>
> As we don't have hybris for powerpc I'm not sure if moving to any is the right
> choice.
I will cross-check with didrocks.
>
> 138 - DESTINATION include/
> 139 + DESTINATION
> include/
>
> 150 - DESTINATION include/
> 151 + DESTINATION
> include/
>
> 164 - DESTINATION include/
> 165 + DESTINATION
> include/
>
> 175 - DESTINATION include/ubuntu/ui
> 176 + DESTINATION include/
>
> Before moving this forward, please have MRs for all the consumers as well (or
> create a temporarily link while you get the rest fixed).
>
I would rather prefer not releasing this version as there are likely more packaging changes coming down the pipe. I'm happy to provide patches for the consumers, but I would propose to do that in one go after we are happy with the packaging of the platform API.
> Otherwise this will create a ton of FTBFS.
Agreed :)
Ricardo Salveti (rsalveti) wrote : | # |
You could change and have a temporarily link to still be compatible with current costumers, otherwise having MRs for everyone at the same time might be just too painful.
- 71. By Thomas Voß
-
* Add unversioned header directory as link to keep consumers working for now.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:71
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 72. By Thomas Voß
-
[ Ricardo Mendoza ]
* Add guards for NULL sensors.
[ Ubuntu daily release ]
* Automatic snapshot from revision 79
[ Didier Roche ]
* minor cosmetic cleanups as we detect the archs we can't build for in
daily release now.
[ Ubuntu daily release ]
* Automatic snapshot from revision 77
[ Ricardo Mendoza ]
* GCC 4.8 introduces a change for ARM AAPCS calling conventions, this
breaks ABI for us because the Android library is built with GCC 4.7.
Revert to building platform-api with GCC 4.7 until we can update the
Android build. .
[ Ubuntu daily release ]
* Automatic snapshot from revision 75
[ Robert Carr ]
* Add missing mir stub (ua_ui_session_ properties_ set_remote_ pid).
[ Ubuntu daily release ]
* Automatic snapshot from revision 73
[ Ubuntu daily release ]
* debian/*symbols: auto-update new symbols to released version
[ Didier Roche ]
* Add a symbol files with unmangled C++ symbols to track ABI.
[ Dmitrijs Ledkovs ]
* Add a symbol files with unmangled C++ symbols to track ABI.
[ Ubuntu daily release ]
* Automatic snapshot from revision 71
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:72
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Ricardo Salveti (rsalveti) wrote : | # |
71 + dh_link include/
debian/rules doesn't know about UBUNTU_
Also, while you're on it, mind cleaning debian/rules to remove the -DUSE_GLES part?
Follows a suggestion for a fix:
"""
=== added file 'debian/
--- debian/
+++ debian/
@@ -0,0 +1,1 @@
+usr/include/
=== modified file 'debian/rules'
--- debian/rules 2013-07-03 07:23:59 +0000
+++ debian/rules 2013-07-04 04:44:23 +0000
@@ -4,19 +4,8 @@
export CXX=g++-4.7
-gles2_
-ifeq ($(DEB_
- use_gles=1
-else
- use_gles=0
-endif
-
%:
dh $@
-override_
- dh_auto_configure -- -DUSE_GLES=
-
overrid_
dh_install --fail-missing
- dh_link include/
"""
You don't need to worry much about the hardcoded major version as this is just a temporary fix while we rebuild/fix the other packages.
- 73. By Thomas Voß
-
* Remove obsolete USE_GLES mechanisms.
* Add a links file to create temporary symbolic link for the header directory.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:73
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 74. By Thomas Voß
-
* Install status and unit headers.
Ricardo Salveti (rsalveti) wrote : | # |
Good, built qtubuntu, worked fine.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:74
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Didier Roche-Tolomelli (didrocks) wrote : | # |
looks good to me as well, I can see a small simplification in debian/rules still, but will do it later on :)
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2013-07-01 14:04:18 +0000 | |||
3 | +++ CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
4 | @@ -1,6 +1,6 @@ | |||
5 | 1 | cmake_minimum_required(VERSION 2.6) | 1 | cmake_minimum_required(VERSION 2.6) |
6 | 2 | 2 | ||
8 | 3 | project(ubuntu_platform_api) | 3 | project(ubuntu-platform-api) |
9 | 4 | 4 | ||
10 | 5 | set(UBUNTU_PLATFORM_API_VERSION_MAJOR 1) | 5 | set(UBUNTU_PLATFORM_API_VERSION_MAJOR 1) |
11 | 6 | set(UBUNTU_PLATFORM_API_VERSION_MINOR 0) | 6 | set(UBUNTU_PLATFORM_API_VERSION_MINOR 0) |
12 | @@ -87,6 +87,7 @@ | |||
13 | 87 | include_directories(include) | 87 | include_directories(include) |
14 | 88 | include_directories(android/include) | 88 | include_directories(android/include) |
15 | 89 | 89 | ||
16 | 90 | add_subdirectory(data/) | ||
17 | 90 | add_subdirectory(doc/) | 91 | add_subdirectory(doc/) |
18 | 91 | add_subdirectory(include/) | 92 | add_subdirectory(include/) |
19 | 92 | add_subdirectory(src/) | 93 | add_subdirectory(src/) |
20 | 93 | 94 | ||
21 | === added directory 'data' | |||
22 | === added file 'data/CMakeLists.txt' | |||
23 | --- data/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
24 | +++ data/CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
25 | @@ -0,0 +1,8 @@ | |||
26 | 1 | configure_file( | ||
27 | 2 | ubuntu-platform-api.pc.in ubuntu-platform-api.pc @ONLY | ||
28 | 3 | ) | ||
29 | 4 | |||
30 | 5 | install( | ||
31 | 6 | FILES ${CMAKE_CURRENT_BINARY_DIR}/ubuntu-platform-api.pc | ||
32 | 7 | DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig | ||
33 | 8 | ) | ||
34 | 0 | \ No newline at end of file | 9 | \ No newline at end of file |
35 | 1 | 10 | ||
36 | === added file 'data/ubuntu-platform-api.pc.in' | |||
37 | --- data/ubuntu-platform-api.pc.in 1970-01-01 00:00:00 +0000 | |||
38 | +++ data/ubuntu-platform-api.pc.in 2013-07-04 06:26:26 +0000 | |||
39 | @@ -0,0 +1,9 @@ | |||
40 | 1 | prefix=@CMAKE_INSTALL_PREFIX@ | ||
41 | 2 | exec_prefix=${prefix} | ||
42 | 3 | libdir=${exec_prefix}/lib | ||
43 | 4 | includedir=${exec_prefix}/include | ||
44 | 5 | |||
45 | 6 | Name: @CMAKE_PROJECT_NAME@ | ||
46 | 7 | Description: Ubuntu's platform abstraction layer. | ||
47 | 8 | Version: @UBUNTU_PLATFORM_API_VERSION_MAJOR@.@UBUNTU_PLATFORM_API_VERSION_MINOR@.@UBUNTU_PLATFORM_API_VERSION_PATCH@ | ||
48 | 9 | Cflags: -I${includedir}/ubuntu-@UBUNTU_PLATFORM_API_VERSION_MAJOR@ | ||
49 | 0 | 10 | ||
50 | === modified file 'debian/libplatform-api-headers.install' | |||
51 | --- debian/libplatform-api-headers.install 2013-03-20 12:49:06 +0000 | |||
52 | +++ debian/libplatform-api-headers.install 2013-07-04 06:26:26 +0000 | |||
53 | @@ -1,1 +1,1 @@ | |||
55 | 1 | usr/include | 1 | usr/include/ |
56 | 2 | 2 | ||
57 | === added file 'debian/libplatform-api-headers.links' | |||
58 | --- debian/libplatform-api-headers.links 1970-01-01 00:00:00 +0000 | |||
59 | +++ debian/libplatform-api-headers.links 2013-07-04 06:26:26 +0000 | |||
60 | @@ -0,0 +1,1 @@ | |||
61 | 1 | usr/include/ubuntu-1 usr/include/ubuntu | ||
62 | 0 | \ No newline at end of file | 2 | \ No newline at end of file |
63 | 1 | 3 | ||
64 | === modified file 'debian/libplatform-api1-dev.install' | |||
65 | --- debian/libplatform-api1-dev.install 2013-03-20 12:49:06 +0000 | |||
66 | +++ debian/libplatform-api1-dev.install 2013-07-04 06:26:26 +0000 | |||
67 | @@ -1,1 +1,2 @@ | |||
68 | 1 | usr/lib/*/libubuntu_application_api.so | 1 | usr/lib/*/libubuntu_application_api.so |
69 | 2 | usr/lib/*/pkgconfig/ubuntu-platform-api.pc | ||
70 | 2 | 3 | ||
71 | === modified file 'debian/rules' | |||
72 | --- debian/rules 2013-06-26 19:21:02 +0000 | |||
73 | +++ debian/rules 2013-07-04 06:26:26 +0000 | |||
74 | @@ -4,18 +4,8 @@ | |||
75 | 4 | 4 | ||
76 | 5 | export CXX=g++-4.7 | 5 | export CXX=g++-4.7 |
77 | 6 | 6 | ||
78 | 7 | gles2_architectures := armhf | ||
79 | 8 | ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures))) | ||
80 | 9 | use_gles=1 | ||
81 | 10 | else | ||
82 | 11 | use_gles=0 | ||
83 | 12 | endif | ||
84 | 13 | |||
85 | 14 | %: | 7 | %: |
86 | 15 | dh $@ | 8 | dh $@ |
87 | 16 | 9 | ||
88 | 17 | override_dh_auto_configure: | ||
89 | 18 | dh_auto_configure -- -DUSE_GLES=$(use_gles) | ||
90 | 19 | |||
91 | 20 | overrid_dh_install: | 10 | overrid_dh_install: |
92 | 21 | dh_install --fail-missing | 11 | dh_install --fail-missing |
93 | 22 | 12 | ||
94 | === modified file 'include/ubuntu/CMakeLists.txt' | |||
95 | --- include/ubuntu/CMakeLists.txt 2013-06-11 09:40:30 +0000 | |||
96 | +++ include/ubuntu/CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
97 | @@ -1,2 +1,13 @@ | |||
98 | 1 | set( | ||
99 | 2 | UBUNTU_HEADERS | ||
100 | 3 | status.h | ||
101 | 4 | unit.h | ||
102 | 5 | ) | ||
103 | 6 | |||
104 | 7 | install( | ||
105 | 8 | FILES ${UBUNTU_HEADERS} | ||
106 | 9 | DESTINATION include/ubuntu-${UBUNTU_PLATFORM_API_VERSION_MAJOR} | ||
107 | 10 | ) | ||
108 | 11 | |||
109 | 1 | add_subdirectory(application) | 12 | add_subdirectory(application) |
110 | 2 | add_subdirectory(ui) | 13 | add_subdirectory(ui) |
111 | 3 | \ No newline at end of file | 14 | \ No newline at end of file |
112 | 4 | 15 | ||
113 | === modified file 'include/ubuntu/application/CMakeLists.txt' | |||
114 | --- include/ubuntu/application/CMakeLists.txt 2013-06-11 09:40:30 +0000 | |||
115 | +++ include/ubuntu/application/CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
116 | @@ -12,7 +12,7 @@ | |||
117 | 12 | 12 | ||
118 | 13 | install( | 13 | install( |
119 | 14 | FILES ${UBUNTU_APPLICATION_HEADERS} | 14 | FILES ${UBUNTU_APPLICATION_HEADERS} |
121 | 15 | DESTINATION include/ubuntu/application | 15 | DESTINATION include/ubuntu-${UBUNTU_PLATFORM_API_VERSION_MAJOR}/application |
122 | 16 | ) | 16 | ) |
123 | 17 | 17 | ||
124 | 18 | add_subdirectory(sensors) | 18 | add_subdirectory(sensors) |
125 | 19 | 19 | ||
126 | === modified file 'include/ubuntu/application/sensors/CMakeLists.txt' | |||
127 | --- include/ubuntu/application/sensors/CMakeLists.txt 2013-06-11 09:40:30 +0000 | |||
128 | +++ include/ubuntu/application/sensors/CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
129 | @@ -8,7 +8,7 @@ | |||
130 | 8 | 8 | ||
131 | 9 | install( | 9 | install( |
132 | 10 | FILES ${UBUNTU_APPLICATION_SENSORS_HEADERS} | 10 | FILES ${UBUNTU_APPLICATION_SENSORS_HEADERS} |
134 | 11 | DESTINATION include/ubuntu/application/sensors | 11 | DESTINATION include/ubuntu-${UBUNTU_PLATFORM_API_VERSION_MAJOR}/application/sensors |
135 | 12 | ) | 12 | ) |
136 | 13 | 13 | ||
137 | 14 | add_subdirectory(event) | 14 | add_subdirectory(event) |
138 | 15 | \ No newline at end of file | 15 | \ No newline at end of file |
139 | 16 | 16 | ||
140 | === modified file 'include/ubuntu/application/sensors/event/CMakeLists.txt' | |||
141 | --- include/ubuntu/application/sensors/event/CMakeLists.txt 2013-06-11 09:40:30 +0000 | |||
142 | +++ include/ubuntu/application/sensors/event/CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
143 | @@ -7,5 +7,5 @@ | |||
144 | 7 | 7 | ||
145 | 8 | install( | 8 | install( |
146 | 9 | FILES ${UBUNTU_APPLICATION_SENSORS_EVENT_HEADERS} | 9 | FILES ${UBUNTU_APPLICATION_SENSORS_EVENT_HEADERS} |
148 | 10 | DESTINATION include/ubuntu/application/sensors/event | 10 | DESTINATION include/ubuntu-${UBUNTU_PLATFORM_API_VERSION_MAJOR}/application/sensors/event |
149 | 11 | ) | 11 | ) |
150 | 12 | \ No newline at end of file | 12 | \ No newline at end of file |
151 | 13 | 13 | ||
152 | === modified file 'include/ubuntu/application/ui/CMakeLists.txt' | |||
153 | --- include/ubuntu/application/ui/CMakeLists.txt 2013-06-11 09:40:30 +0000 | |||
154 | +++ include/ubuntu/application/ui/CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
155 | @@ -19,7 +19,7 @@ | |||
156 | 19 | 19 | ||
157 | 20 | install( | 20 | install( |
158 | 21 | FILES ${UBUNTU_APPLICATION_UI_HEADERS} | 21 | FILES ${UBUNTU_APPLICATION_UI_HEADERS} |
160 | 22 | DESTINATION include/ubuntu/application/ui | 22 | DESTINATION include/ubuntu-${UBUNTU_PLATFORM_API_VERSION_MAJOR}/application/ui |
161 | 23 | ) | 23 | ) |
162 | 24 | 24 | ||
163 | 25 | add_subdirectory(input) | 25 | add_subdirectory(input) |
164 | 26 | \ No newline at end of file | 26 | \ No newline at end of file |
165 | 27 | 27 | ||
166 | === modified file 'include/ubuntu/application/ui/input/CMakeLists.txt' | |||
167 | --- include/ubuntu/application/ui/input/CMakeLists.txt 2013-06-11 09:40:30 +0000 | |||
168 | +++ include/ubuntu/application/ui/input/CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
169 | @@ -5,5 +5,5 @@ | |||
170 | 5 | 5 | ||
171 | 6 | install( | 6 | install( |
172 | 7 | FILES ${UBUNTU_APPLICATION_UI_INPUT_HEADERS} | 7 | FILES ${UBUNTU_APPLICATION_UI_INPUT_HEADERS} |
174 | 8 | DESTINATION include/ubuntu/application/ui/input | 8 | DESTINATION include/ubuntu-${UBUNTU_PLATFORM_API_VERSION_MAJOR}/application/ui/input |
175 | 9 | ) | 9 | ) |
176 | 10 | \ No newline at end of file | 10 | \ No newline at end of file |
177 | 11 | 11 | ||
178 | === modified file 'include/ubuntu/ui/CMakeLists.txt' | |||
179 | --- include/ubuntu/ui/CMakeLists.txt 2013-06-11 09:40:30 +0000 | |||
180 | +++ include/ubuntu/ui/CMakeLists.txt 2013-07-04 06:26:26 +0000 | |||
181 | @@ -1,4 +1,4 @@ | |||
182 | 1 | install( | 1 | install( |
183 | 2 | FILES ubuntu_ui_session_service.h | 2 | FILES ubuntu_ui_session_service.h |
185 | 3 | DESTINATION include/ubuntu/ui | 3 | DESTINATION include/ubuntu-${UBUNTU_PLATFORM_API_VERSION_MAJOR}/ui |
186 | 4 | ) | 4 | ) |
187 | 5 | \ No newline at end of file | 5 | \ No newline at end of file |
PASSED: Continuous integration, rev:68 jenkins. qa.ubuntu. com/job/ platform- api-ci/ 37/ jenkins. qa.ubuntu. com/job/ platform- api-saucy- amd64-ci/ 7 jenkins. qa.ubuntu. com/job/ platform- api-saucy- armhf-ci/ 7 jenkins. qa.ubuntu. com/job/ platform- api-saucy- armhf-ci/ 7/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ platform- api-saucy- i386-ci/ 7
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ platform- api-ci/ 37/rebuild
http://