The following commit has been merged in the master branch:
commit 287fa2ae79e3d3dd0bcdee813b27302661c070bb
Author: Simon McVittie <[email protected]>
Date: Sun May 23 11:16:01 2010 +0100
mk-build-deps: add --arch option, mirroring equivs' --arch option
Signed-off-by: Simon McVittie <[email protected]>
Signed-off-by: James Vega <[email protected]>
diff --git a/scripts/mk-build-deps.pl b/scripts/mk-build-deps.pl
index bae04e4..4fa90b7 100755
--- a/scripts/mk-build-deps.pl
+++ b/scripts/mk-build-deps.pl
@@ -55,6 +55,13 @@ When installing the generated package use the specified tool.
Remove the package file after installing it. Ignored if used without
the install switch.
+=item B<-a> I<foo>, B<--arch> I<foo>
+
+If the source package has architecture-specific build dependencies, produce
+a package for architecture I<foo>, not for the system architecture. (If the
+source package does not have architecture-specific build dependencies,
+the package produced is always for the pseudo-architecture B<all>.)
+
=item B<-h>, B<--help>
Show a summary of options.
@@ -85,7 +92,7 @@ use Pod::Usage;
my $progname = basename($0);
my $opt_install;
my $opt_remove=0;
-my ($opt_help, $opt_version);
+my ($opt_help, $opt_version, $opt_arch);
my $control;
my $install_tool;
my @packages;
@@ -128,6 +135,7 @@ GetOptions("help|h" => \$opt_help,
"install|i" => \$opt_install,
"remove|r" => \$opt_remove,
"tool|t=s" => \$install_tool,
+ "arch|a=s" => \$opt_arch,
)
or pod2usage({ -exitval => 1, -verbose => 0 });
@@ -186,6 +194,10 @@ while ($control = shift) {
if ($build_deps =~ /\[|\]/) {
$arch = 'any';
+
+ if (defined $opt_arch) {
+ $equivs_build .= " --arch=$opt_arch";
+ }
}
# Now, running equivs-build:
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].