Package: dhcp3
Version: 3.0.6.dfsg-1
Severity: wishlist
Tags: patch
dhcp3 needs a simple patch to support cross-building by detecting
the cross environment in debian/rules and passing a modified $(CC) to
$(MAKE).
This occurs because the cross building tools have been rewritten to
support CC_FOR_BUILD for packages that compile internal build tools
and therefore the tools no longer explicitly override the MAKEFLAGS.
Thanks.
*** crossbuild.diff
--- dhcp3-3.0.6.dfsg/debian/rules
+++ dhcp3.new/debian/rules
@@ -7,6 +7,14 @@
#export DH_VERBOSE=1
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
DESTDIR = `pwd`/debian/tmp
@@ -55,7 +63,7 @@
./configure --copts "$(CFLAGS)"
#CFLAGS="$(CFLAGS)" sh -x debian/scripts/insert_cflags.sh patch
#cat site.conf
- $(MAKE) $(BVARS)
+ $(MAKE) $(BVARS) $(CROSS)
cp debian/dhclient-script.$(DEB_HOST_ARCH_OS) client/scripts/debian
@@ -84,7 +92,7 @@
dh_installdirs -A
# Add here commands to install the package into debian/tmp.
- $(MAKE) install $(IVARS)
+ $(MAKE) $(CROSS) install $(IVARS)
mkdir -p $(DESTDIR)/etc/dhcp3
-- 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
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]