- fix build on non-x86_64 64-bit arches

This commit is contained in:
Dan Horák 2013-10-07 12:08:23 +02:00
parent 7d8598d9d5
commit 52a2b9bf64
2 changed files with 29 additions and 1 deletions

23
ceph-non-x86_64.patch Normal file
View File

@ -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 <sys/wait.h>
-/* 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 <austin.zhang@intel.com>
@@ -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)
{

View File

@ -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 <dan[at]danny.cz> - 0.67.3-2
- fix build on non-x86_64 64-bit arches
* Wed Sep 11 2013 Josef Bacik <josef@toxicpanda.com> - 0.67.3-1
- update to 0.67.3