Hello community, here is the log from the commit of package python for openSUSE:Factory checked in at 2012-07-21 12:31:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python (Old) and /work/SRC/openSUSE:Factory/.python.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/python/python-base.changes 2012-05-21 10:02:19.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python.new/python-base.changes 2012-07-21 12:31:07.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Jun 26 11:54:22 UTC 2012 - [email protected] + +- Fix failing test_dbm on ppc64 + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/python/python.changes 2012-05-21 10:02:19.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python.new/python.changes 2012-07-21 12:31:07.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Jun 26 11:54:22 UTC 2012 - [email protected] + +- Fix failing test_dbm on ppc64 + +------------------------------------------------------------------- New: ---- python-2.7.3-fix-dbm-64bit-bigendian.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-base.spec ++++++ --- /var/tmp/diff_new_pack.0ARMfA/_old 2012-07-21 12:31:14.000000000 +0200 +++ /var/tmp/diff_new_pack.0ARMfA/_new 2012-07-21 12:31:14.000000000 +0200 @@ -50,6 +50,7 @@ Patch17: remove-static-libpython.diff # PATCH-FIX-OPENSUSE python-2.7.3-ssl_ca_path.patch [bnc#761501] -- Support directory-based certificate stores with the ca_certs parameter of SSL functions Patch18: python-2.7.3-ssl_ca_path.patch +Patch19: python-2.7.3-fix-dbm-64bit-bigendian.patch # COMMON-PATCH-END %define python_version %(echo %{tarversion} | head -c 3) BuildRequires: automake @@ -136,6 +137,7 @@ %patch16 -p1 %patch17 %patch18 +%patch19 -p1 # COMMON-PREP-END # drop Autoconf version requirement ++++++ python-doc.spec ++++++ --- /var/tmp/diff_new_pack.0ARMfA/_old 2012-07-21 12:31:14.000000000 +0200 +++ /var/tmp/diff_new_pack.0ARMfA/_new 2012-07-21 12:31:14.000000000 +0200 @@ -46,6 +46,7 @@ Patch17: remove-static-libpython.diff # PATCH-FIX-OPENSUSE python-2.7.3-ssl_ca_path.patch [bnc#761501] -- Support directory-based certificate stores with the ca_certs parameter of SSL functions Patch18: python-2.7.3-ssl_ca_path.patch +Patch19: python-2.7.3-fix-dbm-64bit-bigendian.patch # COMMON-PATCH-END Provides: pyth_doc Provides: pyth_ps @@ -93,6 +94,7 @@ %patch16 -p1 %patch17 %patch18 +%patch19 -p1 # COMMON-PREP-END %build ++++++ python.spec ++++++ --- /var/tmp/diff_new_pack.0ARMfA/_old 2012-07-21 12:31:14.000000000 +0200 +++ /var/tmp/diff_new_pack.0ARMfA/_new 2012-07-21 12:31:14.000000000 +0200 @@ -54,6 +54,7 @@ Patch17: remove-static-libpython.diff # PATCH-FIX-OPENSUSE python-2.7.3-ssl_ca_path.patch [bnc#761501] -- Support directory-based certificate stores with the ca_certs parameter of SSL functions Patch18: python-2.7.3-ssl_ca_path.patch +Patch19: python-2.7.3-fix-dbm-64bit-bigendian.patch # COMMON-PATCH-END BuildRequires: automake BuildRequires: db-devel @@ -176,6 +177,7 @@ %patch16 -p1 %patch17 %patch18 +%patch19 -p1 # COMMON-PREP-END # drop Autoconf version requirement ++++++ python-2.7.3-fix-dbm-64bit-bigendian.patch ++++++ Index: Python-2.7.3/Modules/dbmmodule.c =================================================================== --- Python-2.7.3.orig/Modules/dbmmodule.c +++ Python-2.7.3/Modules/dbmmodule.c @@ -168,12 +168,18 @@ static int dbm_contains(register dbmobject *dp, PyObject *v) { datum key, val; + Py_ssize_t dsize; - if (PyString_AsStringAndSize(v, (char **)&key.dptr, - (Py_ssize_t *)&key.dsize)) { + if (PyString_AsStringAndSize(v, (char **)&key.dptr, &dsize)) { return -1; } + /* Coerce from Py_ssize_t down to int: */ + if (dsize > INT_MAX) { + return -1; + } + key.dsize = dsize; + /* Expand check_dbmobject_open to return -1 */ if (dp->di_dbm == NULL) { PyErr_SetString(DbmError, "DBM object has already been closed"); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
