Package: traceroute Version: 2.0.9-2 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: crossbuilt
--- Please enter the report below this line. --- 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 traceroute to correctly identify the cross compiler. Thanks. --- traceroute-2.0.9/debian/rules +++ traceroute.new/debian/rules @@ -4,6 +4,14 @@ #export DH_VERBOSE=1 include /usr/share/dpatch/dpatch.make + +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 LDFLAGS=-L../libsupp/ +else +CROSS= +endif CFLAGS = -Wall -g @@ -18,7 +26,7 @@ dh_testdir # Building package - CFLAGS="$(CFLAGS)" $(MAKE) + CFLAGS="$(CFLAGS)" $(MAKE) $(CROSS) touch build-stamp --- System information. --- Architecture: powerpc Kernel: Linux 2.6.22-3-powerpc Debian Release: lenny/sid 500 unstable www.linux.codehelp.co.uk 500 unstable www.emdebian.org 500 unstable ftp.uk.debian.org 500 experimental www.emdebian.org --- Package information. --- Depends (Version) | Installed =========================-+-============= libc6 (>= 2.6.1-1) | 2.6.1-6 -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
pgpUJrcS49trC.pgp
Description: PGP signature