|
@@ -27,7 +27,6 @@ use Dpkg::Gettext;
|
|
|
use Dpkg::ErrorHandling;
|
|
use Dpkg::ErrorHandling;
|
|
|
use Dpkg::BuildFlags;
|
|
use Dpkg::BuildFlags;
|
|
|
use Dpkg::BuildOptions;
|
|
use Dpkg::BuildOptions;
|
|
|
-use Dpkg::BuildFeatures;
|
|
|
|
|
use Dpkg::Compression;
|
|
use Dpkg::Compression;
|
|
|
use Dpkg::Version;
|
|
use Dpkg::Version;
|
|
|
use Dpkg::Changelog::Parse;
|
|
use Dpkg::Changelog::Parse;
|
|
@@ -120,7 +119,6 @@ my $checkbuilddep = 1;
|
|
|
my $signsource = 1;
|
|
my $signsource = 1;
|
|
|
my $signchanges = 1;
|
|
my $signchanges = 1;
|
|
|
my $binarytarget = 'binary';
|
|
my $binarytarget = 'binary';
|
|
|
-my $buildtarget = 'build';
|
|
|
|
|
my $targetarch = my $targetgnusystem = '';
|
|
my $targetarch = my $targetgnusystem = '';
|
|
|
my $call_target = '';
|
|
my $call_target = '';
|
|
|
my $call_target_as_root = 0;
|
|
my $call_target_as_root = 0;
|
|
@@ -204,21 +202,18 @@ while (@ARGV) {
|
|
|
$include = BUILD_BINARY;
|
|
$include = BUILD_BINARY;
|
|
|
push @changes_opts, '-b';
|
|
push @changes_opts, '-b';
|
|
|
@checkbuilddep_opts = ();
|
|
@checkbuilddep_opts = ();
|
|
|
- $buildtarget = 'build';
|
|
|
|
|
$binarytarget = 'binary';
|
|
$binarytarget = 'binary';
|
|
|
} elsif (/^-B$/) {
|
|
} elsif (/^-B$/) {
|
|
|
build_sourceonly && usageerr(_g("cannot combine %s and %s"), $_, "-S");
|
|
build_sourceonly && usageerr(_g("cannot combine %s and %s"), $_, "-S");
|
|
|
$include = BUILD_ARCH_DEP;
|
|
$include = BUILD_ARCH_DEP;
|
|
|
push @changes_opts, '-B';
|
|
push @changes_opts, '-B';
|
|
|
@checkbuilddep_opts = ('-B');
|
|
@checkbuilddep_opts = ('-B');
|
|
|
- $buildtarget = 'build-arch';
|
|
|
|
|
$binarytarget = 'binary-arch';
|
|
$binarytarget = 'binary-arch';
|
|
|
} elsif (/^-A$/) {
|
|
} elsif (/^-A$/) {
|
|
|
build_sourceonly && usageerr(_g("cannot combine %s and %s"), $_, "-S");
|
|
build_sourceonly && usageerr(_g("cannot combine %s and %s"), $_, "-S");
|
|
|
$include = BUILD_ARCH_INDEP;
|
|
$include = BUILD_ARCH_INDEP;
|
|
|
push @changes_opts, '-A';
|
|
push @changes_opts, '-A';
|
|
|
@checkbuilddep_opts = ();
|
|
@checkbuilddep_opts = ();
|
|
|
- $buildtarget = 'build-indep';
|
|
|
|
|
$binarytarget = 'binary-indep';
|
|
$binarytarget = 'binary-indep';
|
|
|
} elsif (/^-S$/) {
|
|
} elsif (/^-S$/) {
|
|
|
build_binaryonly && usageerr(_g("cannot combine %s and %s"), build_opt, "-S");
|
|
build_binaryonly && usageerr(_g("cannot combine %s and %s"), build_opt, "-S");
|
|
@@ -252,9 +247,6 @@ if ($noclean) {
|
|
|
$include = BUILD_BINARY if ($include & BUILD_DEFAULT);
|
|
$include = BUILD_BINARY if ($include & BUILD_DEFAULT);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-my $buildfeats = Dpkg::BuildFeatures->new();
|
|
|
|
|
-$buildtarget = 'build' unless $buildfeats->has('build-arch');
|
|
|
|
|
-
|
|
|
|
|
if ($< == 0) {
|
|
if ($< == 0) {
|
|
|
warning(_g("using a gain-root-command while being root")) if (@rootcommand);
|
|
warning(_g("using a gain-root-command while being root")) if (@rootcommand);
|
|
|
} else {
|
|
} else {
|
|
@@ -410,7 +402,7 @@ unless (build_binaryonly) {
|
|
|
chdir($dir) or syserr("chdir $dir");
|
|
chdir($dir) or syserr("chdir $dir");
|
|
|
}
|
|
}
|
|
|
unless (build_sourceonly) {
|
|
unless (build_sourceonly) {
|
|
|
- withecho(@debian_rules, $buildtarget);
|
|
|
|
|
|
|
+ withecho(@debian_rules, 'build');
|
|
|
withecho(@rootcommand, @debian_rules, $binarytarget);
|
|
withecho(@rootcommand, @debian_rules, $binarytarget);
|
|
|
}
|
|
}
|
|
|
if ($usepause &&
|
|
if ($usepause &&
|