Package: util-linux
Version: 2.13.1-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 util-linux to cross-build in Debian,
following recommendations in autotools-dev. The cache file will be
handled separately.

Thanks.


*** ../crossbuild.diff
--- util-linux-2.13.1.debian/debian/rules 
+++ util-linux-2.13.1.emdebian/debian/rules 
@@ -6,6 +6,14 @@
 #export DH_VERBOSE=1
 
 DISTRO :=$(shell lsb_release -is 2>/dev/null || echo Debian)
+
+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) 
--cache-file=$(DEB_HOST_GNU_TYPE).cache
+else
+CROSS=
+endif
 
 ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 STRIP=y
@@ -35,7 +43,7 @@
 configure: configure-stamp
 configure-stamp:
        dh_testdir
-       ./configure $(CONFOPTS)
+       ./configure $(CONFOPTS) $(CROSS)
        touch configure-stamp
 
 build: configure-stamp build-stamp


-- 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/2 CPU cores)
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 util-linux depends on:
ii  libc6                  2.7-6             GNU C Library: Shared libraries
ii  libncurses5            5.6+20080203-1    Shared libraries for terminal hand
ii  libselinux1            2.0.35-1          SELinux shared libraries
ii  libslang2              2.1.3-2           The S-Lang programming library - r
ii  libuuid1               1.40.5-2          universally unique id library
ii  lsb-base               3.1-24            Linux Standard Base 3.1 init scrip
ii  tzdata                 2007k-3           time zone and daylight-saving time
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

util-linux recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to