[PPA] fPIE/fPIC build problems

Bug #1657596 reported by Thomas Ward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nginx
Fix Released
Critical
Thomas Ward
Mainline
Fix Released
Critical
Thomas Ward
Stable
Fix Released
Critical
Thomas Ward

Bug Description

When building the packages directly from Debian, there are a lot of build failures, mostly surrounding the use of -fPIE and lack of -fPIC in the Ubuntu build environments. This is not an issue in Debian, but breaks everything in the PPAs.

Tags: ppa
Revision history for this message
Thomas Ward (teward) wrote :

I believe I have a fix for this, and may send it up into Debian as well going forward. If everything works, and it doesn't cause build failures in Debian.

Revision history for this message
Thomas Ward (teward) wrote :

A fix has been committed for this in the Stable and Mainline staging PPAs.

PPA builders are a little overtaxed today, so sometime tomorrow, if there are no build failures, I will push things to the main repos.

Revision history for this message
Thomas Ward (teward) wrote :

And by 'main repos' I mean the actual PPAs, not the staging ones.

Changed in nginx:
status: In Progress → Fix Committed
Revision history for this message
Thomas Ward (teward) wrote :

This cannot be fixed for Precise; it can be fixed for Trusty and later.

Revision history for this message
Thomas Ward (teward) wrote :

This is now fixed for Stable and Mainline PPAs.

Changed in nginx:
status: Fix Committed → Fix Released
Revision history for this message
Thomas Ward (teward) wrote :

Just some follow-up notes:

Add -fPIC and -fPIE to debian_cflags, debian_ldflags; make sure hardening-flags=+all,-fPIE for the DEBIAN_LDFLAGS string where it modifies the flags to run with for certain cases. This is nearly identical to what we had to do for Trusty in Ubuntu an eternity ago, but with a few changes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.