pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ap2-python First step to make this buildable with ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b96205f78377
branches:  trunk
changeset: 417269:b96205f78377
user:      martin <martin%pkgsrc.org@localhost>
date:      Wed Nov 06 16:49:48 2019 +0000

description:
First step to make this buildable with python 3.7

diffstat:

 www/ap2-python/distinfo                           |   3 ++-
 www/ap2-python/patches/patch-src___apachemodule.c |  21 +++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 0b2bccba1335 -r b96205f78377 www/ap2-python/distinfo
--- a/www/ap2-python/distinfo   Wed Nov 06 15:48:51 2019 +0000
+++ b/www/ap2-python/distinfo   Wed Nov 06 16:49:48 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2015/11/04 02:46:48 agc Exp $
+$NetBSD: distinfo,v 1.10 2019/11/06 16:49:48 martin Exp $
 
 SHA1 (mod_python-3.5.0.tgz) = 9208bb813172ab51d601d78e439ea552f676d2d1
 RMD160 (mod_python-3.5.0.tgz) = 03315af0843892059a11758209f350c82164acc3
@@ -7,3 +7,4 @@
 SHA1 (patch-configure) = 721dc5200205889106c502247a4b4a4a6995b4e2
 SHA1 (patch-configure.in) = 1c77f43224f3c9ae555f91ac4479c60121ad950b
 SHA1 (patch-dist_version.sh) = 9f3dbf596238aa106e06ec1c8b27a90619ef4978
+SHA1 (patch-src___apachemodule.c) = 3f9bfe10c48a2f64e5528e77205d9bdbeaaded07
diff -r 0b2bccba1335 -r b96205f78377 www/ap2-python/patches/patch-src___apachemodule.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap2-python/patches/patch-src___apachemodule.c Wed Nov 06 16:49:48 2019 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-src___apachemodule.c,v 1.1 2019/11/06 16:49:48 martin Exp $
+
+Add support for python 3.7, based on
+https://github.com/grisha/mod_python/pull/80/commits/8fb45feab94152a6aae3492aed4b81c363a912bd
+
+--- src/_apachemodule.c.orig   2019-11-06 16:27:40.549245378 +0100
++++ src/_apachemodule.c        2019-11-06 16:27:44.529287280 +0100
+@@ -851,8 +851,13 @@ PyObject *_apache_module_init()
+ #else
+     m = PyModule_Create(&_apache_moduledef);
+     PyObject *name = PyUnicode_FromString("_apache");
++#if PY_MINOR_VERSION >= 7
++    PyObject *modules = PyImport_GetModuleDict();
++    _PyImport_FixupExtensionObject(m, name, name, modules);
++#else
+     _PyImport_FixupExtensionObject(m, name, name);
+ #endif
++#endif
+     d = PyModule_GetDict(m);
+     Mp_ServerReturn = PyErr_NewException("_apache.SERVER_RETURN", NULL, NULL);
+     if (Mp_ServerReturn == NULL)



Home | Main Index | Thread Index | Old Index