Sisyphus repository
Last update: 15 december 2017 | SRPMs: 18225 | Visits: 10576613
en ru br
ALT Linux repos
S:1.18.7-alt2
5.0: 1.14.7-alt2
4.1: 1.14.7-alt2
4.0: 1.13.11-alt0.1
3.0: 1.6.15-alt6

Group :: System/Configuration/Packaging
RPM: dpkg

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: gentoo-bug-289094.patch
Download


diff -Nur dpkg-1.15.5.6.org/m4/dpkg-arch.m4 dpkg-1.15.5.6/m4/dpkg-arch.m4
--- dpkg-1.15.5.6.org/m4/dpkg-arch.m4	2010-01-08 18:23:06.000000000 +0100
+++ dpkg-1.15.5.6/m4/dpkg-arch.m4	2010-02-05 08:13:09.000000000 +0100
@@ -5,7 +5,7 @@
 AC_DEFUN([_DPKG_ARCHITECTURE], [
 AC_REQUIRE([AC_CANONICAL_HOST])dnl
 $2=$(cd $srcdir/scripts; \
-    PERL5LIB=$(pwd) ./dpkg-architecture.pl -t$host -q$1 2>/dev/null)
+    pkgdatadir=.. PERL5LIB=$(pwd) ./dpkg-architecture.pl -t$host -q$1 2>/dev/null)
 ])# _DPKG_ARCHITECURE
 
 # DPKG_CPU_TYPE
diff -Nur dpkg-1.15.5.6.org/scripts/Dpkg/Arch.pm dpkg-1.15.5.6/scripts/Dpkg/Arch.pm
--- dpkg-1.15.5.6.org/scripts/Dpkg/Arch.pm	2010-01-08 09:00:34.000000000 +0100
+++ dpkg-1.15.5.6/scripts/Dpkg/Arch.pm	2010-02-05 08:49:42.000000000 +0100
@@ -47,8 +47,7 @@
 	return $build_arch if defined $build_arch;
 
 	my $build_arch = `dpkg --print-architecture`;
-	# FIXME: Handle bootstrapping
-	syserr("dpkg --print-architecture failed") if $? >> 8;
+	if ($? >> 8) { $build_arch = get_raw_host_arch(); }
 
 	chomp $build_arch;
 	return $build_arch;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin