Package: ncurses
Version: 5.5-1
Severity: important
Tags: Patch

Hi,

Since version 5.5-1, ncurses does not build on hurd-i386 and as these
arches does not support bi-arch. Thus 64-bit versions of the packages
should not be build on these arches.

Please find attached a patch to use the debian architecture instead of
the GNU cpu to determine if the 64-bit packages should be built.

Thanks,
Aurelien

-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
diff -u ncurses-5.5/debian/rules ncurses-5.5/debian/rules
--- ncurses-5.5/debian/rules
+++ ncurses-5.5/debian/rules
@@ -41,23 +41,24 @@
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 DEB_HOST_GNU_SYSTEM ?= $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-ifeq ($(DEB_HOST_GNU_CPU),i486)
+ifeq ($(DEB_HOST_ARCH),i386)
 build_64_target = x86_64-$(DEB_HOST_GNU_SYSTEM)
 build_64 = build-64
 endif
 
-ifeq ($(DEB_HOST_GNU_CPU),powerpc)
+ifeq ($(DEB_HOST_ARCH),powerpc)
 build_64_target = powerpc64-$(DEB_HOST_GNU_SYSTEM)
 build_64 = build-64
 endif
 
-ifeq ($(DEB_HOST_GNU_CPU),s390)
+ifeq ($(DEB_HOST_ARCH),s390)
 build_64_target = s390x-$(DEB_HOST_GNU_SYSTEM)
 build_64 = build-64
 endif
 
-ifeq ($(DEB_HOST_GNU_CPU),sparc)
+ifeq ($(DEB_HOST_ARCH),sparc)
 build_64_target = sparc64-$(DEB_HOST_GNU_SYSTEM)
 build_64 = build-64
 endif

Reply via email to