aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py_otp_interface
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2002-11-17 04:22:55 +0800
committerolgeni <olgeni@FreeBSD.org>2002-11-17 04:22:55 +0800
commite918b049a8b572a4a00ebdb0bae4e70bf6e76d94 (patch)
tree4a3dff6e2712e333d857e1b71f657e1c021f8940 /devel/py_otp_interface
parent69ae79a9b1419fbb1baa53821aca53eeceb5b7a4 (diff)
downloadfreebsd-ports-gnome-e918b049a8b572a4a00ebdb0bae4e70bf6e76d94.tar.gz
freebsd-ports-gnome-e918b049a8b572a4a00ebdb0bae4e70bf6e76d94.tar.zst
freebsd-ports-gnome-e918b049a8b572a4a00ebdb0bae4e70bf6e76d94.zip
Bugfix: non-integer lists terminate with a NIL value that should
be skipped when unpacking terms (also submitted to author).
Diffstat (limited to 'devel/py_otp_interface')
-rw-r--r--devel/py_otp_interface/Makefile2
-rw-r--r--devel/py_otp_interface/files/patch-erl__term.py11
2 files changed, 11 insertions, 2 deletions
diff --git a/devel/py_otp_interface/Makefile b/devel/py_otp_interface/Makefile
index aab260e5adcf..b0f9feb4e8a4 100644
--- a/devel/py_otp_interface/Makefile
+++ b/devel/py_otp_interface/Makefile
@@ -7,7 +7,7 @@
PORTNAME= py_otp_interface
PORTVERSION= 0.91
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= http://www.erlang.org/contrib/
DISTNAME= py_interface-${PORTVERSION}
diff --git a/devel/py_otp_interface/files/patch-erl__term.py b/devel/py_otp_interface/files/patch-erl__term.py
index 7d918ca2e339..f9e9af334ecf 100644
--- a/devel/py_otp_interface/files/patch-erl__term.py
+++ b/devel/py_otp_interface/files/patch-erl__term.py
@@ -2,7 +2,7 @@
$FreeBSD$
--- erl_term.py.orig Wed May 29 00:09:25 2002
-+++ erl_term.py Sat Nov 16 00:53:45 2002
++++ erl_term.py Sat Nov 16 17:40:38 2002
@@ -282,7 +282,7 @@
if dataLen < 5:
return (None, data)
@@ -12,6 +12,15 @@ $FreeBSD$
elif data0 == MAGIC_FLOAT:
if dataLen < 32:
+@@ -373,7 +373,7 @@
+ (elements, remainingData) = _UnpackTermSeq(arity, data[5:])
+ if elements == None:
+ return (None, data)
+- return (ErlList(elements), remainingData)
++ return (ErlList(elements), remainingData[1:]) # skip MAGIC_NIL
+
+ elif data0 == MAGIC_BINARY:
+ if dataLen < 5:
@@ -552,11 +552,11 @@
def _PackString(term):