Package: procps Version: 1:3.2.7-5 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 wget to correctly identify the cross compiler. --- procps-3.2.7/debian/rules +++ procps.new/debian/rules @@ -12,7 +12,13 @@ DEBROOT=$(CURDIR)/debian/procps DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) - +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 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif @@ -25,10 +31,10 @@ # Add here commands to compile the package. mkdir static - $(MAKE) lib64=lib SHARED=0 proc/libproc.a + $(MAKE) $(CROSS) lib64=lib SHARED=0 proc/libproc.a mv proc/libproc.a static $(MAKE) clean - $(MAKE) W_SHOWFROM=\-DW_SHOWFROM lib64=lib + $(MAKE) $(CROSS) W_SHOWFROM=\-DW_SHOWFROM lib64=lib touch build-stamp @@ -50,7 +56,7 @@ dh_installdirs # Add here commands to install the package into debian/procps. - $(MAKE) lib64=lib ln_f="ln -sf" ldconfig=echo DESTDIR=$(DEBROOT) install + $(MAKE) $(CROSS) lib64=lib ln_f="ln -sf" ldconfig=echo DESTDIR=$(DEBROOT) install install --mode 644 -o root -g root debian/sysctl.conf $(DEBROOT)/etc/ cp debian/lintian $(DEBROOT)/usr/share/lintian/overrides/procps --- 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 libncurses5 (>= 5.6) | 5.6+20071013-1 lsb-base (>= 3.0-10) | 3.1-24 -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
pgpufRQWCsEF0.pgp
Description: PGP signature

