Package: at Version: 3.1.10.1 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 at to cross-build in Debian. The change is based on recommendations in autotools-dev, so that --build is always passed and --host is conditional. In addition, $(MAKE) is passed the identity of the cross compiler, when used. *** ../crossbuild.diff --- at-3.1.10.1.debian/debian/rules +++ at-3.1.10.1.emdebian/debian/rules @@ -16,6 +16,13 @@ # Foundation Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA SHELL=/bin/bash +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) +CROSSCC=CC=$(DEB_HOST_GNU_TYPE)-gcc +else +CROSS= --build=$(DEB_BUILD_GNU_TYPE) +endif + # The name and version of the source # source = $(shell grep "^Source: " debian/control|head -1|sed 's/Source: \(.*\)/\1/g') @@ -28,13 +35,13 @@ build: -test -f config.cache || PATH=/usr/sbin:$${PATH} ./configure --prefix=/usr \ - --with-loadavg_mx=1.5 \ + --with-loadavg_mx=1.5 $(CROSS) \ --with-jobdir=/var/spool/cron/atjobs \ --with-atspool=/var/spool/cron/atspool sed 's,/usr/lib/sendmail,/usr/sbin/sendmail,g' \ < config.h > config.h.new mv -f config.h.new config.h - $(MAKE) + $(MAKE) $(CROSSCC) touch stamp-build clean: debclean @@ -56,7 +63,7 @@ #cd debian/tmp/usr/share/man/man5 && ln -s at_allow.5.gz at_deny.5.gz && rm -f at_deny.5 binary-arch: debclean - test -f stamp-build || $(MAKE) -f debian/rules build + test -f stamp-build || $(MAKE) $(CROSSCC) -f debian/rules build $(installbin) -d debian/tmp/DEBIAN chown -R root:root debian/tmp chmod -R g-ws debian/tmp -- 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 Versions of packages at depends on: ii exim4-daemon-light [mail-tran 4.69-5+b1 lightweight Exim MTA (v4) daemon ii libc6 2.7-11 GNU C Library: Shared libraries ii libpam0g 0.99.7.1-6 Pluggable Authentication Modules l ii lsb-base 3.2-12 Linux Standard Base 3.2 init scrip at recommends no packages. -- no debconf information
signature.asc
Description: Digital signature