Package: curl
Version: 7.18.0-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 curl to cross-build in Debian - it also
follows the recommendation from autotools-dev and removes the
unnecessary use of --host when not crossbuilding.

Thanks.


*** ../crossbuild.diff
--- curl-7.18.0.debian/debian/rules 
+++ curl-7.18.0.emdebian/debian/rules 
@@ -17,6 +17,12 @@
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) 
--with-random=/dev/urandom
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
 DO_TEST=no
 ifeq (${DEB_BUILD_GNU_TYPE},${DEB_HOST_GNU_TYPE})
 ifneq (${DEB_BUILD_ARCH},m68k)
@@ -32,7 +38,7 @@
 
 SHLIBS_VERSION=7.16.2-1
 
-CONFIGURE_ARGS = --host=${DEB_HOST_GNU_TYPE} --build=${DEB_BUILD_GNU_TYPE} 
--prefix=/usr --mandir=/usr/share/man 
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt 
--disable-dependency-tracking --enable-ipv6 --enable-ldaps --enable-manual 
--enable-versioned-symbols
+CONFIGURE_ARGS = $(CROSS) --prefix=/usr --mandir=/usr/share/man 
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt 
--disable-dependency-tracking --enable-ipv6 --enable-ldaps --enable-manual 
--enable-versioned-symbols
 
 ifneq (${DEB_BUILD_ARCH_OS},hurd)
 GSSAPI_ARGS += --with-gssapi=/usr


-- 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 curl depends on:
ii  libc6                 2.7-6              GNU C Library: Shared libraries
ii  libcurl3              7.18.0-1           Multi-protocol file transfer libra
ii  libkrb53              1.6.dfsg.3~beta1-2 MIT Kerberos runtime libraries
ii  zlib1g                1:1.2.3.3.dfsg-11  compression library - runtime

curl recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to