Merge lp:~charlesk/indicator-datetime/make-gcc-version-explicit into lp:indicator-datetime/13.10

Proposed by Charles Kerr
Status: Merged
Approved by: Thomas Voß
Approved revision: 351
Merged at revision: 357
Proposed branch: lp:~charlesk/indicator-datetime/make-gcc-version-explicit
Merge into: lp:indicator-datetime/13.10
Diff against target: 31 lines (+9/-1)
2 files modified
debian/control (+4/-1)
debian/rules (+5/-0)
To merge this branch: bzr merge lp:~charlesk/indicator-datetime/make-gcc-version-explicit
Reviewer Review Type Date Requested Status
Thomas Voß (community) Approve
Steve Langasek Approve
Thomas Strehl (community) Needs Fixing
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+224467@code.launchpad.net

Commit message

make the gcc version explicit in debian/control and debian/rules.

Description of the change

Make the gcc version explicit in debian/control and debian/rules to avoid ABI problems described at https://wiki.ubuntu.com/cpp-11

To post a comment you must log in.
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: Approve (continuous-integration)
Revision history for this message
Thomas Strehl (strehl-t) wrote :

lgtm

review: Approve
Revision history for this message
Thomas Strehl (strehl-t) :
review: Needs Fixing
Revision history for this message
Charles Kerr (charlesk) wrote :

In IRC, Thomas said that he marked as "Needs Fixing" because of either the gcc string or because of the (missing) dh_auto_configure line... the gcc string looks the same as in the reference version at <https://wiki.ubuntu.com/cpp-11>, and I don't believe we need an override_dh_auto_configure rule here because exporting CC and CXX as environment variables is enough for cmake to pick them up.

So, I'm not sure what needs to be fixed here...

Revision history for this message
Steve Langasek (vorlon) wrote :
review: Approve
Revision history for this message
Thomas Voß (thomas-voss) wrote :

LGTM.

review: Approve

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-12 22:14:46 +0000
3+++ debian/control 2014-06-25 16:02:53 +0000
4@@ -2,8 +2,11 @@
5 Section: misc
6 Priority: optional
7 Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com>
8-# language-pack-en-base is for the unit tests s.t. we can test in 12h and 24h locales
9+# g++-4.9: since we use c++11 features, explicitly select a g++ version
10+# to protect from ABI breaks in libstdc++
11+# language-pack-en-base: needed so unit tests can use 12h and 24h locales
12 Build-Depends: cmake,
13+ g++-4.9,
14 dbus,
15 dbus-test-runner,
16 python3-dbusmock,
17
18=== modified file 'debian/rules'
19--- debian/rules 2014-03-24 15:46:04 +0000
20+++ debian/rules 2014-06-25 16:02:53 +0000
21@@ -1,5 +1,10 @@
22 #!/usr/bin/make -f
23
24+# Explicitly selecting a G{CC,++}-version here to avoid accidental
25+# ABI breaks introduced by toolchain updates.
26+export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
27+export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
28+
29 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
30
31 %:

Subscribers

People subscribed via source and target branches