summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-10-10 18:09:31 +0000
committerrillig <rillig@pkgsrc.org>2007-10-10 18:09:31 +0000
commit1c808f62808e828da08e0f2ca92bb97b724742b6 (patch)
tree273c8720b63da79363552c8dd13e2b6063755805 /devel
parent6a59efc1e3e13a5debd41cb5e65dd91fb1286a2a (diff)
downloadpkgsrc-1c808f62808e828da08e0f2ca92bb97b724742b6.tar.gz
Fixed obscure C code.
Diffstat (limited to 'devel')
-rw-r--r--devel/py-expect/distinfo3
-rw-r--r--devel/py-expect/patches/patch-ag21
2 files changed, 23 insertions, 1 deletions
diff --git a/devel/py-expect/distinfo b/devel/py-expect/distinfo
index bcb179c97e5..3208f7fd7a6 100644
--- a/devel/py-expect/distinfo
+++ b/devel/py-expect/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2005/02/23 22:24:31 agc Exp $
+$NetBSD: distinfo,v 1.7 2007/10/10 18:09:31 rillig Exp $
SHA1 (ExpectPy-1.9b1.tar.gz) = f43fcd53901f327dc8acf0650dbfe45b274a8d7d
RMD160 (ExpectPy-1.9b1.tar.gz) = d0e586a987db1c6eb22008519483081f7278be20
@@ -9,3 +9,4 @@ SHA1 (patch-ac) = 0ff7162129a84fbc913a8b1240209387b922c2a8
SHA1 (patch-ad) = 267c2e93f89f786b415c7fa2645913c40541bc38
SHA1 (patch-ae) = 0f5190724d3b17e7b7f06f6408e1c9e7a3e66868
SHA1 (patch-af) = 130de0f91370a49db5c9236445d2cb258303b190
+SHA1 (patch-ag) = 7e43133aeebee5c63716aefba8fd4e0d4b1ff6ce
diff --git a/devel/py-expect/patches/patch-ag b/devel/py-expect/patches/patch-ag
new file mode 100644
index 00000000000..06a7c5b8c84
--- /dev/null
+++ b/devel/py-expect/patches/patch-ag
@@ -0,0 +1,21 @@
+$NetBSD: patch-ag,v 1.1 2007/10/10 18:09:31 rillig Exp $
+
+--- expect.c.orig 2000-11-04 01:35:57.000000000 +0000
++++ expect.c 2007-10-10 18:07:13.000000000 +0000
+@@ -1412,6 +1412,8 @@ ExpSet_reset(self, args)
+ return Py_None;
+ }
+
++static PyObject *ExpSet_getattr(ExpSetObject *, char *);
++
+ /* Convert the registered Expect variables to a Python dictionary.
+ Changing the dictionary will not affect the Expect variables.
+ */
+@@ -1421,7 +1423,6 @@ ExpSet_todict(self, args)
+ PyObject *args;
+ { struct pyexp_variable_map *var;
+ PyObject *dict, *item;
+- static PyObject *ExpSet_getattr(ExpSetObject *, char *);
+
+ if ((dict = PyDict_New()) == NULL)
+ return NULL;