[Build-common-hackers] Bug#642950: cdbs: how to override dpkg-buildflags flags
bartm at debian.org
Sun Sep 25 21:50:29 UTC 2011
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:
DEB_DPKG_BUILDFLAGS_ENV := DEB_CFLAGS_MAINT_STRIP=-Werror=format-security
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 977 bytes
Desc: not available
More information about the Build-common-hackers