[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#613046: debian-policy: please update example in 4.9.1 (debian/rules and DEB_BUILD_OPTIONS)



Package: debian-policy
Version: 3.9.1.0
Severity: minor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hey

The example in 4.9.1 suggests to set CFLAGS in a way that completely
overrides values from dpkg-buildpackage/dpkg-buildflags[1]:

CFLAGS = -Wall -g

This will set CFLAGS to "-Wall -g" regardless of what dpkg-buildflags
provides.  Possible alternatives that appears to work are:

CFLAGS := $(CFLAGS) -Wall -g

CFLAGS  = $(shell dpkg-buildflags --get CFLAGS) -Wall -g

While related to #578597, I believe it to be a distinct issue. This was triggered
by this email[2] on debian-mentors.

Thank you in advance,
~Niels

[1] http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options

[2] <4D565FCD.8030605@climbing.nl>

- -- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

debian-policy depends on no packages.

debian-policy recommends no packages.

Versions of packages debian-policy suggests:
pn  doc-base                      <none>     (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJNVopQAAoJEAVLu599gGRC5owP/126vj5jQDjG+poceq2sMEwY
Pn5Btc+iXey8TLQQoA/0D2pT0VU+dfnflTzQSsiec24R7sSicviEyOujSJDRHsef
zXKriaWLywscP0z8aqGb9z12Fc7zYjYgqeeNc+NLzxoSD+dZRNgo0ILrQ/GQlC7p
Okq1DJnc8BqwFMezxoTk39n+LLTuv6M3OuV7sZYSdHwYNhSVyUjLwppdqTjMMH2j
8qq46PkfvAudj5uskCyY4r7Mh/SSwDYFKMp0Lo/T/ic9WhAZQE+7qu4kjexmtyl/
aTC3c0Tqfc2CSfNoxbRZKY1FUT77ZmBbg17DWRLF8LfajOIkFjK4ps61t9hWNTmX
uGJVzr8m9CNc+HRQAMO4wSTjCDGl3NLnP2d12OiOvhCaFO4nTuUdk+0t8YByUU2P
BPDX0TVmODQT3DPyiIg7lliuyBRk4an4G6SqhrDuMOWQ5iZ4LhxsFZrVE/qlHAeg
IL+5A+AchPKvrDByRKurH09J0wboZt7a2suJfwk+NjyglpYF1X8wwZFxvZN3QlEm
hvPpa2RQRwjfzXE0PIPjjdsdlGCdwNLdooV/O8hBKczw9jaSu6iZyYcFGlgeFXxj
2RhAAWcFqymglZ85uSgmALz7Yq/zawLNU/yOGdajz+Rw+fcfOyINzVQaMIfTjunE
b3kp2V2nF5Sxeg0gKPzZ
=zJ3g
-----END PGP SIGNATURE-----



Reply to: