Package: mktemp
Version: 1.5-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 mktemp to cross-build in Debian,
following the recommendation in autotools-dev and adding a cache file
that needs to be handled separately.

Thanks.


*** ../crossbuild.diff
--- mktemp-1.5.debian/debian/rules 
+++ mktemp-1.5.emdebian/debian/rules 
@@ -16,6 +16,12 @@
 
 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=$(DEB_HOST_GNU_TYPE).cache
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
@@ -23,7 +29,7 @@
        CFLAGS += -O2
 endif
 
-CONFIGFLAGS = --prefix=/usr --mandir=\$${prefix}/share/man --bindir=/bin
+CONFIGFLAGS = --prefix=/usr --mandir=\$${prefix}/share/man --bindir=/bin 
$(CROSS)
 
 config.status: configure
        $(checkdir)


-- 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 mktemp depends on:
ii  libc6                         2.7-6      GNU C Library: Shared libraries

mktemp recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to