Package: tcp-wrappers
Version: 7.6.dbs-14
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 tcp-wrappers to correctly
identify the cross compiler.

Thanks.

--- tcp-wrappers-7.6.dbs/debian/rules 
+++ tcp-wrappers.new/debian/rules 
@@ -9,6 +9,13 @@
 W := $(CURDIR)/debian/libwrap0
 WD := $(CURDIR)/debian/libwrap0-dev
 
+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
 
 DEB_BUILD_ARCH := $(shell dpkg --print-installation-architecture)
 ifeq ($(filter-out hurd-%,$(DEB_BUILD_ARCH)),)
@@ -41,7 +48,7 @@
 $(STAMP_DIR)/build: $(STAMP_DIR)/unpack
        dh_testdir
        NOISY=1 \
-       $(MAKE) -f debian/sys-build.mk source.command SOURCE_CMD=" \
+       $(MAKE) $(CROSS) -f debian/sys-build.mk source.command SOURCE_CMD=" \
                $(MAKE) $(DEB_BUILD_GNU_SYSTEM) \
        "
        touch $@



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

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpiV7t0oNKEU.pgp
Description: PGP signature

Reply via email to