[Build-common-hackers] Bug#651966: class/langcore.mk: DEB_BUILD_MAINT_OPTIONS not passed to dpkg-buildflags

Simon Ruderich simon at ruderich.org
Tue Dec 13 17:05:13 UTC 2011


Package: cdbs
Severity: important
Tags: patch

Hello,

To modify hardening flags dpkg-buildflags uses the
DEB_BUILD_MAINT_OPTIONS environmental variable. For example to
enable all hardening flags the maintainer can set it in
debian/rules:

    export DEB_BUILD_MAINT_OPTIONS=hardening=+all

    include /usr/share/cdbs/1/...
    ...

But $(shell ...) doesn't inherit exported variables, thus at the
moment it's not possible to use DEB_BUILD_MAINT_OPTIONS to modify
dpkg-buildflags hardening flags in cdbs.

The attached patch fixes this and passes DEB_BUILD_MAINT_OPTIONS
to dpkg-buildflags, but I'm not sure if it's the best way to do
it.

Regards,
Simon

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdbs-dpkg-buildflags.patch
Type: text/x-diff
Size: 1133 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20111213/d825bf2e/attachment.patch>


More information about the Build-common-hackers mailing list