Bug#266345: "dpkg-buildpackage -S" doesn't check for build-dependencies
Package: dpkg
Version: 1.10.23+kbsd
Severity: important
Tags: patch
Policy 7.6 reads:
"The Build-Depends and Build-Conflicts fields must be satisfied when any of
the following targets is invoked: [...], clean, [...]."
"dpkg-buildpackage -S" runs the clean target, therefore should check for
Build-Depends. The attached patch fixes the problem.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i386)
Kernel: GNU/kFreeBSD 5.2.1-5
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to C)
Versions of packages dpkg depends on:
ii dselect 1.10.23+kbsd a user tool to manage Debian packa
ii libc0.1 2.3-1+kbsd.3 GNU C Library: Shared libraries an
-- no debconf information
--- dpkg-1.10.23/scripts/dpkg-buildpackage.sh~ 2004-07-19 20:56:53.000000000 +0200
+++ dpkg-1.10.23/scripts/dpkg-buildpackage.sh 2004-08-17 18:42:59.000000000 +0200
@@ -99,7 +99,7 @@
{ echo >&2 "$progname: cannot combine $1 and -S" ; exit 2 ; } ;;
-B) binaryonly=-B; checkbuilddep_args=-B; binarytarget=binary-arch; [ "$sourceonly" ] && \
{ echo >&2 "$progname: cannot combine $1 and -S" ; exit 2 ; } ;;
- -S) sourceonly=-S; checkbuilddep=false; [ "$binaryonly" ] && \
+ -S) sourceonly=-S; checkbuilddep_args=-B; [ "$binaryonly" ] && \
{ echo >&2 "$progname: cannot combine $binaryonly and $1" ; exit 2 ; } ;;
-v*) since="$value" ;;
-m*) maint="$value" ;;
Reply to: