forked from pool/libmemcached
Accepting request 141938 from home:k0da:ppc
- fix defined but not used variable error on bigendian machines (libmemcached-bigendian.patch) OBS-URL: https://build.opensuse.org/request/show/141938 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmemcached?expand=0&rev=31
This commit is contained in:
parent
1f525741aa
commit
2241f786d2
21
libmemcached-bigendian.patch
Normal file
21
libmemcached-bigendian.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Index: libmemcached-1.0.11/libhashkit/jenkins.cc
|
||||||
|
===================================================================
|
||||||
|
--- libmemcached-1.0.11.orig/libhashkit/jenkins.cc
|
||||||
|
+++ libmemcached-1.0.11/libhashkit/jenkins.cc
|
||||||
|
@@ -59,12 +59,13 @@ In which case, the hash table should hav
|
||||||
|
uint32_t hashkit_jenkins(const char *key, size_t length, void *)
|
||||||
|
{
|
||||||
|
uint32_t a,b,c; /* internal state */
|
||||||
|
- union { const void *ptr; size_t i; } u; /* needed for Mac Powerbook G4 */
|
||||||
|
-
|
||||||
|
+#ifndef WORDS_BIGENDIAN
|
||||||
|
+ union { const void *ptr; size_t i; } u;
|
||||||
|
+ u.ptr = key;
|
||||||
|
+#endif
|
||||||
|
/* Set up the internal state */
|
||||||
|
a = b = c = 0xdeadbeef + ((uint32_t)length) + JENKINS_INITVAL;
|
||||||
|
|
||||||
|
- u.ptr = key;
|
||||||
|
#ifndef WORDS_BIGENDIAN
|
||||||
|
if ((u.i & 0x3) == 0)
|
||||||
|
{
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 19 16:19:25 UTC 2012 - dvaleev@suse.com
|
||||||
|
|
||||||
|
- fix defined but not used variable error on bigendian machines
|
||||||
|
(libmemcached-bigendian.patch)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 5 09:51:40 UTC 2012 - coolo@suse.com
|
Fri Oct 5 09:51:40 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ Release: 0
|
|||||||
Url: http://libmemcached.org
|
Url: http://libmemcached.org
|
||||||
Source0: https://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
|
Source0: https://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
|
||||||
Source1: https://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz.asc
|
Source1: https://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz.asc
|
||||||
|
Patch0: libmemcached-bigendian.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# List of additional build dependencies
|
# List of additional build dependencies
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -81,6 +82,7 @@ methods.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-memcached=%{_sbindir}/memcached --disable-static --with-pic
|
%configure --with-memcached=%{_sbindir}/memcached --disable-static --with-pic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user