Package: dpkg-dev
Version: 1.13.24
Severity: wishlist
Tags: patch
The `dpkg-buildpackage -B' should call `debian/rules build-arch'. The current
behaviour is calling `build' target, so the builddaemons compiles the
arch-indep staff.
I.e. the z88dk package has build-arch target which compiles arch specific
binaries with gcc and build-indep target which shouldn't be called by buildd.
Just now, the builders compiles unecessary files.
The proposed patch:
--- dpkg-buildpackage.orig 2006-10-13 15:40:33.000000000 +0200
+++ dpkg-buildpackage 2006-11-14 17:36:47.000000000 +0100
@@ -71,6 +71,7 @@
checkbuilddep=true
checkbuilddep_args=''
binarytarget=binary
+buildtarget=build
sourcestyle=''
changesversion=''
since=''
@@ -111,7 +112,7 @@
-nc) noclean=true; if [ -z "$binaryonly" ]; then binaryonly=-b; fi ;;
-b) binaryonly=-b; [ "$sourceonly" ] && \
{ echo >&2 "$progname: cannot combine $1 and -S" ; exit
2 ; } ;;
- -B) binaryonly=-B; checkbuilddep_args=-B; binarytarget=binary-arch;
[ "$sourceonly" ] && \
+ -B) binaryonly=-B; checkbuilddep_args=-B; buildtarget=build-arch;
binarytarget=binary-arch; [ "$sourceonly" ] && \
{ echo >&2 "$progname: cannot combine $1 and -S" ; exit
2 ; } ;;
-S) sourceonly=-S; checkbuilddep=false; [ "$binaryonly" ] && \
{ echo >&2 "$progname: cannot combine $binaryonly and
$1" ; exit 2 ; } ;;
@@ -214,7 +215,16 @@
cd ..; withecho dpkg-source $passopts $diffignore $tarignore -b
"$dirn"; cd "$dirn"
fi
if [ x$sourceonly = x ]; then
- withecho debian/rules build
+ status=0
+ if [ x$buildtarget != xbuild ]; then
+ set +e
+ withecho debian/rules $buildtarget
+ status=$?
+ set -e
+ fi
+ if [ x$buildtarget = xbuild ] || [ $status = 2 ]; then
+ withecho debian/rules build
+ fi
withecho $rootcommand debian/rules $binarytarget
fi
if [ "$usepause" = "true" ] && \
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]