Package: svn-buildpackage
Version: 0.6.23
Severity: wishlist
Tags: patch
Hi,
Please find attached a patch adding an option to override the architecture
detected
by dpkg --print-architecture.
This is usefull when building i386 packages on an amd64 host, particularly when
pdebuild is patched as described in bug #349394 [1]
Cheers,
Julien
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=349394
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages svn-buildpackage depends on:
ii devscripts 2.10.49 scripts to make the life of a Debi
ii file 5.02-1 Determines file type using "magic"
ii libsvn-perl 1.5.6dfsg-1 Perl bindings for Subversion
ii liburi-perl 1.37+dfsg-1 Manipulates and accesses URI strin
ii perl 5.10.0-22 Larry Wall's Practical Extraction
ii subversion 1.5.6dfsg-1 Advanced version control system
ii unp 1.0.15 unpack (almost) everything with on
ii wget 1.11.4-2 retrieves files from the web
svn-buildpackage recommends no packages.
svn-buildpackage suggests no packages.
-- no debconf information
--- /usr/bin/svn-buildpackage.orig 2009-04-12 20:27:46.000000000 +0200
+++ /usr/bin/svn-buildpackage 2009-04-13 18:08:14.000000000 +0200
@@ -49,6 +49,7 @@
--svn-override a=b Override some config variable (comma separated list)
--svn-verbose More verbose program output
--svn-noninteractive Turn off interactive mode
+ --svn-arch ARCH Allows specifying the build architecture
-h, --help Show this help message
If the debian directory has the mergeWithUpstream property, svn-buildpackage
@@ -84,6 +85,7 @@
my $package;
my $opt_savecfg;
my $opt_dbgsdcommon;
+my $opt_architecture;
my %options = (
# "h|help" => \&help,
@@ -108,6 +110,7 @@
"svn-postbuild=s" => \$opt_postbuild,
"svn-pretag=s" => \$opt_pretag,
"svn-posttag=s" => \$opt_posttag,
+ "svn-arch:s" => \$opt_architecture,
# and for compatibility with old config directives
"pre-tag-action=s" => \$opt_pretag,
"post-tag-action=s" => \$opt_posttag,
@@ -564,7 +567,7 @@
if( ! $opt_postbuild) {
my $chfile='';
my @newfiles=();
- for my $arch ('source', `dpkg --print-architecture`) {
+ for my $arch ('source', `dpkg --print-architecture`, $opt_architecture) {
next if ! $arch;
my $file="$package"."_$tagVersionNonEpoch"."_$arch.changes";
$file=~s/\r|\n//g; # something like chomp before does not work on constant values, 'source'