Package: dialog
Version: 1.1-20070930-1
Severity: wishlist
Tags: patch

dialog needs a simple patch to support cross-building by detecting
the cross environment in debian/rules and passing --build and 
--host to ./configure.

This occurs because the cross building tools have been rewritten to
support CC_FOR_BUILD for packages that compile internal build tools 
and therefore the tools no longer explicitly override the MAKEFLAGS.

Thanks.


*** crossbuild.diff
--- dialog-1.1-20071028/debian/rules 
+++ dialog.new/debian/rules 
@@ -24,6 +24,15 @@
 INSTALL_SCRIPT = install
 STRIP = true
 
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+CC=$(DEB_HOST_GNU_TYPE)-gcc
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
   CFLAGS += -O2
 endif
@@ -34,7 +43,7 @@
 
 build:
        CC="$(CC)" CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
-               --enable-nls --with-ncursesw
+               --enable-nls --with-ncursesw $(CROSS)
        $(MAKE)
        touch build
 


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dialog depends on:
ii  debianutils               2.27           Miscellaneous utilities specific t
ii  libc6                     2.6.1-6        GNU C Library: Shared libraries
ii  libncursesw5              5.6+20071013-1 Shared libraries for terminal hand

dialog recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to