summaryrefslogtreecommitdiff
path: root/libre/dpkg/dpkg-arch.patch
blob: 66e7a2ef2ce3b6510d94ba44652611bcda866b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -ru dpkg-1.16.2.orig/scripts/Dpkg/Arch.pm dpkg-1.16.2/scripts/Dpkg/Arch.pm
--- dpkg-1.16.2.orig/scripts/Dpkg/Arch.pm	2012-03-19 02:40:08.000000000 -0400
+++ dpkg-1.16.2/scripts/Dpkg/Arch.pm	2012-04-02 16:14:55.000000000 -0400
@@ -49,12 +49,7 @@
     {
 	return $build_arch if defined $build_arch;
 
-	# Note: We *always* require an installed dpkg when inferring the
-	# build architecture. The bootstrapping case is handled by
-	# dpkg-architecture itself, by avoiding computing the DEB_BUILD_
-	# variables when they are not requested.
-
-	my $build_arch = `dpkg --print-architecture`;
+	my $build_arch = `uname -m`;
 	syserr("dpkg --print-architecture failed") if $? >> 8;
 
 	chomp $build_arch;