[Build-common-hackers] Bug#642950: cdbs: how to override dpkg-buildflags flags

Bart Martens bartm at debian.org
Sun Sep 25 21:50:29 UTC 2011

Package: cdbs
Version: 0.4.99
Tags: patch

The package gnomeradio fails to build from source because
dpkg-buildflags adds -Werror=format-security to CFLAGS.
Using DEB_CFLAGS_MAINT_STRIP=-Werror=format-security in debian/rules
should override that, but cdbs 0.4.99 doesn't seem to pick this up.

The attached patch should solve that.  The patch adds the use of the
variable DEB_DPKG_BUILDFLAGS_ENV to cdbs.

Packages like gnomeradio can then have this line in debian/rules:


Bart Martens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 977 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20110925/5f93bee1/attachment.diff>

More information about the Build-common-hackers mailing list