diff options
author | rm <rm@FreeBSD.org> | 2013-05-17 12:17:22 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2013-05-17 12:17:22 +0800 |
commit | 060ea88a780b6a26d97ff495accc2d252f549f90 (patch) | |
tree | 2d90e75b4dd432723e621b65ad4e2e51b8a4e421 /databases | |
parent | afc5551bbb56a8a02602d565e8983af6e04bde74 (diff) | |
download | freebsd-ports-gnome-060ea88a780b6a26d97ff495accc2d252f549f90.tar.gz freebsd-ports-gnome-060ea88a780b6a26d97ff495accc2d252f549f90.tar.zst freebsd-ports-gnome-060ea88a780b6a26d97ff495accc2d252f549f90.zip |
- update to latest upstream versions:
. lang/python27: 2.7.3 -> 2.7.5
. lang/python32: 3.2.3 -> 3.2.4
. lang/python33: 3.3.0 -> 3.3.1
- update Mk/bsd.python.mk with new versions
- mark lang/python26 and lang/python31 as deprecated (set them to
upstream EoL dates)
- update docs (lang/python-doc-html)
- align databases/py-bsddb patch for python27 - most of it was applied
upstream. Raise BDB version to 4.3 atleast, according to
upstream requirements.
Many thanks to Martin (miwi) for his time on this update.
PR: 178506
Submitted by: rm (myself)
Exp-run by: portmgr (miwi)
- revert erroneous threads patch in lang/python26 and lang/python27,
that was added after ports/131080. It was rejected upstream, because it's
not actually a bug, but misuse.
Gabor Pali (pgj) in collaboration with Kubilay Kocak (koobs) did an
independent investigation regard the issue. See here for details:
http://lists.freebsd.org/pipermail/freebsd-python/2013-April/005376.html
PR: 153167
Submitted by: Duncan Findlay <duncan@duncf.ca>
Reported by: pgj/koobs (at python@ ML)
Exp-run by: portmgr (miwi)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/py-bsddb/Makefile | 4 | ||||
-rw-r--r-- | databases/py-bsddb/files/extra-patch-py27-_bsddb.c | 91 |
2 files changed, 6 insertions, 89 deletions
diff --git a/databases/py-bsddb/Makefile b/databases/py-bsddb/Makefile index a86b21332ffb..fd5a02cf4013 100644 --- a/databases/py-bsddb/Makefile +++ b/databases/py-bsddb/Makefile @@ -5,7 +5,7 @@ PORTNAME= bsddb PORTVERSION= ${PYTHON_PORTVERSION} PORTREVISION= 3 CATEGORIES= databases python -MASTER_SITES= ${PYTHON_MASTER_SITES} +MASTER_SITES= PYTHON MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${PYTHON_DISTFILE} @@ -13,7 +13,7 @@ DISTFILES= ${PYTHON_DISTFILE} MAINTAINER= python@FreeBSD.org COMMENT= Standard Python bindings to the Berkeley DB library -USE_BDB= yes +USE_BDB= 43+ USE_PYTHON= yes USE_PYDISTUTILS=yes USE_XZ= yes diff --git a/databases/py-bsddb/files/extra-patch-py27-_bsddb.c b/databases/py-bsddb/files/extra-patch-py27-_bsddb.c index 14f05209b368..ee4e89c813f7 100644 --- a/databases/py-bsddb/files/extra-patch-py27-_bsddb.c +++ b/databases/py-bsddb/files/extra-patch-py27-_bsddb.c @@ -1,58 +1,7 @@ ---- _bsddb.c.orig 2011-06-11 23:46:26.000000000 +0800 -+++ _bsddb.c 2011-10-10 10:29:43.469871000 +0800 -@@ -187,8 +187,10 @@ - static PyObject* DBRunRecoveryError; /* DB_RUNRECOVERY */ - static PyObject* DBVerifyBadError; /* DB_VERIFY_BAD */ - static PyObject* DBNoServerError; /* DB_NOSERVER */ -+#if (DBVER < 52) - static PyObject* DBNoServerHomeError; /* DB_NOSERVER_HOME */ - static PyObject* DBNoServerIDError; /* DB_NOSERVER_ID */ -+#endif - static PyObject* DBPageNotFoundError; /* DB_PAGE_NOTFOUND */ - static PyObject* DBSecondaryBadError; /* DB_SECONDARY_BAD */ - -@@ -696,8 +698,10 @@ - case DB_RUNRECOVERY: errObj = DBRunRecoveryError; break; - case DB_VERIFY_BAD: errObj = DBVerifyBadError; break; - case DB_NOSERVER: errObj = DBNoServerError; break; -+#if (DBVER < 52) - case DB_NOSERVER_HOME: errObj = DBNoServerHomeError; break; - case DB_NOSERVER_ID: errObj = DBNoServerIDError; break; -+#endif - case DB_PAGE_NOTFOUND: errObj = DBPageNotFoundError; break; - case DB_SECONDARY_BAD: errObj = DBSecondaryBadError; break; - case DB_BUFFER_SMALL: errObj = DBNoMemoryError; break; -@@ -7608,6 +7612,7 @@ - RETURN_NONE(); - } - -+#if (DBVER < 52) - static PyObject* - DBEnv_repmgr_set_local_site(DBEnvObject* self, PyObject* args, PyObject* - kwargs) -@@ -7654,6 +7659,7 @@ - RETURN_IF_ERR(); - return NUMBER_FromLong(eidp); - } -+#endif - - static PyObject* - DBEnv_repmgr_set_ack_policy(DBEnvObject* self, PyObject* args) -@@ -8855,10 +8861,12 @@ - #if (DBVER >= 45) - {"repmgr_start", (PyCFunction)DBEnv_repmgr_start, - METH_VARARGS|METH_KEYWORDS}, -+#if (DBVER < 52) - {"repmgr_set_local_site", (PyCFunction)DBEnv_repmgr_set_local_site, - METH_VARARGS|METH_KEYWORDS}, - {"repmgr_add_remote_site", (PyCFunction)DBEnv_repmgr_add_remote_site, - METH_VARARGS|METH_KEYWORDS}, -+#endif - {"repmgr_set_ack_policy", (PyCFunction)DBEnv_repmgr_set_ack_policy, - METH_VARARGS}, - {"repmgr_get_ack_policy", (PyCFunction)DBEnv_repmgr_get_ack_policy, -@@ -9437,7 +9445,7 @@ - #endif +--- ./_bsddb.c.orig 2013-04-06 18:02:34.000000000 +0400 ++++ ./_bsddb.c 2013-05-12 09:27:38.000000000 +0400 +@@ -9699,7 +9699,7 @@ + ADD_INT(d, DB_RPCCLIENT); #endif -#if (DBVER < 48) @@ -60,35 +9,3 @@ ADD_INT(d, DB_XA_CREATE); #endif -@@ -9651,8 +9659,10 @@ - ADD_INT(d, DB_LOCK_DEADLOCK); - ADD_INT(d, DB_LOCK_NOTGRANTED); - ADD_INT(d, DB_NOSERVER); -+#if (DBVER < 52) - ADD_INT(d, DB_NOSERVER_HOME); - ADD_INT(d, DB_NOSERVER_ID); -+#endif - ADD_INT(d, DB_NOTFOUND); - ADD_INT(d, DB_OLD_VERSION); - ADD_INT(d, DB_RUNRECOVERY); -@@ -9766,7 +9776,9 @@ - ADD_INT(d, DB_REP_PERMANENT); - - #if (DBVER >= 44) -+#if (DBVER < 50) - ADD_INT(d, DB_REP_CONF_NOAUTOINIT); -+#endif - ADD_INT(d, DB_REP_CONF_DELAYCLIENT); - ADD_INT(d, DB_REP_CONF_BULK); - ADD_INT(d, DB_REP_CONF_NOWAIT); -@@ -9912,8 +9924,10 @@ - MAKE_EX(DBRunRecoveryError); - MAKE_EX(DBVerifyBadError); - MAKE_EX(DBNoServerError); -+#if (DBVER < 52) - MAKE_EX(DBNoServerHomeError); - MAKE_EX(DBNoServerIDError); -+#endif - MAKE_EX(DBPageNotFoundError); - MAKE_EX(DBSecondaryBadError); - |