The following commit has been merged in the master branch:
commit 773e6dcc0e8fcbd0f185f95d27184e9979a2411e
Author: Guillem Jover <guil...@debian.org>
Date:   Sat Jul 30 18:35:03 2011 +0200

    build: Error out if the host dpkg architecture cannot be determined
    
    Continuing will only produce a buggy dpkg.

diff --git a/m4/dpkg-arch.m4 b/m4/dpkg-arch.m4
index b94a883..8a490fa 100644
--- a/m4/dpkg-arch.m4
+++ b/m4/dpkg-arch.m4
@@ -57,7 +57,11 @@ AC_DEFUN([DPKG_ARCHITECTURE],
 DPKG_OS_TYPE
 AC_MSG_CHECKING([dpkg architecture name])
 _DPKG_ARCHITECTURE([DEB_HOST_ARCH], [dpkg_arch])
-AC_MSG_RESULT([$dpkg_arch])
+if test "x$dpkg_arch" = "x"; then
+       AC_MSG_ERROR([cannot determine host dpkg architecture])
+else
+       AC_MSG_RESULT([$dpkg_arch])
+fi
 AC_DEFINE_UNQUOTED(ARCHITECTURE, "${dpkg_arch}",
        [Set this to the canonical dpkg architecture name.])
 ])# DPKG_ARCHITECTURE

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to