Compare commits

...

2 Commits
master ... f17

Author SHA1 Message Date
Dan Horák 0a05e8b2a2 fix detection of C++11 atomic header 2012-04-23 20:05:08 +02:00
Josef Bacik 4707fdaea8 - update to upstream 0.45 2012-04-12 16:05:23 -04:00
4 changed files with 64 additions and 7 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ ceph-0.20.tar.gz
/ceph-0.39.tar.gz
/ceph-0.43.tar.bz2
/ceph-0.44.tar.bz2
/ceph-0.45.tar.bz2

51
ceph-gxx-atomic.patch Normal file
View File

@ -0,0 +1,51 @@
diff -up ceph-0.45/src/leveldb/configure.ac.atomic ceph-0.45/src/leveldb/configure.ac
--- ceph-0.45/src/leveldb/configure.ac.atomic 2012-04-23 18:56:15.000000000 +0200
+++ ceph-0.45/src/leveldb/configure.ac 2012-04-23 19:33:27.000000000 +0200
@@ -10,11 +10,11 @@ AC_CONFIG_FILES([
])
AC_PROG_RANLIB
-AC_MSG_CHECKING(whether compiler supports C++11 cstdatomic)
+AC_MSG_CHECKING(whether compiler supports C++11 atomic)
OLD_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -std=c++0x"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-#include <cstdatomic>
+#include <atomic>
int main() {}
])], [
AC_MSG_RESULT(yes)
diff -up ceph-0.45/src/leveldb/configure.atomic ceph-0.45/src/leveldb/configure
--- ceph-0.45/src/leveldb/configure.atomic 2012-04-23 18:56:19.000000000 +0200
+++ ceph-0.45/src/leveldb/configure 2012-04-23 18:56:43.000000000 +0200
@@ -3885,15 +3885,15 @@ else
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports C++11 cstdatomic" >&5
-$as_echo_n "checking whether compiler supports C++11 cstdatomic... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports C++11 atomic" >&5
+$as_echo_n "checking whether compiler supports C++11 atomic... " >&6; }
OLD_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -std=c++0x"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <cstdatomic>
+#include <atomic>
int main() {}
_ACEOF
diff -up ceph-0.45/src/leveldb/port/atomic_pointer.h.atomic ceph-0.45/src/leveldb/port/atomic_pointer.h
--- ceph-0.45/src/leveldb/port/atomic_pointer.h.atomic 2012-04-23 18:56:54.000000000 +0200
+++ ceph-0.45/src/leveldb/port/atomic_pointer.h 2012-04-23 18:57:00.000000000 +0200
@@ -21,7 +21,7 @@
#include <stdint.h>
#ifdef LEVELDB_CSTDATOMIC_PRESENT
-#include <cstdatomic>
+#include <atomic>
#endif
#ifdef OS_WIN
#include <windows.h>

View File

@ -1,6 +1,6 @@
Name: ceph
Version: 0.44
Release: 5%{?dist}
Version: 0.45
Release: 2%{?dist}
Summary: User space components of the Ceph file system
License: LGPLv2
Group: System Environment/Base
@ -9,9 +9,8 @@ URL: http://ceph.newdream.net/
Source: http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2
Patch0: ceph-init-fix.patch
Patch1: ceph.logrotate.patch
# Upstream patch to make 0.44 build
Patch2: 0001-Makefile-fix-modules-that-cannot-find-pk11pub.h-when.patch
# http://tracker.newdream.net/issues/2329
Patch2: ceph-gxx-atomic.patch
BuildRequires: fuse-devel, libtool, libtool-ltdl-devel, boost-devel,
BuildRequires: libedit-devel, fuse-devel, git, perl, gdbm, libaio-devel,
@ -84,7 +83,7 @@ file system.
%setup -q
%patch0 -p1 -b .init
%patch1 -p0
%patch2 -p1 -b .build
%patch2 -p1 -b .atomic
%build
./autogen.sh
@ -253,6 +252,12 @@ fi
%{_bindir}/boto_tool
%changelog
* Mon Apr 23 2012 Dan Horák <dan[at]danny.cz> - 0.45-2
- fix detection of C++11 atomic header
* Thu Apr 12 2012 Josef Bacik <josef@toxicpanda.com> - 0.45-1
- updating to upstream 0.45
* Wed Apr 4 2012 Niels de Vos <devos@fedoraproject.org> - 0.44-5
- Add LDFLAGS=-lpthread on any ARM architecture
- Add CFLAGS=-DAO_USE_PTHREAD_DEFS on ARMv5tel

View File

@ -1 +1 @@
17a09359e049f9c4ae98eab7c9bd876c ceph-0.44.tar.bz2
cb15526c87a3c7c8bd739a81be618e26 ceph-0.45.tar.bz2