Package: keyutils Version: 1.2-5 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: crossbuilt
In line with the other cross-building support bugs: http://lists.debian.org/debian-devel/2007/11/msg00116.html This patch is necessary to allow keyutils to cross-build in Debian and follows recommendations from autotools-dev. Thanks. *** ../crossbuild.diff --- keyutils-1.2.debian/debian/rules +++ keyutils-1.2.emdebian/debian/rules @@ -3,6 +3,13 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +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=CC=$(DEB_HOST_GNU_TYPE)-gcc +else +CROSS= +endif CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) @@ -16,7 +23,7 @@ dh_testdir # Building package - CFLAGS="$(CFLAGS)" $(MAKE) + CFLAGS="$(CFLAGS)" $(MAKE) $(CROSS) touch build-stamp -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
signature.asc
Description: Digital signature

