[mongodb/f15/master] added nonce patch
Nathaniel McCallum
npmccallum at fedoraproject.org
Wed Feb 16 19:50:58 UTC 2011
commit a3a35b2df014cc0a70f3a694b3ef5dad1df0eb25
Author: Nathaniel McCallum <nathaniel at natemccallum.com>
Date: Wed Feb 16 13:51:00 2011 -0600
added nonce patch
mongodb.spec | 8 +++++++-
nonce_fix.patch | 10 ++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/mongodb.spec b/mongodb.spec
index 8b684de..76280c3 100644
--- a/mongodb.spec
+++ b/mongodb.spec
@@ -4,7 +4,7 @@
%global daemon mongod
Name: mongodb
Version: 1.7.5
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: High-performance, schema-free document-oriented database
Group: Applications/Databases
License: AGPLv3 and zlib and ASL 2.0
@@ -17,6 +17,7 @@ Source0: http://fastdl.mongodb.org/src/%{name}-src-r%{version}.tar.gz
Source1: %{name}.init
Source2: %{name}.logrotate
Source3: %{name}.conf
+Patch0: nonce_fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
@@ -89,6 +90,8 @@ software, default configuration files, and init scripts.
%prep
%setup -q -n mongodb-src-r%{version}
+%patch0 -b .nonce
+
# spurious permissions
chmod -x README
chmod -x db/repl/rs_exception.h
@@ -201,6 +204,9 @@ fi
%{_includedir}/mongo
%changelog
+* Wed Feb 16 2011 Nathaniel McCallum <nathaniel at natemccallum.com> - 1.7.5-5
+- Add nonce patch
+
* Sun Feb 13 2011 Nathaniel McCallum <nathaniel at natemccallum.com> - 1.7.5-4
- Manually define to use boost-fs v2
diff --git a/nonce_fix.patch b/nonce_fix.patch
new file mode 100644
index 0000000..b10a23d
--- /dev/null
+++ b/nonce_fix.patch
@@ -0,0 +1,10 @@
+--- db/nonce.cpp.~1~ 2011-02-14 17:24:45.460160523 +0100
++++ db/nonce.cpp 2011-02-14 17:24:48.941161006 +0100
+@@ -58,6 +58,7 @@
+ to use that than random() / srandom()?
+ */
+
++ init();
+ nonce n;
+ #if defined(__linux__) || defined(__sunos__)
+ _devrandom->read((char*)&n, sizeof(n));
More information about the scm-commits
mailing list