[73397] trunk/dports/databases/redis

jmr at macports.org jmr at macports.org
Thu Nov 11 20:59:45 PST 2010


Revision: 73397
          http://trac.macports.org/changeset/73397
Author:   jmr at macports.org
Date:     2010-11-11 20:59:41 -0800 (Thu, 11 Nov 2010)
Log Message:
-----------
redis: fix build on ppc (#20295)

Modified Paths:
--------------
    trunk/dports/databases/redis/Portfile

Added Paths:
-----------
    trunk/dports/databases/redis/files/redis.c.diff

Modified: trunk/dports/databases/redis/Portfile
===================================================================
--- trunk/dports/databases/redis/Portfile	2010-11-12 03:49:22 UTC (rev 73396)
+++ trunk/dports/databases/redis/Portfile	2010-11-12 04:59:41 UTC (rev 73397)
@@ -33,6 +33,8 @@
                         sha1    fee2f1960eda22385503517a9a6dcae610df84d5 \
                         rmd160  e8ae60e9c5cf79b2f81233bfa6516659fea3983f
 
+patchfiles              redis.c.diff
+
 use_configure           no
 
 build.env-append        CC=${configure.cc}

Added: trunk/dports/databases/redis/files/redis.c.diff
===================================================================
--- trunk/dports/databases/redis/files/redis.c.diff	                        (rev 0)
+++ trunk/dports/databases/redis/files/redis.c.diff	2010-11-12 04:59:41 UTC (rev 73397)
@@ -0,0 +1,14 @@
+--- redis.c.orig	2010-11-06 20:09:28.000000000 +1100
++++ redis.c	2010-11-12 15:54:47.000000000 +1100
+@@ -10904,8 +10904,10 @@ static void *getMcontextEip(ucontext_t *
+ #elif defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_6)
+   #if __x86_64__
+     return (void*) uc->uc_mcontext->__ss.__rip;
+-  #else
++  #elif __i386__
+     return (void*) uc->uc_mcontext->__ss.__eip;
++  #else
++    return (void*) uc->uc_mcontext->__ss.__srr0;
+   #endif
+ #elif defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)
+   #if defined(_STRUCT_X86_THREAD_STATE64) && !defined(__i386__)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101111/d20e09a0/attachment.html>


More information about the macports-changes mailing list