Merge lp:~cjwatson/libusermetrics/valgrind-optional into lp:libusermetrics

Proposed by Colin Watson
Status: Approved
Approved by: Pete Woods
Approved revision: 150
Proposed branch: lp:~cjwatson/libusermetrics/valgrind-optional
Merge into: lp:libusermetrics
Diff against target: 26 lines (+3/-2)
2 files modified
debian/control (+1/-1)
debian/rules (+2/-1)
To merge this branch: bzr merge lp:~cjwatson/libusermetrics/valgrind-optional
Reviewer Review Type Date Requested Status
Pete Woods (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+211563@code.launchpad.net

Commit message

Only require valgrind on architectures where it is available.

Description of the change

This should allow libusermetrics to build on the Ubuntu architectures (arm64 and ppc64el) where valgrind is not currently available.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Pete Woods (pete-woods) wrote :

LGTM

review: Approve
Revision history for this message
Robert Bruce Park (robru) wrote :

It seems xnox took the opposite approach, blacklisting arches where valgrind is not available:

http://launchpadlibrarian.net/170310103/libusermetrics_1.1.1%2B14.04.20140305-0ubuntu1_1.1.1%2B14.04.20140305-0ubuntu2.diff.gz

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

Either would technically work, but I think in general positive terminology is better when it's a case of something that has to be explicitly ported to each new architecture; it saves on effort when we introduce new architectures.

Revision history for this message
Pete Woods (pete-woods) wrote :

The debate doesn't really matter when this is already released / merged. Thankyou for the MR. :)

Unmerged revisions

150. By Colin Watson

Only require valgrind on architectures where it is available.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2013-09-26 12:43:32 +0000
+++ debian/control 2014-03-18 15:54:42 +0000
@@ -17,7 +17,7 @@
17 pkg-config,17 pkg-config,
18 qtbase5-dev,18 qtbase5-dev,
19 sqlite3,19 sqlite3,
20 valgrind,20 valgrind [amd64 armhf i386 powerpc],
21 qtdeclarative5-dev,21 qtdeclarative5-dev,
22 qtdeclarative5-qtquick2-plugin,22 qtdeclarative5-qtquick2-plugin,
23 qtdeclarative5-test-plugin,23 qtdeclarative5-test-plugin,
2424
=== modified file 'debian/rules'
--- debian/rules 2014-03-03 13:29:06 +0000
+++ debian/rules 2014-03-18 15:54:42 +0000
@@ -3,7 +3,8 @@
33
4export DPKG_GENSYMBOLS_CHECK_LEVEL=44export DPKG_GENSYMBOLS_CHECK_LEVEL=4
55
6ifeq ($(DEB_HOST_ARCH),armhf)6export DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
7ifeq (,$(filter amd64 i386 powerpc,$(DEB_HOST_ARCH)))
7 ENABLE_MEMCHECK_OPTION = OFF8 ENABLE_MEMCHECK_OPTION = OFF
8else9else
9 ENABLE_MEMCHECK_OPTION = ON10 ENABLE_MEMCHECK_OPTION = ON

Subscribers

People subscribed via source and target branches

to all changes: