[Build-common-hackers] Bug#712729: cdbs: langcore.mk: support dpkg-buildflags' DEB_CFLAGS_MAINT_APPEND and similar

Emilio Pozuelo Monfort pochu at debian.org
Tue Jun 18 21:41:47 UTC 2013

Package: cdbs
Version: 0.4.121
Severity: wishlist


The hardening instructions in the Debian wiki[1] currently suggest to
include dpkg's buildflags.mk if the maintainer needs to add/remove/override
something, since CDBS doesn't support it (for packages that don't need
to change any *FLAGS, CDBS works perfectly fine). I suggest that we make
langcore respect those flags so that one can simply do:

DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,--as-needed

and CDBS will do the right thing.

See dpkg's magic in /usr/share/dpkg/buildflags.mk.


[1] http://wiki.debian.org/HardeningWalkthrough#rules_files_based_on_cdbs

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (700, 'experimental'), (650, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

cdbs depends on no packages.

Versions of packages cdbs recommends:
ii  autotools-dev  20130515.1

Versions of packages cdbs suggests:
ii  devscripts  2.13.2

-- debconf-show failed

More information about the Build-common-hackers mailing list