The following commit has been merged in the master branch:
commit ab04e402306b8f8e9bf9ac306dc8ede0a4bc98df
Author: Simon McVittie <[email protected]>
Date: Sun May 23 11:15:27 2010 +0100
mk-build-deps: build an arch 'any' package if dependencies change by arch
Closes: #580600
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 4655b15..bae04e4 100755
--- a/scripts/mk-build-deps.pl
+++ b/scripts/mk-build-deps.pl
@@ -181,17 +181,25 @@ while ($control = shift) {
}
close CONTROL;
+ my $equivs_build = 'equivs-build';
+ my $arch = 'all';
+
+ if ($build_deps =~ /\[|\]/) {
+ $arch = 'any';
+ }
+
# Now, running equivs-build:
die "$progname: Unable to find package name in '$control'\n" unless $name;
die "$progname: Unable to find build-deps for $name\n" unless $build_deps;
- open EQUIVS, "| equivs-build -"
+ open EQUIVS, "| $equivs_build -"
or die "$progname: Failed to execute equivs-build: $!\n";
print EQUIVS "Section: devel\n" .
"Priority: optional\n".
"Standards-Version: 3.7.3\n\n".
"Package: ".$name."-build-deps\n".
+ "Architecture: $arch\n".
"Depends: $build_deps\n";
print EQUIVS "Version: $version\n" if $version;
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].