Merge lp:~pete-woods/location-service/dev-packaging into lp:location-service/trunk

Proposed by Pete Woods
Status: Merged
Approved by: Michal Hruby
Approved revision: 74
Merged at revision: 74
Proposed branch: lp:~pete-woods/location-service/dev-packaging
Merge into: lp:location-service/trunk
Diff against target: 62 lines (+19/-3)
3 files modified
debian/changelog (+8/-0)
debian/control (+4/-2)
debian/rules (+7/-1)
To merge this branch: bzr merge lp:~pete-woods/location-service/dev-packaging
Reviewer Review Type Date Requested Status
Robert Bruce Park (community) Approve
PS Jenkins bot continuous-integration Approve
Ubuntu Core Development Team Pending
Review via email: mp+228457@code.launchpad.net

Commit message

Add missing dependencies to devel package

Description of the change

Add missing dependencies to devel package

Without this change, clients of the location service API need to build depend on libdbus-cpp and libdbus.

To post a comment you must log in.
74. By Pete Woods

Bump changelog

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

Seems strange to me that those -dev deps wouldn't get pulled in by ${misc:Depends}, but I guess if you need those packages without linking to them, then this lgtm.

review: Approve
Revision history for this message
Colin Watson (cjwatson) wrote :

This isn't something that ${misc:Depends} does for you. The things that are added there are enumerated in the debhelper documentation.

Revision history for this message
Colin Watson (cjwatson) wrote :

I think you may be thinking of ${shlibs:Depends}, which only covers run-time dependencies, not -dev dependencies. Dependencies on other -dev packages are typically spelled out manually.

75. By Pete Woods

Don't require hardware headers on unsupported platforms

76. By Pete Woods

Only build the GPS provider on supported platforms

77. By Pete Woods

Merge trunk

78. By Pete Woods

Add info about building on other platforms

Revision history for this message
Colin Watson (cjwatson) wrote :

Minor point to clean up later: I think the architecture tests are done backwards here. Negative architecture tests do have their uses (for example, "facility is broken on this particular architecture"), but for something like this where you're using something that only exists on a strictly enumerated set of architectures right now, I would use positive tests. Thus, I'd write the build-dependencies as [amd64 armhf i386], and switch the order of the location-service conditional in debian/rules and write its test as "ifneq (,$(filter $(DEB_HOST_ARCH),amd64 armhf i386))".

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-07-28 14:01:21 +0000
3+++ debian/changelog 2014-07-29 09:19:53 +0000
4@@ -1,3 +1,11 @@
5+location-service (2.0.1-0ubuntu1) UNRELEASED; urgency=medium
6+
7+ [ Pete Woods ]
8+ * Add libdbus-cpp and libdbus as dependencies on devel package.
9+ * Enable building on arm64, powerpc and ppc64el.
10+
11+ -- Pete Woods <pete.woods@canonical.com> Mon, 28 Jul 2014 10:48:27 +0100
12+
13 location-service (2.0.0+14.10.20140718.2-0ubuntu2) utopic; urgency=medium
14
15 * No-change rebuild to get dbgsyms for all binaries onto
16
17=== modified file 'debian/control'
18--- debian/control 2014-07-18 15:31:14 +0000
19+++ debian/control 2014-07-29 09:19:53 +0000
20@@ -25,8 +25,8 @@
21 libjson-c-dev,
22 libnet-cpp-dev,
23 libprocess-cpp-dev,
24- libubuntu-platform-hardware-api-headers,
25- libubuntu-platform-hardware-api-dev,
26+ libubuntu-platform-hardware-api-headers [!arm64 !ppc64el !powerpc],
27+ libubuntu-platform-hardware-api-dev [!arm64 !ppc64el !powerpc],
28 libproperties-cpp-dev,
29 Standards-Version: 3.9.4
30 Homepage: http://launchpad.net/location-service
31@@ -53,6 +53,8 @@
32 Multi-Arch: foreign
33 Recommends: ubuntu-location-service-doc,
34 Depends: libubuntu-location-service2 (= ${binary:Version}),
35+ libdbus-1-dev,
36+ libdbus-cpp-dev,
37 ${misc:Depends},
38 Suggests: ubuntu-location-service-doc,
39 Description: location service aggregating position/velocity/heading
40
41=== modified file 'debian/rules'
42--- debian/rules 2014-07-18 09:44:44 +0000
43+++ debian/rules 2014-07-29 09:19:53 +0000
44@@ -20,6 +20,12 @@
45 export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
46 export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
47
48+ifneq (,$(filter $(DEB_HOST_ARCH),ppc64el powerpc arm64))
49+ LOCATION_SERVICE_ENABLE_GPS_PROVIDER = OFF
50+else
51+ LOCATION_SERVICE_ENABLE_GPS_PROVIDER = ON
52+endif
53+
54 %:
55 dh $@ --parallel --fail-missing
56
57@@ -30,4 +36,4 @@
58 dh_strip --dbg-package=libubuntu-location-service-dbg
59
60 override_dh_auto_configure:
61- dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/ubuntu-location-service -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX)
62+ dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/ubuntu-location-service -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX) -DLOCATION_SERVICE_ENABLE_GPS_PROVIDER=$(LOCATION_SERVICE_ENABLE_GPS_PROVIDER)

Subscribers

People subscribed via source and target branches