libraries/librra: Added patch to compile against python.

Signed-off-by: Michiel van Wessem <michiel@slackbuilds.org>
This commit is contained in:
Michiel van Wessem 2011-04-01 16:29:59 +01:00 committed by Robby Workman
parent 6d44ca067d
commit a92132fd5d
2 changed files with 14 additions and 0 deletions

View File

@ -51,6 +51,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
patch -p1 < $CWD/pyrra_cinit.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \

View File

@ -0,0 +1,12 @@
diff -Naur librra-0.13/python/pyrra.pyx librra-0.13_patched/python/pyrra.pyx
--- librra-0.13/python/pyrra.pyx 2008-06-29 11:49:42.000000000 +0000
+++ librra-0.13_patched/python/pyrra.pyx 2011-04-01 15:22:24.152898428 +0000
@@ -162,7 +162,7 @@
cdef bool connected
cdef uint32_t ntypes
- def __new__(self):
+ def __cinit__(self):
self.instance = <RRA_SyncMgr *>rra_syncmgr_new()
if not self.instance:
raise RRAError(-1)