aboutsummaryrefslogtreecommitdiff
path: root/libraries/librra
diff options
context:
space:
mode:
authorMichiel van Wessem <michiel@slackbuilds.org>2011-04-01 16:29:59 +0100
committerRobby Workman <rworkman@slackbuilds.org>2011-04-03 09:34:23 -0500
commita92132fd5d9f762f32733c946a5b96a6fffac8e7 (patch)
tree15db3c90c9bf4a647472f51932ea9a603fc9c776 /libraries/librra
parent6d44ca067da785f085bc26f675ffdabdf12b2c87 (diff)
libraries/librra: Added patch to compile against python.
Signed-off-by: Michiel van Wessem <michiel@slackbuilds.org>
Diffstat (limited to 'libraries/librra')
-rw-r--r--libraries/librra/librra.SlackBuild2
-rw-r--r--libraries/librra/pyrra_cinit.patch12
2 files changed, 14 insertions, 0 deletions
diff --git a/libraries/librra/librra.SlackBuild b/libraries/librra/librra.SlackBuild
index 57e45709f0b6..2797b655c547 100644
--- a/libraries/librra/librra.SlackBuild
+++ b/libraries/librra/librra.SlackBuild
@@ -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 \
diff --git a/libraries/librra/pyrra_cinit.patch b/libraries/librra/pyrra_cinit.patch
new file mode 100644
index 000000000000..682b7223d71d
--- /dev/null
+++ b/libraries/librra/pyrra_cinit.patch
@@ -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)