[PPA] fPIE/fPIC build problems

Bug #1657596 reported by Thomas Ward on 2017-01-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nginx
Critical
Thomas Ward
Mainline
Critical
Thomas Ward
Stable
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 Edit Tag help
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.

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.

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
Thomas Ward (teward) wrote :

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

Thomas Ward (teward) wrote :

This is now fixed for Stable and Mainline PPAs.

Changed in nginx:
status: Fix Committed → Fix Released
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  Edit
Everyone can see this information.

Other bug subscribers