Unbreak on 4.x

Approved by: perky (maintainer)
This commit is contained in:
Volker Stolz 2005-11-02 12:11:50 +00:00
parent e8ded53cd8
commit 1a0652eef3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147013
5 changed files with 97 additions and 7 deletions

View file

@ -25,10 +25,4 @@ PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= "Does not compile on FreeBSD 4.x"
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -0,0 +1,21 @@
$FreeBSD$
--- src/callback/odeiv.ic.orig
+++ src/callback/odeiv.ic
@@ -397,13 +397,14 @@
goto fail;
}
FUNC_MESS("T_0 FLOAT");
- int dim = 1;
+ { int dim = 1;
ts = (PyArrayObject *) PyGSL_New_Array(1, &dim, PyArray_DOUBLE);
if(ts == NULL) {
line = __LINE__ - 2;
goto fail;
}
(*(double *)(ts->data)) = v;
+ }
}
FUNC_MESS("T END");
if(PyGSL_STRIDE_RECALC(ts->strides[0], sizeof(double), &stride) != GSL_SUCCESS)

View file

@ -0,0 +1,16 @@
$FreeBSD$
--- src/init/block_helpers.c.orig
+++ src/init/block_helpers.c
@@ -380,8 +380,9 @@
goto fail;
}
FUNC_MESS("=> FLOAT");
- int dim = 1;
+ { int dim = 1;
r = (PyArrayObject *) PyGSL_New_Array(1, &dim, PyArray_DOUBLE);
+ }
if(r == NULL) {
line = __LINE__ - 2;
goto fail;

View file

@ -0,0 +1,22 @@
$FreeBSD$
--- src/init/initmodule.c.orig
+++ src/init/initmodule.c
@@ -83,7 +83,7 @@
FUNC_MESS_BEGIN();
#if DEBUG == 1
- PyObject *o;
+ { PyObject *o;
int tmp, i, max, *ptr;
if(!PyArg_ParseTuple(args, "i", &tmp))
return NULL;
@@ -108,6 +108,7 @@
Py_INCREF(Py_None);
FUNC_MESS_END();
return Py_None;
+ }
#else
GSL_ERROR_NULL("PyGSL was not compiled with DEBUG = 1; Can not set DEBUG level!", GSL_EUNIMPL);
#endif

View file

@ -0,0 +1,37 @@
$FreeBSD$
--- src/transform/wavelet.c.orig
+++ src/transform/wavelet.c
@@ -70,6 +70,7 @@
{ \
PyObject *tmp; \
FUNC_MESS_BEGIN(); \
+ { \
pygsl_transform_help_s helps;\
struct _pygsl_transform_help_rf_s s; \
helps.info = &wavelet_info; \
@@ -79,6 +80,7 @@
tmp = PyGSL_transform_((PyObject *) self, args, &helps); \
FUNC_MESS_END(); \
return tmp; \
+ } \
}
PYGSL_WAVLET(forward)
PYGSL_WAVLET(inverse)
@@ -89,6 +91,7 @@
{ \
PyObject *tmp; \
FUNC_MESS_BEGIN(); \
+ { \
pygsl_transform_help_s helps;\
struct _pygsl_transform_help_rf_s s; \
helps.info = &wavelet_info; \
@@ -98,6 +101,7 @@
tmp = PyGSL_transform_2d_((PyObject *) self, args, &helps); \
FUNC_MESS_END(); \
return tmp; \
+ } \
}
PYGSL_WAVLET2D(,forward)
PYGSL_WAVLET2D(,inverse)