Bug#545081: dpkg-dev: dpkg-buildpackage -B should UNCONDITIONALLY invoke debian/rules build-arch
Package: dpkg-dev
Version: 1.15.3.1
Severity: wishlist
As is well known, dpkg-buildpackage -B does not know whether it can
safely use the 'build-arch' target to debian/rules, so it always uses
'build', which makes the Build-Depends/Build-Depends-Indep distinction
useless unless you bend the rules and do the build phase for your arch:all
packages in binary-indep rather than build. This has been the case for
nearly a decade -- 'build-arch' was introduced in Policy 3.5.6.0, released
in July of 2001. There have been several proposals to fix this, either with
a new Build-Options control field, or clever use of make -n, but none have
achieved consensus and (as far as I know) none have made forward progress
since 2007.
I propose to break this multi-year deadlock by changing dpkg-buildpackage
so that its -B mode UNCONDITIONALLY invokes debian/rules build-arch. Yes,
this would make many packages instantly RC-buggy, but they can be fixed
with a single line added to debian/rules ("build-arch: build"), and I contend
that after eight years, we are not going to find a better solution. Let's
get this done for squeeze!
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages dpkg-dev depends on:
ii binutils 2.19.51.20090805-1 The GNU assembler, linker and bina
ii bzip2 1.0.5-3 high-quality block-sorting file co
ii dpkg 1.15.3.1+b1 Debian package management system
ii libtimedate-perl 1.1600-9 Time and date functions for Perl
ii lzma 4.43-14 Compression method of 7z format in
ii make 3.81-6 An utility for Directing compilati
ii patch 2.5.9-5 Apply a diff file to an original
ii perl [perl5] 5.10.0-25 Larry Wall's Practical Extraction
ii perl-modules 5.10.0-25 Core Perl modules
Versions of packages dpkg-dev recommends:
ii build-essential 11.4 Informational list of build-essent
ii gcc [c-compiler] 4:4.3.3-9 The GNU C compiler
ii gcc-4.3 [c-compiler] 4.3.4-2 The GNU C compiler
ii gcc-4.4 [c-compiler] 4.4.1-3 The GNU C compiler
ii gnupg 1.4.9-4 GNU privacy guard - a free PGP rep
ii gpgv 1.4.9-4 GNU privacy guard - signature veri
Versions of packages dpkg-dev suggests:
ii debian-keyring 2009.05.28 GnuPG (and obsolete PGP) keys of D
ii debian-maintainers 1.64 GPG keys of Debian maintainers
-- no debconf information
Reply to: