on xenial help sign in
Explicitly select gcc version.
commitc3229cf531960511418898ea1b896cb9cf74dad2 authorthomas-voss <thomas.voss@canonical.com> dateWed 23 Jul 2014, 13:16 (12 years ago) parenta742b53
2 files changed+13−2
debian/control+5−1 debian/rules+8−1
debian/control+5−1
@@ -7,6 +7,10 @@ Build-Depends: cmake,
77 debhelper (>= 9),
88 doxyqml,
99 graphviz,
10+# We rely on C++11 features, and to prevent from ABI breaks
11+# in libstdc++ causing us issues, we explicitly select a G++
12+# version.
13+ g++-4.9,
1014 libdee-qt5-dev (>= 3.2),
1115 libgl1-mesa-dev[!armhf] | libgl-dev[!armhf],
1216 libgl1-mesa-dri,
@@ -15,7 +19,7 @@ Build-Depends: cmake,
1519 libgsettings-qt-dev,
1620 libhardware-dev,
1721 libhud-client2-dev,
18− libpay1-dev,
22+ libpay2-dev,
1923 libpulse-dev,
2024 libqmenumodel-dev (>= 0.2.8),
2125 libqt5xmlpatterns5-dev,
debian/rules+8−1
@@ -1,11 +1,18 @@
11#!/usr/bin/make -f
22# -*- makefile -*-
33
4+include /usr/share/dpkg/default.mk
5+
46# Uncomment this to turn on verbose mode.
57#export DH_VERBOSE=1
68export DPKG_GENSYMBOLS_CHECK_LEVEL=4
79export NO_PNG_PKG_MANGLE=1
810
11+# Explicitly selecting a G{CC,++}-version here to avoid accidental
12+# ABI breaks introduced by toolchain updates.
13+export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
14+export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
15+
916%:
1017 dh $@ --parallel --fail-missing --with python2,python3
1118
@@ -16,7 +23,7 @@ override_dh_auto_clean:
1623override_dh_auto_configure:
1724 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
1825 # So until Debian bug 719148 is fixed, do it ourselves.
19− dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var"
26+ dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var" -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX)
2027
2128override_dh_auto_build:
2229 # doc is not a default target