dpkg-buildflags not honored by dpkg-buildpackage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When building a package using
```
$ dpkg-buildpackage -rfakeroot -b
```
the build flags as determined by
```
$ dpkg-buildflags
```
are not added to the environment. The bug is present in trusty, and was not present in precise.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: dpkg-dev 1.17.5ubuntu5.3
ProcVersionSign
Uname: Linux 3.13.0-29-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Jun 13 12:26:08 2014
InstallationDate: Installed on 2013-11-15 (209 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
PackageArchitec
SourcePackage: dpkg
UpgradeStatus: Upgraded to trusty on 2014-04-17 (56 days ago)
Minimal Debian package to highlight the misbehavior.
Unpack and execute x86_64- linux-gnu- gcc -o CMakeFiles/ hello.dir/ hello.c. o -c /home/nschloe/ tmp/test/ hello.c
```
dpkg-buildpackage -rfakeroot -b
```
in the folder. On trusty, you will see
```
/usr/bin/
``` ssp-buffer- size=4 -Wformat -Wformat-security -o CMakeFiles/ hello.dir/ hello.c. o -c /tmp/2014- 06-13-checkflag s/hello. c
On precise, you will see
```
/usr/bin/cc -g -O2 -fstack-protector --param=
```