Package: ceph
Version: 0.24.3
Severity: wishlist
Tags: patch

Hello,

  Working out a FTBFS on armel, I realized the package does not
support cross compilation. Hence, find attached patch which implements
cross compilation.

Best regards

*** Downloads/add-cross-compile-support.patch
--- ceph-0.24.3/debian/rules    2011-03-19 17:51:02.000000000 +0000
+++ ceph-0.24.3.fix/debian/rules        2011-03-19 18:11:21.000000000 +0000
@@ -8,6 +8,15 @@
   MAKEFLAGS += -j$(NUMJOBS)
 endif
 
+export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+# Recommended snippet for Autoconf 2.52 or later
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  confflags += --build $(DEB_HOST_GNU_TYPE)
+else
+  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
 
 configure: configure-stamp
 configure-stamp:
@@ -19,7 +28,8 @@
        dh_testdir
 
        ./autogen.sh
-       ./configure --prefix=/usr --sbindir=/sbin --localstatedir=/var 
--sysconfdir=/etc
+       ./configure --prefix=/usr --sbindir=/sbin --localstatedir=/var \
+               --sysconfdir=/etc $(confflags)
        $(MAKE)
        cp src/init-ceph debian/ceph.init
        cp src/logrotate.conf debian/ceph.logrotate
--- ceph-0.24.3/debian/changelog        2011-03-19 17:51:02.000000000 +0000
+++ ceph-0.24.3.fix/debian/changelog    2011-03-19 18:13:43.000000000 +0000
@@ -1,3 +1,9 @@
+ceph (0.24.3-3) unstable; urgency=low
+
+  * Add cross compilation support. 
+
+ -- Hector Oron <zu...@debian.org>  Sat, 19 Mar 2011 18:13:12 +0000
+
 ceph (0.24.3-2) unstable; urgency=low
 
   * Make Ceph Linux only and build on all Linux archs (closes: #614890).



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to