dpkg-buildflags not honored by dpkg-buildpackage

Bug #1329713 reported by Nico Schlömer
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
Uname: Linux 3.13.0-29-generic x86_64
NonfreeKernelModules: wl
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)
PackageArchitecture: all
SourcePackage: dpkg
UpgradeStatus: Upgraded to trusty on 2014-04-17 (56 days ago)

Revision history for this message
Nico Schlömer (nschloe) wrote :
Revision history for this message
Nico Schlömer (nschloe) wrote :

Minimal Debian package to highlight the misbehavior.

Unpack and execute
```
dpkg-buildpackage -rfakeroot -b
```
in the folder. On trusty, you will see
```
/usr/bin/x86_64-linux-gnu-gcc -o CMakeFiles/hello.dir/hello.c.o -c /home/nschloe/tmp/test/hello.c

```
On precise, you will see
```
/usr/bin/cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -o CMakeFiles/hello.dir/hello.c.o -c /tmp/2014-06-13-checkflags/hello.c
```

description: updated
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.