summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-10-18 21:58:13 +0000
committerJeroen Roovers <jer@gentoo.org>2011-10-18 21:58:13 +0000
commite443a8caa469195351ec7f137fe4931fdb6c98c1 (patch)
treeac706658c7d776c7f9426745ba8bdd64f9baac2c /app-arch/dpkg/files
parentDrop old, bug 387545 (diff)
downloadgentoo-2-e443a8caa469195351ec7f137fe4931fdb6c98c1.tar.gz
gentoo-2-e443a8caa469195351ec7f137fe4931fdb6c98c1.tar.bz2
gentoo-2-e443a8caa469195351ec7f137fe4931fdb6c98c1.zip
Add rewritten bootstrap patch (bug #386949).
(Portage version: 2.2.0_alpha69/cvs/Linux x86_64)
Diffstat (limited to 'app-arch/dpkg/files')
-rw-r--r--app-arch/dpkg/files/dpkg-1.16.1-bootstrap.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/app-arch/dpkg/files/dpkg-1.16.1-bootstrap.patch b/app-arch/dpkg/files/dpkg-1.16.1-bootstrap.patch
new file mode 100644
index 000000000000..71e224b2d733
--- /dev/null
+++ b/app-arch/dpkg/files/dpkg-1.16.1-bootstrap.patch
@@ -0,0 +1,23 @@
+--- a/m4/dpkg-arch.m4 2011-10-12 07:56:03.000000000 +0200
++++ b/m4/dpkg-arch.m4 2011-10-18 23:36:24.311829478 +0200
+@@ -9,7 +9,7 @@
+ AC_REQUIRE([DPKG_PROG_PERL])dnl
+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
+ $2=$(cd $srcdir/scripts; \
+- PERL5LIB=$(pwd) $PERL dpkg-architecture.pl -t$host -q$1 2>/dev/null)
++ pkgdatadir=.. PERL5LIB=$(pwd) $PERL dpkg-architecture.pl -t$host -q$1 2>/dev/null)
+ ])# _DPKG_ARCHITECURE
+
+ # DPKG_CPU_TYPE
+--- a/scripts/Dpkg/Arch.pm 2011-10-14 06:58:09.000000000 +0200
++++ b/scripts/Dpkg/Arch.pm 2011-10-18 23:38:13.714474150 +0200
+@@ -50,8 +50,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;