[tog-pegasus/f15/master] use posix locks on sparc arches
Dennis Gilmore
ausil at fedoraproject.org
Wed Mar 30 22:52:24 UTC 2011
commit 728b0b66d4a29ac051160bc6c9debb472eb91dc0
Author: Dennis Gilmore <dennis at ausil.us>
Date: Wed Mar 30 17:50:51 2011 -0500
use posix locks on sparc arches
pegasus-2.10.0-sparc-posix-lock.patch | 20 ++++++++++++++++++++
tog-pegasus.spec | 8 +++++++-
2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/pegasus-2.10.0-sparc-posix-lock.patch b/pegasus-2.10.0-sparc-posix-lock.patch
new file mode 100644
index 0000000..0dd0635
--- /dev/null
+++ b/pegasus-2.10.0-sparc-posix-lock.patch
@@ -0,0 +1,20 @@
+--- pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h.orig 2011-03-30 15:59:54.000000000 -0500
++++ pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h 2011-03-30 16:00:52.000000000 -0500
+@@ -90,4 +90,7 @@
+ # define PEGASUS_HAS_GETIFADDRS
+ #endif
+
++/* use POSIX read-write locks on this platform */
++#define PEGASUS_USE_POSIX_RWLOCK
++
+ #endif /* Pegasus_Platform_LINUX_SPARCV9_GNU_h */
+--- pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h.orig 2011-03-30 15:59:30.000000000 -0500
++++ pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h 2011-03-30 16:01:05.000000000 -0500
+@@ -90,4 +90,7 @@
+ # define PEGASUS_HAS_GETIFADDRS
+ #endif
+
++/* use POSIX read-write locks on this platform */
++#define PEGASUS_USE_POSIX_RWLOCK
++
+ #endif /* Pegasus_Platform_LINUX_SPARC64_GNU_h */
diff --git a/tog-pegasus.spec b/tog-pegasus.spec
index 5744132..b4b1648 100644
--- a/tog-pegasus.spec
+++ b/tog-pegasus.spec
@@ -8,7 +8,7 @@
Name: tog-pegasus
Version: %{major_ver}.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Epoch: 2
Summary: OpenPegasus WBEM Services for Linux
@@ -60,6 +60,8 @@ Patch15: pegasus-2.9.0-openssl.patch
Patch16: pegasus-2.9.1-getpagesize.patch
# 18: Let the makefile install initscript we want to use
Patch18: pegasus-2.9.1-makefile-initscript.patch
+# 19: use posix locks on sparc arches
+Patch19: pegasus-2.10.0-sparc-posix-lock.patch
BuildRequires: bash, sed, grep, coreutils, procps, gcc, gcc-c++
BuildRequires: libstdc++, make, pam-devel
@@ -184,6 +186,7 @@ The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm.
%patch0 -p1 -b .initscript
%patch16 -p1 -b .getpagesize
%patch18 -p1 -b .makefile-initscript
+%patch19 -p1 -b .sparc-locks
%build
@@ -411,6 +414,9 @@ fi
%changelog
+* Wed Mar 30 2011 Dennis Gilmore <dennis at ausil.us> - 2:2.10.1-4
+- use posix locks on sparc linux arches
+
* Tue Mar 22 2011 Vitezslav Crhonek <vcrhonek at redhat.com> - 2:2.10.1-3
- Use %%ghost for /var/run/tog-pegasus
Resolves: #656705
More information about the scm-commits
mailing list