On Tue, 13 Nov 2007, Neil Williams wrote:

> 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
> +

Seems a little bit longer than required.

Would it work if both --build and --host are always used and only CC
is redefined ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) ?



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

Reply via email to