]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Disable libatomic-ops on armel archs
authorLaszlo Boszormenyi <gcs@debian.hu>
Sun, 20 Mar 2011 07:23:22 +0000 (08:23 +0100)
committerLaszlo Boszormenyi <gcs@debian.hu>
Sun, 20 Mar 2011 07:23:22 +0000 (08:23 +0100)
armel supports ARMv4t or above instructions sets.
libatomic-ops is only usable with Ceph for ARMv6 or above.

Signed-off-by: Hector Oron <zumbi@debian.org>
debian/changelog
debian/rules

index e2be88146e1e84f41d2a66e7c238558edf187e96..c10207505633fede1c935c0c028345184ba43cb9 100644 (file)
@@ -4,6 +4,8 @@ ceph (0.26~rc-1) experimental; urgency=low
     google-perftools (closes: #614890).
   * Correct section of libcrush1, librados1, librbd1 and libceph1 to libs.
   * Make Ceph cross buildable (closes: #618939), thanks to Hector Oron.
+  * Disable libatomic-ops on ARMv4t (armel) archs to prevent FTBFS
+    (closes: #615235), thanks go to Hector Oron again.
 
  -- Laszlo Boszormenyi (GCS) <gcs@debian.hu>  Mon, 21 Mar 2011 11:34:02 -0800
 
index d40dee07a2eb7db3d33fbb1f71fa27020737ccd2..cf178d97032222fb7e68561fe422fc3402dda841 100755 (executable)
@@ -18,6 +18,14 @@ else
   confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 endif
 
+export DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifeq ($(DEB_HOST_ARCH), armel)
+  # armel supports ARMv4t or above instructions sets.
+  # libatomic-ops is only usable with Ceph for ARMv6 or above.
+  extraopts += --without-libatomic-ops
+endif
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
@@ -29,7 +37,7 @@ build-stamp: configure-stamp
 
        ./autogen.sh
        ./configure --prefix=/usr --sbindir=/sbin --localstatedir=/var \
-               --sysconfdir=/etc $(confflags)
+               --sysconfdir=/etc $(extraopts) $(confflags)
        $(MAKE)
        cp src/init-ceph debian/ceph.init
        cp src/logrotate.conf debian/ceph.logrotate