summaryrefslogtreecommitdiff
path: root/graphics/py-gd
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-19 16:01:34 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-19 16:01:34 +0000
commit95e3a98e56b72de70a7ea794bc345084e02afac9 (patch)
tree273944b2e65c382c7efe384403ef64016cfa7210 /graphics/py-gd
parent673530c658b5e2bf1862029f5a9998271f551f31 (diff)
downloadpkgsrc-95e3a98e56b72de70a7ea794bc345084e02afac9.tar.gz
Fix errno.
Diffstat (limited to 'graphics/py-gd')
-rw-r--r--graphics/py-gd/distinfo4
-rw-r--r--graphics/py-gd/patches/patch-aa26
2 files changed, 18 insertions, 12 deletions
diff --git a/graphics/py-gd/distinfo b/graphics/py-gd/distinfo
index 09a6d253550..f663b3cd00b 100644
--- a/graphics/py-gd/distinfo
+++ b/graphics/py-gd/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 08:45:12 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/12/19 16:01:34 joerg Exp $
SHA1 (gdmodule.c) = 1173fcd1e8dbe06d250d7c501317b5d5fe30fc68
RMD160 (gdmodule.c) = a07e85accbee1664f4aeb0d0beef494efde22f40
Size (gdmodule.c) = 27972 bytes
-SHA1 (patch-aa) = e441bafbcc19c4890c3e473b5510e07c41e5889e
+SHA1 (patch-aa) = 680c50b4e515f9abc407769d67e1f1ccfacc6884
diff --git a/graphics/py-gd/patches/patch-aa b/graphics/py-gd/patches/patch-aa
index 45f85d05c11..09646c57d1a 100644
--- a/graphics/py-gd/patches/patch-aa
+++ b/graphics/py-gd/patches/patch-aa
@@ -1,8 +1,14 @@
-$NetBSD: patch-aa,v 1.1 1999/11/01 03:34:32 jlam Exp $
+$NetBSD: patch-aa,v 1.2 2005/12/19 16:01:34 joerg Exp $
---- gdmodule.c.orig Sun Oct 31 20:13:48 1999
-+++ gdmodule.c Sun Oct 31 20:14:43 1999
-@@ -34,8 +34,8 @@
+--- gdmodule.c.orig 2005-12-19 15:53:23.000000000 +0000
++++ gdmodule.c
+@@ -28,14 +28,13 @@ version 0.22
+ #include <errno.h>
+
+ static PyObject *ErrorObject;
+-extern int errno;
+
+ /* DOCSTRING */
static char *gdModuleDocString = "GD module is an interface to the GD library written by Thomas Bouttel.\n\
\'It allows your code to quickly draw images complete with lines, arcs,\n\
text, multiple colors, cut and paste from other images, and flood fills,\n\
@@ -13,7 +19,7 @@ $NetBSD: patch-aa,v 1.1 1999/11/01 03:34:32 jlam Exp $
It has been extended in some ways from the original GD library.";
/*
-@@ -84,7 +84,7 @@
+@@ -84,7 +83,7 @@ static imageobject *newimageobject();
/*
** Methods for the image type
*/
@@ -22,7 +28,7 @@ $NetBSD: patch-aa,v 1.1 1999/11/01 03:34:32 jlam Exp $
imageobject *self;
PyObject *args;
{
-@@ -94,11 +94,11 @@
+@@ -94,11 +93,11 @@ static PyObject *image_writegif(self, ar
if (PyArg_ParseTuple(args, "O!", &PyFile_Type, &fileobj))
{
@@ -36,7 +42,7 @@ $NetBSD: patch-aa,v 1.1 1999/11/01 03:34:32 jlam Exp $
else
{
PyErr_SetFromErrno(PyExc_IOError);
-@@ -662,8 +662,8 @@
+@@ -662,8 +661,8 @@ static PyObject *image_getorigin(self)
}
static struct PyMethodDef image_methods[] = {
@@ -47,7 +53,7 @@ $NetBSD: patch-aa,v 1.1 1999/11/01 03:34:32 jlam Exp $
file name."},
{"writeGd", (PyCFunction)image_writegd, 1, "writeGd(f)\n\
write the image to f as a GD file, where f is either an open file object\n\
-@@ -802,7 +802,7 @@
+@@ -802,7 +801,7 @@ static imageobject *newimageobject(args)
{
if (!(ext = strrchr(filename,'.')))
{
@@ -56,7 +62,7 @@ $NetBSD: patch-aa,v 1.1 1999/11/01 03:34:32 jlam Exp $
Py_DECREF(self);
return NULL;
}
-@@ -814,7 +814,7 @@
+@@ -814,7 +813,7 @@ static imageobject *newimageobject(args)
Py_DECREF(self);
return(NULL);
}
@@ -65,7 +71,7 @@ $NetBSD: patch-aa,v 1.1 1999/11/01 03:34:32 jlam Exp $
fclose(fp);
Py_DECREF(self);
return(NULL);
-@@ -923,7 +923,7 @@
+@@ -923,7 +922,7 @@ static PyObject *gd_fontSSize(self, args
static struct PyMethodDef gd_methods[] = {
{"image", gd_image, 1, "image(image[,(w,h)] | file | file,type | (w,h))\n\