Bug#666892: cron: Cross-building support for cron

2012-04-09 Thread Javier Fernández-Sanguino Peña
tag 666892 pending
thanks

On Mon, Apr 02, 2012 at 01:25:36AM -0700, Steve Langasek wrote:
 In Ubuntu, the attached patch was applied to add support for cross-building
 cron.  cron has a very simple build system, so it's a very simple patch; all
 that's required to let cron cross-build is to tell the makefile where the
 cross-compiler is.
 
 Please consider including this patch in Debian as well.

Thanks Steve,

I have applied the patch to our GIT repo [1]. The fix should be available in
the next package upload of cron (version 3.0pl1-122).

Regards

Javier


[1] commit 24f9c8fcc95e271d94e19dacc57afd82b82fbba7


signature.asc
Description: Digital signature


Bug#666892: cron: Cross-building support for cron

2012-04-02 Thread Steve Langasek
Package: cron
Version: 3.0pl1-120
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu precise ubuntu-patch

Hi guys,

In Ubuntu, the attached patch was applied to add support for cross-building
cron.  cron has a very simple build system, so it's a very simple patch; all
that's required to let cron cross-build is to tell the makefile where the
cross-compiler is.

Please consider including this patch in Debian as well.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org
=== modified file 'debian/changelog'

=== modified file 'debian/rules'
--- debian/rules	2011-10-20 07:57:06 +
+++ debian/rules	2012-04-02 07:11:15 +
@@ -8,6 +8,12 @@
 # Set system type (Linux, HURD, etc.)
 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))
+export CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
+
 # Standard compiler flags 
 CFLAGS += -Wall -Wno-unused -Wno-comment