Package: cron
Version: 3.0pl1-103
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 cron to cross-build in Debian.

Thanks.

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

Versions of packages cron depends on:
ii  adduser                       3.105      add and remove users and groups
ii  debianutils                   2.28.3     Miscellaneous utilities specific t
ii  libc6                         2.7-6      GNU C Library: Shared libraries
ii  libpam0g                      0.99.7.1-5 Pluggable Authentication Modules l
ii  libselinux1                   2.0.35-1   SELinux shared libraries
ii  lsb-base                      3.1-24     Linux Standard Base 3.1 init scrip

Versions of packages cron recommends:
ii  exim4                         4.69-2     meta-package to ease Exim MTA (v4)
ii  exim4-daemon-light [mail-tran 4.69-2     lightweight Exim MTA (v4) daemon

-- no debconf information
--- cron-3.0pl1.debian/debian/rules 
+++ cron-3.0pl1.emdebian/debian/rules 
@@ -5,6 +5,12 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
+else
+CROSS=
+endif
 
 DEB_OPTIM= -O2 -g -Wall -Wno-comment
 DEB_INSTALL = install
@@ -60,7 +66,7 @@
 	rm -rf b-cron
 	mkdir b-cron
 	# Add here commands to compile the package.
-	$(MAKE) -C b-cron -f ../Makefile OPTIM="$(DEB_OPTIM)" DEBUG_DEFS="$(DEB_DEBUG_DEFS)" VPATH=.. INCLUDE=-I.. 
+	$(MAKE) $(CROSS) -C b-cron -f ../Makefile OPTIM="$(DEB_OPTIM)" DEBUG_DEFS="$(DEB_DEBUG_DEFS)" VPATH=.. INCLUDE=-I.. 
 	touch $@
 
 build-cron-se: b-cron-se/build-stamp
@@ -71,7 +77,7 @@
 	cp debian/cron-se.overrides b-cron-se/cron-se
 	cd b-cron-se
 	# Add here commands to compile the package.
-	SELINUX_DEFS="-DWITH_SELINUX" SELINUX_LIBS=-lselinux $(MAKE) -C b-cron-se -f ../Makefile OPTIM="$(DEB_OPTIM)" DEBUG_DEFS="$(DEB_DEBUG_DEFS)" VPATH=.. INCLUDE=-I..
+	SELINUX_DEFS="-DWITH_SELINUX" SELINUX_LIBS=-lselinux $(MAKE) $(CROSS) -C b-cron-se -f ../Makefile OPTIM="$(DEB_OPTIM)" DEBUG_DEFS="$(DEB_DEBUG_DEFS)" VPATH=.. INCLUDE=-I..
 	touch $@
 
 clean:

Attachment: signature.asc
Description: Digital signature

Reply via email to