Potential indirect fallout due to toolchain updates

Christian Ehrhardt christian.ehrhardt at canonical.com
Wed Aug 16 15:36:50 UTC 2017


Hi,
all of this is just FYI in case you run into something similar.

Recently nut became an FTBFS package, triggered by a combo of:
1. nut's build system having an error
2. nut has default hardening=+all
3. net-snmp configure options disabled -pie
4. changes to our toolchain around PIE

TL;DR:
- due to PIE now being default chaning hardening= now behaves differently
(former "-fPIE" became "", and former "" became
"-specs=/usr/share/dpkg/no-pie-compile.specs")
- if set on cflags in general LDflags need the matching no-pie-link.specs
to work
- if you had cases where cflags and ldflags didn't match properly there are
chances they break while before tolerating the issue

Details on my particular case
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1711092

-- 
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20170816/dfc4c0d7/attachment.html>


More information about the ubuntu-devel mailing list