From 52a2b9bf64da5f8cf4edff142b86f325439a39b4 Mon Sep 17 00:00:00 2001 From: Dan Horák Date: Oct 07 2013 10:08:23 +0000 Subject: - fix build on non-x86_64 64-bit arches --- diff --git a/ceph-non-x86_64.patch b/ceph-non-x86_64.patch new file mode 100644 index 0000000..33daf98 --- /dev/null +++ b/ceph-non-x86_64.patch @@ -0,0 +1,23 @@ +diff -up ceph-0.67.3/src/common/crc32c-intel.c.secondary ceph-0.67.3/src/common/crc32c-intel.c +--- ceph-0.67.3/src/common/crc32c-intel.c.secondary 2013-10-07 10:15:22.000000000 +0200 ++++ ceph-0.67.3/src/common/crc32c-intel.c 2013-10-07 10:16:00.000000000 +0200 +@@ -7,8 +7,8 @@ + #include + + +-/* this probably isn't specific enough for x86_64? fix me someday */ +-#ifdef __LP64__ ++/* this probably is specific enough for x86_64 */ ++#ifdef __x86_64__ + + /* + * * Based on a posting to lkml by Austin Zhang +@@ -98,7 +98,7 @@ int ceph_have_crc32c_intel(void) + return 0; + } + +-#else /* __LP64__ */ ++#else /* __x86_64__ */ + + uint32_t ceph_crc32c_le_intel(uint32_t crc, unsigned char const *data, unsigned length) + { diff --git a/ceph.spec b/ceph.spec index ec4cc9f..c3c9f86 100644 --- a/ceph.spec +++ b/ceph.spec @@ -1,6 +1,6 @@ Name: ceph Version: 0.67.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: User space components of the Ceph file system License: LGPLv2 Group: System Environment/Base @@ -10,6 +10,7 @@ Source: http://ceph.com/download/%{name}-%{version}.tar.bz2 Patch0: ceph-init-fix.patch Patch1: ceph-build-support-for-automake-1.12.patch Patch2: ceph-fix-sbin-target.patch +Patch3: ceph-non-x86_64.patch BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel, BuildRequires: libedit-devel, fuse-devel, git, perl, gdbm, libaio-devel, @@ -77,6 +78,7 @@ conjunction with any FastCGI capable web server. %patch0 -p1 -b .init %patch1 -p1 %patch2 -p1 +%patch3 -p1 -b .non-x86_64 %build ./autogen.sh @@ -273,6 +275,9 @@ fi %{_sysconfdir}/bash_completion.d/radosgw-admin %changelog +* Mon Oct 07 2013 Dan Horák - 0.67.3-2 +- fix build on non-x86_64 64-bit arches + * Wed Sep 11 2013 Josef Bacik - 0.67.3-1 - update to 0.67.3