Merge lp:~thomas-voss/unity8/explicit-gcc-version into lp:unity8

Proposed by Thomas Voß
Status: Merged
Approved by: Michał Sawicz
Approved revision: 1072
Merged at revision: 1068
Proposed branch: lp:~thomas-voss/unity8/explicit-gcc-version
Merge into: lp:unity8
Diff against target: 87 lines (+19/-2)
5 files modified
debian/control (+5/-1)
debian/rules (+7/-0)
plugins/Ubuntu/Payments/CMakeLists.txt (+1/-1)
tests/mocks/libusermetrics/UserMetrics.cpp (+3/-0)
tests/plugins/Unity/Indicators/unitymenumodelstacktest.cpp (+3/-0)
To merge this branch: bzr merge lp:~thomas-voss/unity8/explicit-gcc-version
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Michał Sawicz Approve
Colin Watson Pending
Review via email: mp+227893@code.launchpad.net

Commit message

Explicitly select gcc version.

Description of the change

Explicitly select gcc version.

To post a comment you must log in.
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

This duplication is there again:

export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9

and

dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var" -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX)

You don't need to give these compiler flags to CMake, it will pick them up automatically from the envvars. In addition this definition is broken because it does not quote its arguments. So if, for example, in the future CC is set to "ccache gcc-whatever", this will break.

1069. By Thomas Voß

Account for pay-1 to pay-2.

1070. By Thomas Voß

Add missing includes.

1071. By Thomas Voß

Add missing includes.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1072. By Thomas Voß

Remove adjustments to cmake invocation.

Revision history for this message
Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes.

 * Did CI run pass? If not, please explain why.
Unrelated fails.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (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-07-17 09:37:51 +0000
3+++ debian/control 2014-07-23 15:31:05 +0000
4@@ -7,6 +7,10 @@
5 debhelper (>= 9),
6 doxyqml,
7 graphviz,
8+# We rely on C++11 features, and to prevent from ABI breaks
9+# in libstdc++ causing us issues, we explicitly select a G++
10+# version.
11+ g++-4.9,
12 libdee-qt5-dev (>= 3.2),
13 libgl1-mesa-dev[!armhf] | libgl-dev[!armhf],
14 libgl1-mesa-dri,
15@@ -15,7 +19,7 @@
16 libgsettings-qt-dev,
17 libhardware-dev,
18 libhud-client2-dev,
19- libpay1-dev,
20+ libpay2-dev,
21 libpulse-dev,
22 libqmenumodel-dev (>= 0.2.8),
23 libqt5xmlpatterns5-dev,
24
25=== modified file 'debian/rules'
26--- debian/rules 2014-06-11 15:36:51 +0000
27+++ debian/rules 2014-07-23 15:31:05 +0000
28@@ -1,11 +1,18 @@
29 #!/usr/bin/make -f
30 # -*- makefile -*-
31
32+include /usr/share/dpkg/default.mk
33+
34 # Uncomment this to turn on verbose mode.
35 #export DH_VERBOSE=1
36 export DPKG_GENSYMBOLS_CHECK_LEVEL=4
37 export NO_PNG_PKG_MANGLE=1
38
39+# Explicitly selecting a G{CC,++}-version here to avoid accidental
40+# ABI breaks introduced by toolchain updates.
41+export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
42+export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
43+
44 %:
45 dh $@ --parallel --fail-missing --with python2,python3
46
47
48=== modified file 'plugins/Ubuntu/Payments/CMakeLists.txt'
49--- plugins/Ubuntu/Payments/CMakeLists.txt 2014-06-30 14:47:07 +0000
50+++ plugins/Ubuntu/Payments/CMakeLists.txt 2014-07-23 15:31:05 +0000
51@@ -14,7 +14,7 @@
52
53 add_unity8_plugin(Ubuntu.Payments 0.1 Ubuntu/Payments TARGETS Payments)
54
55-pkg_check_modules(LIBPAY REQUIRED pay-1)
56+pkg_check_modules(LIBPAY REQUIRED pay-2)
57 add_definitions(${LIBPAY_CFLAGS} ${LIBPAY_CFLAGS_OTHER})
58
59 target_link_libraries(Payments ${LIBPAY_LDFLAGS})
60
61=== modified file 'tests/mocks/libusermetrics/UserMetrics.cpp'
62--- tests/mocks/libusermetrics/UserMetrics.cpp 2014-06-12 15:03:20 +0000
63+++ tests/mocks/libusermetrics/UserMetrics.cpp 2014-07-23 15:31:05 +0000
64@@ -24,6 +24,9 @@
65 #include <QtGui/QIcon>
66 #include <QMultiMap>
67
68+#include <functional>
69+#include <random>
70+
71 using namespace UserMetricsOutput;
72
73 namespace UserMetricsOutput
74
75=== modified file 'tests/plugins/Unity/Indicators/unitymenumodelstacktest.cpp'
76--- tests/plugins/Unity/Indicators/unitymenumodelstacktest.cpp 2014-06-12 15:03:20 +0000
77+++ tests/plugins/Unity/Indicators/unitymenumodelstacktest.cpp 2014-07-23 15:31:05 +0000
78@@ -24,6 +24,9 @@
79 #include <QDebug>
80 #include <unitymenumodel.h>
81
82+#include <functional>
83+#include <chrono>
84+
85 class UnityMenuModelStackTest : public QObject
86 {
87 Q_OBJECT

Subscribers

People subscribed via source and target branches