[Bug 1329713] Re: dpkg-buildflags not honored by dpkg-buildpackage

Nico Schlömer 1329713 at bugs.launchpad.net
Fri Jun 13 10:32:58 UTC 2014


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
```

** Attachment added: "2014-06-13-checkflags.tar.bz2"
   https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1329713/+attachment/4130921/+files/2014-06-13-checkflags.tar.bz2

** Description changed:

- When build a package using
+ 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)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1329713

Title:
  dpkg-buildflags not honored by dpkg-buildpackage

Status in “dpkg” package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1329713/+subscriptions



More information about the foundations-bugs mailing list