Package: lzma
Version: 4.43-9
Severity: wishlist
Tags: patch

As part of the long term mass bug filing for cross building support,
(http://lists.debian.org/debian-devel/2007/11/msg00116.html), I've
prepared this patch for debian/rules.

The cross building support in Debian has been recently rewritten -
particularly in respect of how environment variables and overrides are
handled - so this patch is now needed to allow lzma to correctly
identify the cross compiler.

Please consider implementing this patch. Thanks.


*** crossbuild.diff
--- lzma-4.43/debian/rules 
+++ lzma.new/debian/rules 
@@ -3,6 +3,14 @@
 
 # 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=CXX=$(DEB_HOST_GNU_TYPE)-g++ CXX_C=$(DEB_HOST_GNU_TYPE)-gcc
+else
+CROSS=
+endif
 
 build: build-stamp
 
@@ -11,7 +19,7 @@
 
        # Add here commands to compile the package.
        QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
-       $(MAKE) -C C/7zip/Compress/LZMA_Alone/ -f makefile.gcc
+       $(MAKE) $(CROSS) -C C/7zip/Compress/LZMA_Alone/ -f makefile.gcc
 
        touch 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

Versions of packages lzma depends on:
ii  libc6                         2.6.1-6    GNU C Library: Shared libraries
ii  libgcc1                       1:4.2.2-3  GCC support library
ii  libstdc++6                    4.2.2-3    The GNU Standard C++ Library v3

lzma recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to