summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt-1.0.9.9/use-host.patch
blob: b30fcff0d6395b4d167d4948d3f288deede6ebd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Upstream-Status: Pending

Index: apt-0.9.7.7/configure.ac
===================================================================
--- apt-0.9.7.7.orig/configure.ac
+++ apt-0.9.7.7/configure.ac
@@ -112,7 +112,7 @@ dnl This is often the dpkg architecture
 dnl First check against the full canonical canoncial-system-type in $target
 dnl and if that fails, just look for the cpu
 AC_MSG_CHECKING(debian architecture)
-archset="`dpkg-architecture -qDEB_HOST_ARCH`"
+archset="`echo $host_alias|cut -d'-' -f1`"
 if test "x$archset" = "x"; then
    AC_MSG_ERROR([failed: use --host= or output from dpkg-architecture])
 fi