Merge lp:~alecu/unity-scope-click/explicit-gcc-version-trunk into lp:unity-scope-click

Proposed by Alejandro J. Cura
Status: Merged
Approved by: Thomas Strehl
Approved revision: 238
Merged at revision: 247
Proposed branch: lp:~alecu/unity-scope-click/explicit-gcc-version-trunk
Merge into: lp:unity-scope-click
Diff against target: 49 lines (+11/-2)
3 files modified
debian/control (+3/-0)
debian/rules (+6/-0)
libclickscope/click/interface.cpp (+2/-2)
To merge this branch: bzr merge lp:~alecu/unity-scope-click/explicit-gcc-version-trunk
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
dobey (community) Approve
Review via email: mp+224814@code.launchpad.net

Commit message

Explicitly select g++ version 4.9 for ABI stability

To post a comment you must log in.
Revision history for this message
dobey (dobey) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
238. By Alejandro J. Cura

Fix errors compiling with 4.9

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)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-06-23 15:00:28 +0000
3+++ debian/control 2014-06-27 17:45:27 +0000
4@@ -1,9 +1,12 @@
5 Source: unity-scope-click
6 Section: x11
7 Priority: optional
8+# g++-4.9: since we use c++11 features, explicitly select a g++ version
9+# to protect from ABI breaks in libstdc++
10 Build-Depends: cmake (>= 2.8.10),
11 debhelper (>= 9),
12 dh-translations,
13+ g++-4.9,
14 google-mock,
15 intltool,
16 libboost-locale-dev,
17
18=== modified file 'debian/rules'
19--- debian/rules 2014-04-04 16:40:49 +0000
20+++ debian/rules 2014-06-27 17:45:27 +0000
21@@ -1,4 +1,10 @@
22 #!/usr/bin/make -f
23+include /usr/share/dpkg/default.mk
24+
25+# Explicitly selecting a G{CC,++}-version here to avoid accidental
26+# ABI breaks introduced by toolchain updates.
27+export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
28+export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
29
30 DH_CMAKE_BUILD_DIR=obj-${DEB_BUILD_GNU_TYPE}
31
32
33=== modified file 'libclickscope/click/interface.cpp'
34--- libclickscope/click/interface.cpp 2014-06-16 15:38:49 +0000
35+++ libclickscope/click/interface.cpp 2014-06-27 17:45:27 +0000
36@@ -435,11 +435,11 @@
37 callback(package_names, InterfaceError::NoError);
38 } catch (...) {
39 qWarning() << "Can't parse 'click list' output: " << QString::fromStdString(stdout_data);
40- callback({}, InterfaceError::ParseError);
41+ callback(PackageSet(), InterfaceError::ParseError);
42 }
43 } else {
44 qWarning() << "Error" << code << "running 'click list': " << QString::fromStdString(stderr_data);
45- callback({}, InterfaceError::CallError);
46+ callback(PackageSet(), InterfaceError::CallError);
47 }
48 });
49 }

Subscribers

People subscribed via source and target branches