Merge lp:~fginther/unity/unity-revert-gtest into lp:unity

Proposed by Francis Ginther
Status: Merged
Approved by: Tim Penhey
Approved revision: no longer in the source branch.
Merged at revision: 2885
Proposed branch: lp:~fginther/unity/unity-revert-gtest
Merge into: lp:unity
Diff against target: 28 lines (+11/-7)
1 file modified
CMakeLists.txt (+11/-7)
To merge this branch: bzr merge lp:~fginther/unity/unity-revert-gtest
Reviewer Review Type Date Requested Status
Tim Penhey (community) Approve
PS Jenkins bot continuous-integration Pending
Review via email: mp+133576@code.launchpad.net

Commit message

Commenting out setting of GTEST_INCLUDE_DIR in CMakeLists.txt.

This is causing builds to fail in launchpad unity-team/staging ppa due to missing dependencies.

Description of the change

Commenting out setting of GTEST_INCLUDE_DIR in CMakeLists.txt.

This is causing builds to fail in launchpad unity-team/staging ppa due to missing dependencies.
https://launchpadlibrarian.net/122383545/buildlog_ubuntu-quantal-amd64.unity_6.10.0bzr2884pkg0quantal0_FAILEDTOBUILD.txt.gz

[Testing]
 - Performed two test builds inside a chroot pbuilder. Build progressed beyond point of failure in launchpad.

To post a comment you must log in.
Revision history for this message
Tim Penhey (thumper) wrote :

Looks like a reasonable solution for now.

review: Approve
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Hum, the packaging is in bzr upstream, you can add the build-dep yourself now (which should have been better than reverting this). Anyway, let's try to fix this:
1. Why did it pass the pbuilder? Francis, I think that for packages with inline debian/, you should use the hook to install more build-dep for testing and just relying on the packaging one. Can you please tweak that? (That would have enabled us to fail in pbuilder, not launchpad)
2. I will ask to create a MIR (https://wiki.ubuntu.com/MainInclusionProcess) to get google-mock promoted to main for raring
3. Then, proposing a merge request adding those dep to the packaging and reverting this MR.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
Revision history for this message
Francis Ginther (fginther) wrote :

Didier,

1. It made it past the auto-merge pbuilder because it adds a set of common test packages (google-mock, etc.) via a pre-build hook. This needs to be tweaked after being exposed as an issue here.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Reviewed and promoted in main now after some google-mock fixes.

3. Added them as build-dep and proposed https://code.launchpad.net/~didrocks/unity/add-gtest-build-dep/+merge/133637 to revert this.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2012-11-08 11:14:37 +0000
3+++ CMakeLists.txt 2012-11-08 22:02:26 +0000
4@@ -182,13 +182,17 @@
5 "Path to Google test srcs"
6 )
7
8-set(
9- GTEST_INCLUDE_DIR
10- "/usr/include/gtest"
11- CACHE
12- PATH
13- "Path to Google tests include"
14-)
15+# Commenting out the following block added in rev 2884 which is causing
16+# builds to break in launchpad.
17+# This requires dependencies on libgtest-dev and google-mock which are not
18+# specified in the packaging.
19+#set(
20+# GTEST_INCLUDE_DIR
21+# "/usr/include/gtest"
22+# CACHE
23+# PATH
24+# "Path to Google tests include"
25+#)
26
27 find_path(GTEST_INCLUDE_DIR gtest/gtest.h)
28 if (GTEST_INCLUDE_DIR)