Package: libtextwrap Version: 0.1-6 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 libtextwrap to cross-build in Debian and follows guidelines from autotools-dev. *** ../crossbuild.diff --- libtextwrap-0.1.debian/debian/rules +++ libtextwrap-0.1.emdebian/debian/rules @@ -5,6 +5,13 @@ # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 +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= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) @@ -34,7 +41,7 @@ libtoolize --copy --force automake-1.7 -i -a -c -f autoconf - ./configure --prefix=/usr --mandir=/usr/share/man + ./configure $(CROSS) --prefix=/usr --mandir=/usr/share/man touch configure-stamp build: build-stamp -- 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
signature.asc
Description: Digital signature

