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

Proposed by Alejandro J. Cura
Status: Rejected
Rejected by: Alejandro J. Cura
Proposed branch: lp:~alecu/unity-scope-click/explicit-gcc-version
Merge into: lp:unity-scope-click/devel
Diff against target: 30 lines (+9/-0)
2 files modified
debian/control (+3/-0)
debian/rules (+6/-0)
To merge this branch: bzr merge lp:~alecu/unity-scope-click/explicit-gcc-version
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Dimitri John Ledkov Needs Fixing
Unity Team Pending
Review via email: mp+224550@code.launchpad.net

Commit message

Use g++ 4.9 explicitly to protect from ABI breaks in libstdc++

Description of the change

Use g++ 4.9 explicitly to protect from ABI breaks in libstdc++

This branch shamelessly borrows from lp:~charlesk/indicator-datetime/make-gcc-version-explicit

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
Dimitri John Ledkov (xnox) wrote :

This will cause cross-compilation to fail. As there is no way to correctly enforce cross-compiler yet (build-profiles are not fully implemented yet) please change:

g++-4.9

to

g++-4.9:native

This will achieve fully desired goals during native compilation, without breaking cross-compilation.

review: Needs Fixing
Revision history for this message
Dimitri John Ledkov (xnox) :
304. By Alejandro J. Cura

Fixes requested in review

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
305. By Alejandro J. Cura

Missing hyphen

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I'm not quite sure what's wrong, but :native build-dependencies are supported by the archive and all the landing tools we use.

Revision history for this message
Colin Watson (cjwatson) wrote :

I disagree with the instruction to use g++-4.9:native. It doesn't make logical sense (we need a compiler that targets the host architecture), and the issue of compiler dependencies for cross-building is one that we need to fix centrally in sbuild or similar; we shouldn't be trying to work around it in individual packages like this.

Unmerged revisions

305. By Alejandro J. Cura

Missing hyphen

304. By Alejandro J. Cura

Fixes requested in review

303. By Alejandro J. Cura

make g++ 4.9 explicit

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-26 18:16:41 +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:native,
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-26 18:16:41 +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

Subscribers

People subscribed via source and target branches

to all changes: