Package: base-passwd Version: 3.5.13 Severity: wishlist Tags: patch As part of the long term mass bug filing for cross building support, (http://lists.debian.org/debian-devel/2007/11/msg00116.html), I've prepared this patch for debian/rules.
The cross building support in Debian has been recently rewritten - particularly in respect of how environment variables and overrides are handled - so this patch is now needed to allow base-passwd to correctly identify the cross compiler. Please consider implementing this patch. Thanks. *** crossbuild.diff --- base-passwd-3.5.14/debian/rules +++ base-passwd.new/debian/rules @@ -7,6 +7,16 @@ # Other stuff SHELL = /bin/bash + +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= +CC=gcc +endif .PHONY: all build all build: Makefile @@ -31,7 +41,7 @@ endif Makefile: Makefile.in configure.ac - CFLAGS="$(CFLAGS)" ./configure + CC=$(CC) CFLAGS="$(CFLAGS)" ./configure $(CROSS) .PHONY: binary binary: binary-arch binary-indep -- 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 base-passwd depends on: ii libc6 2.6.1-6 GNU C Library: Shared libraries base-passwd recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]