Bug#451136: devmapper: mass bug filing for cross-build support
Neil Williams
codehelp at debian.org
Tue Nov 13 16:04:15 UTC 2007
Package: devmapper
Version: 2:1.02.20-2
Severity: wishlist
Tags: patch
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 devmapper to cross-build in Debian.
(The cache file is handled internally by Emdebian until such time as
another method can be devised but the use of the --cache-file option
will remain.)
This occurs because the cross building tools have been rewritten to
support CC_FOR_BUILD for packages that compile internal build tools
and therefore the tools no longer explicitly override the MAKEFLAGS.
Thanks.
*** ../crossbuild.diff
--- devmapper-1.02.20/debian/rules
+++ devmapper.new/debian/rules
@@ -2,6 +2,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= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) --cache-file=$(DEB_HOST_GNU_TYPE).cache
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
@@ -26,7 +34,7 @@
cp -al $(filter-out debian, $(wildcard *)) $(DIR)
cp --remove-destination /usr/share/misc/config.sub /usr/share/misc/config.guess $(DIR)/autoconf
cd $(DIR); \
- ./configure \
+ ./configure $(CROSS) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
-- 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
More information about the pkg-lvm-maintainers
mailing list